随笔分类 -  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 ' 阅读全文
posted @ 2012-05-21 11:01 little evil 阅读(246) 评论(0) 推荐(0)
摘要:通常为了简洁及防止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 阅读全文
posted @ 2012-05-21 10:59 little evil 阅读(998) 评论(0) 推荐(0)