stephex12 / stephex

0 stars 0 forks source link

nmap插件 #1

Open stephex12 opened 6 years ago

stephex12 commented 6 years ago

import os def nmap(): k = input('普通/ack/脚本/碎片:') choice = str(k) if choice == '普通': n = input('URL或ip:') n1 = str(n) os.system('nmap '+n1) elif choice == 'ack': u = input('URL或ip:') u1 = str(u) os.system('nmap -sA '+u1) elif choice == '脚本': y = input('php版本/dns黑名单/web站点目录/暴力:') if y == 'php版本': t = input('URL或ip:') t1 = str(t) os.system('nmap -sV -script=http-php-version '+t1)
elif y == 'dns黑名单': c = input('URL或ip:') c1 = str(c) os.system('nmap -sn '+c1+' -script dns-blacklist') elif y == 'web站点目录': z = input('URL或ip:') z1 = str(z) os.system('nmap -sV -script=http-enum '+z1) elif y == '暴力': a = input('URL或ip:') a1 = str(a) os.system('nmap --script dns-brute '+a1) elif choice == '碎片': v = input('URL或ip:') v1 = str(v) os.system('nmap -f '+v1) elif choice == 'exit': exit() elif choice == '退出': exit() else: print('ERROR, Try again.')

cb = 1 if cb == 1: while True: nmap()