This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf8 -*- | |
""" | |
@author: boyxuper | |
@date: 2017/8/21 16:07 | |
""" | |
import random | |
import socket | |
from collections import defaultdict | |
from itertools import chain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import io | |
import ssl | |
import sys | |
import copy | |
import base64 | |
import socket | |
import httplib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import urllib3.poolmanager | |
pool = urllib3.poolmanager.HTTPConnectionPool('127.0.0.1', 9900) | |
resp = pool.urlopen('GET', '/', timeout=1) | |
print resp.data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export HISTFILESIZE=9999999 | |
export HISTSIZE=9999999 | |
PUB_KEY='sed -ne "/sshd.$PPID.:.*matching .SA key/{s/^.* //g;h};\${x;p}" /var/log/secure' | |
SSH_KEY=`eval $PUB_KEY` | |
SSH_IP=${SSH_CLIENT%% *} | |
function match_key(){ | |
# default result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
__author__ = 'johnx' | |
__date__ = '2/27/13 3:36 PM' | |
import socket | |
import ssl | |
import struct | |
import json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
__author__ = 'johnx' | |
__date__ = '6/8/13 2:47 PM' | |
#see [Y*D+C]-L | |
#@see http://bbs.csdn.net/topics/340009030 | |
D = .2422 | |
C_21th = { |