1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
| ssh 192.168.31.4(nas虚拟机) git clone https://github.com/passerma/OpenWRTInvasion cd OpenWRTInvasion pip3 install -r requirements.txt python3 remote_command_execution_vulnerability.py
telnet 192.168.31.1
vim /etc/nginx/miwifi-webinitrd.conf
set $isluci "1"; set $finalvar "$canproxy $isluci";
nginx -s reload
vim /etc/config/firewall
config redirect 'MIWEB' option src 'wan' option src_dport '1314' option dest_ip '192.168.31.1' option name 'WEB' option ftype '1' option dest_port '80' option proto 'tcp' config redirect 'MISSH' option src 'wan' option src_dport '13142' option dest_ip '192.168.31.1' option name 'ssh' option ftype '1' option dest_port '22' option proto 'tcp'
/etc/init.d/firewall restart
|