当前位置:网站首页>CS passed (cdn+ certificate) PowerShell online detailed version
CS passed (cdn+ certificate) PowerShell online detailed version
2022-07-06 06:32:00 【zxl2605】
0x00 brief introduction
This should be called domain pre Technology :
Approximate illustration :
- Attack traffic passed CDN Nodes forward traffic to real C2 The server
- CDN node ip By identifying the requested Host Head for flow rotation
- It can effectively avoid some safety equipment , It also has certain anti traceability function , Because the traffic has gone CDN On
I read some articles before , But the boss didn't write in some places because he thought it was simple and willing , I wrote some when I built it myself , It's a note of mine , I feel more detailed , More suitable for beginners .
0x01 Resources required
- cobaltstrike 4.0
- VPS(cs The server )
- domain name
- CDN
- Foreign agent
0x02 Domain name free application
To apply for the address :https://www.freenom.com/
The key is free and without filing
Choose to apply for a free domain name
Be careful :
To hang up an agent , Then set the address of the personal information to the address of the agent , It's impossible to apply unsuccessfully
0x03 free CDN Get ready
To apply for the address :https://dash.cloudflare.com/
Register and login settings by yourself CDN
0x04 Domain name and CDN Linkage setting
land CDN, Add the site as the domain name you just applied for
add to A Record , Point to VPS Of IP Address
type name Content TTL Agent status
A test 10.1.1.111(VPS Address ) Automatically Has represented
Then this address is test.xxxxx.tk
- 1
- 2
- 3
- 4
remember Cloudflare Name server , This is to be set to the domain name !
Find your own domain name —— Manage domain names ——nameservers
Choose to use your own domain name resolution :Use custom nameservers (enter below)
Nameserver 1、2 All written CDN Address provided
In order to respond to our commands in real time : We need to modify the caching rules :
Make sure these two items are on
0x05 C2 Certificate configuration
First select the certificate mode : Completely
Download the certificate
The generation was saved successfully , What I keep is com.pem,com.key
stay VPS Generate on CS Available profiles
Use the following command to regenerate cobalstrike.store:
openssl pkcs12 -export -in server.pem -inkey server.key -out spoofdomain.p12 -name domain name -passout pass: password
Example :
openssl pkcs12 -export -in com.pem -inkey com.key -out spoofdomain.p12 -name test.xxxxx.tk -passout pass:zzz123456
- 1
- 2
- 3
- 4
Use the following command to create a certificate :
keytool -importkeystore -deststorepass password -destkeypass password -destkeystore new.store -srckeystore spoofdomain.p12 -srcstoretype PKCS12 -srcstorepass password -alias domain name
Example
keytool -importkeystore -deststorepass zzz123456 -destkeypass zzz123456 -destkeystore new.store -srckeystore spoofdomain.p12 -srcstoretype PKCS12 -srcstorepass zzz123456 -alias test.xxxxx.tk
- 1
- 2
- 3
- 4
The resulting new.store file ,( by cobalstrike.store substitute )
0x06 C2.profile To configure
Use the following items directly :
https://github.com/FortyNorthSecurity/C2concealer
- 1
Usage method :
Installation command :
chmod u+x install.sh
./install.sh
Use command :
C2concealer --variant 1 --hostname test.domain.tk
- 1
- 2
- 3
- 4
- 5
Choose here 3
Because of what we use CDN Certificate given , Then input /home/cs/new.store, This is just generated new.store The absolute path to .
Random names will eventually be generated profile
Successfully generated
Finally, let's talk about the generated random number .profile, Copied to the cs Under the table of contents .
0x07 start-up C2
use c2lint Check , The following is through :
./c2lint ca730a6d.profile
- 1
After the check is successful , modify teamserver To configure
vim teamserver
- 1
Modify the contents of the last line
javax.net.ssl.keyStore=./new.store ( Certificate generated new.store File address ) -Djavax.net.ssl.keyStorePassword=zzz123456( The password of the above certificate )
- 1
start-up C2
./teamserver 192.168.1.1 password123456 ./C2.profile
- 1
0x08 To configure CS
Configure a listener
To configure a powershell go online , Be careful to check SSL
0x09 Successful launch
Successful launch
0x10 summary
This construction is based on free websites , But in practice, I found , This CDN Or sometimes it's not very stable , If you have conditions, you can change to a good one , But be careful to turn off the cache .
边栏推荐
- University of Manchester | dda3c: collaborative distributed deep reinforcement learning in swarm agent systems
- How to translate biomedical instructions in English
- Left matching principle of joint index
- How do programmers remember code and programming language?
- 论文摘要翻译,多语言纯人工翻译
- Modify the list page on the basis of jeecg boot code generation (combined with customized components)
- 翻译生物医学说明书,英译中怎样效果佳
- win10无法操作(删除、剪切)文件
- Still worrying about how to write web automation test cases? Senior test engineers teach you selenium test case writing hand in hand
- CS通过(CDN+证书)powershell上线详细版
猜你喜欢
Address bar parameter transmission of list page based on jeecg-boot
Past and present lives of QR code and sorting out six test points
Redis 核心技术与实战之 基本架构:一个键值数据库包含什么?
keil MDK中删除添加到watch1中的变量
【MQTT从入门到提高系列 | 01】从0到1快速搭建MQTT测试环境
Detailed explanation of P problem, NP problem, NPC problem and NP hard problem
CS-证书指纹修改
LeetCode 729. My schedule I
How to do a good job in financial literature translation?
Black cat takes you to learn EMMC Protocol Part 10: EMMC read and write operation details (read & write)
随机推荐
Engineering organisms containing artificial metalloenzymes perform unnatural biosynthesis
在uni-app中使用腾讯视频插件播放视频
钓鱼&文件名反转&office远程模板
中英对照:You can do this. Best of luck祝你好运
Summary of anomaly detection methods
Cannot create poolableconnectionfactory (could not create connection to database server. error
Drug disease association prediction based on multi-scale heterogeneous network topology information and multiple attributes
Oscp raven2 target penetration process
红蓝对抗之流量加密(Openssl加密传输、MSF流量加密、CS修改profile进行流量加密)
sourceInsight中文乱码
生物医学英文合同翻译,关于词汇翻译的特点
Basic knowledge of MySQL
Aike AI frontier promotion (2.13)
Lecture 8: 1602 LCD (Guo Tianxiang)
Is the test cycle compressed? Teach you 9 ways to deal with it
Technology sharing | common interface protocol analysis
Black cat takes you to learn UFS protocol Chapter 4: detailed explanation of UFS protocol stack
MFC 动态创建的对话框及改变控件的大小和位置
keil MDK中删除添加到watch1中的变量
An article was uncovered to test the truth of outsourcing companies