某教程涉及脚本

1、Linux口令破解

# encoding: utf-8
import crypt


def testpass(cryptpass):
    #盐值,取两个$之间的字符串
    salt = cryptpass[cryptpass.find("$"):cryptpass.rfind("$")]
    #读取字典内容
    dictfile = open('dictionary.txt','r')
    #将字典里每行拿出来进行加密比对
    for word in dictfile.readlines():
        word = word.strip('\n')     # 去掉密码后的换行符
        # 将密码与盐值一起加密得到加密后的密文
        cryptword = crypt.crypt(word,salt)
        #将加密得到的密文与原始密文进行对比
        if (cryptword == cryptpass):
            print "[+] found password: " + word + "\n"
            return
    print "[-] password notfound.\n"
    return


def main():
    # 读取密码文件得到Linux口令
    passfile = open('mima.txt')
    # 对每一条口令进行破解
    for line in passfile.readlines():
        # 以口令中的:为分隔符
        if ":" in line:
            # 以第一个分隔符之前的为用户名
            user = line.split(':')[0]
            # 第一个分隔符与第二个之间的为加密口令
            cryptpass = line.split(':')[1].strip(' ')
            print "[*] cracking password for : " + user
            # 口令破解
            testpass(cryptpass)

if if __name__ == "__main__":
    main()

2、zip文件口令破解

zipfile库最初体验

3、端口扫描器

4、构建SSH僵尸网络

5、FTP口令扫描与网页搜索

6、python脚本与metasploit交互

7、回收站内容检查

8、读取文件EXIF元数据

9、解析火狐浏览器ssqlite3数据库

10、解析TTL字段值

11、用anonBrowser抓取web页面

12、多线程爆破mysql

13、IP段端口扫描

14、TCP端口扫描

15、Telnet密码爆破

16、简易木马程序

最后更新于

这有帮助吗?