openssl genrsa -out server.key 2048
openssl req -new -x509 -key server.key -out server.pem -days 3650
| # coding: utf-8 | |
| # 更新于2017/10/02,python3测试通过 | |
| import re | |
| import requests | |
| # 领取 X 铜币 | |
| # 每日登录奖励已领取 | |
| base_headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.57 Safari/537.36 OPR/40.0.2308.15 (Edition beta)', 'Referer': 'https://www.v2ex.com/signin', 'Origin': 'https://www.v2ex.com'} |
| /* | |
| * A simple example daemon for netfilter/iptables REDIRECT based | |
| * transparent proxies | |
| * | |
| * Also a nice demo for simple tcp client/server apps. | |
| * | |
| * Copyright (C) 2008 RIEGL Research ForschungsGmbH | |
| * Copyright (C) 2008 Clifford Wolf <[email protected]> | |
| * | |
| * This program is free software; you can redistribute it and/or modify |
| ctrl-z | |
| bg | |
| touch /tmp/stdout | |
| touch /tmp/stderr | |
| gdb -p $! | |
| # In GDB | |
| p dup2(open("/tmp/stdout", 1), 1) | |
| p dup2(open("/tmp/stderr", 1), 2) |
| package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "net" | |
| "net/http" | |
| "net/url" | |
| "crypto/tls" |
| import base64 | |
| import datetime | |
| import json | |
| import os | |
| import time | |
| import traceback | |
| import urlparse | |
| import botocore.auth | |
| import botocore.awsrequest |
| #!/usr/bin/env python | |
| import time | |
| import threading | |
| from scapy.all import * | |
| import sys | |
| import socket | |
| maxhop = 25 |
| #!/bin/bash | |
| # call this script with an email address (valid or not). | |
| # like: | |
| # ./makecert.sh [email protected] | |
| mkdir certs | |
| rm certs/* | |
| echo "make server cert" | |
| openssl req -new -nodes -x509 -out certs/server.pem -keyout certs/server.key -days 3650 -subj "/C=DE/ST=NRW/L=Earth/O=Random Company/OU=IT/CN=www.random.com/emailAddress=$1" | |
| echo "make client cert" | |
| openssl req -new -nodes -x509 -out certs/client.pem -keyout certs/client.key -days 3650 -subj "/C=DE/ST=NRW/L=Earth/O=Random Company/OU=IT/CN=www.random.com/emailAddress=$1" |
| #!/bin/bash | |
| # add emdebian-archive-keyring | |
| apt-get update | |
| apt-get install -y emdebian-archive-keyring | |
| # add sources for xapt and cross-compile | |
| cat << EOF >> /etc/apt/sources.list | |
| deb http://archive.debian.org/backports.org squeeze-backports main | |
| deb http://www.emdebian.org/debian squeeze main |
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "net" | |
| "net/mail" | |
| "net/smtp" | |
| "crypto/tls" | |
| ) |