当前位置:网站首页>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 .
边栏推荐
- Grouping convolution and DW convolution, residuals and inverted residuals, bottleneck and linearbottleneck
- PHP uses redis to implement distributed locks
- Simulation volume leetcode [general] 1405 Longest happy string
- php使用redis实现分布式锁
- 基於JEECG-BOOT的list頁面的地址欄參數傳遞
- sourceInsight中文乱码
- Simulation volume leetcode [general] 1447 Simplest fraction
- JWT-JSON WEB TOKEN
- 模拟卷Leetcode【普通】1314. 矩阵区域和
- 在JEECG-boot代码生成的基础上修改list页面(结合自定义的组件)
猜你喜欢
Defense (greed), FBI tree (binary tree)
翻译公司证件盖章的价格是多少
Making interactive page of "left tree and right table" based on jeecg-boot
专业论文翻译,英文摘要如何写比较好
翻译影视剧字幕,这些特点务必要了解
Black cat takes you to learn UFS protocol Chapter 4: detailed explanation of UFS protocol stack
端午节快乐Wish Dragon Boat Festival is happy
[mqtt from getting started to improving series | 01] quickly build an mqtt test environment from 0 to 1
Tms320c665x + Xilinx artix7 DSP + FPGA high speed core board
Mise en œuvre d’une fonction complexe d’ajout, de suppression et de modification basée sur jeecg - boot
随机推荐
SourceInsight Chinese garbled
Apple has open source, but what about it?
Grouping convolution and DW convolution, residuals and inverted residuals, bottleneck and linearbottleneck
Isam2 operation process
Advanced MySQL: Basics (1-4 Lectures)
Distributed system basic (V) protocol (I)
org. activiti. bpmn. exceptions. XMLException: cvc-complex-type. 2.4. a: Invalid content beginning with element 'outgoing' was found
模拟卷Leetcode【普通】1296. 划分数组为连续数字的集合
Drug disease association prediction based on multi-scale heterogeneous network topology information and multiple attributes
Still worrying about how to write web automation test cases? Senior test engineers teach you selenium test case writing hand in hand
模拟卷Leetcode【普通】1143. 最长公共子序列
Resttemplate and feign realize token transmission
Cannot create poolableconnectionfactory (could not create connection to database server. error
G - Supermarket
MySQL5.72.msi安装失败
Redis 核心技术与实战之 基本架构:一个键值数据库包含什么?
Summary of anomaly detection methods
It is necessary to understand these characteristics in translating subtitles of film and television dramas
Simulation volume leetcode [general] 1091 The shortest path in binary matrix
钓鱼&文件名反转&office远程模板