随笔分类 - Python
摘要:from socket import *from sys import exits=socket(AF_INET,SOCK_STREAM)host=gethostbyname('smtp.163.com')local=gethostname()try: s.connect((host,25)) print '[+] Connected!\n'except: print '[!] Connecte failed!' exit(0)print 'HELO '+local+':'s.send('HELO '
阅读全文
摘要:通常为了简洁及防止NULL产生,ShellCode中会使用hash加密。而也有些时候,我们直接使用加密技术去除NULL:#!/usr/bin/env pythonimport os,sys,string#check the parameterif len(sys.argv) != 2: print 'UseAge: Encoder filename' sys.exit(1) # is file existsfilepath = os.getcwd() + '\\' + sys.argv[1]if not os.path.exists(filepath): pri
阅读全文
浙公网安备 33010602011771号