• XSS.stack #1 – первый литературный журнал от юзеров форума

C2 Redirectors

notactive

HDD-drive
Пользователь
Регистрация
08.11.2022
Сообщения
26
Реакции
8
Hello! This might not be the perfect place for this question, but I was wondering if there are any resources/ threads available that provide a step-by-step guide on setting up a C2 server with domain fronting, redirectors, and similar techniques (including where and how to get/ buy a domain)?
 
Re-directors are easy. Create two servers. One with your C2, open the ports you want with ufw. Like 80 and 443 etc. Then in your redirector server add these IP table rules:

Код:
iptables -I INPUT -p tcp -m tcp --dport Port -j ACCEPT
iptables -t nat -A PREROUTING -p tcp --dport Port -j DNAT --to-destination C2server:Port
iptables -t nat -A POSTROUTING -j MASQUERADE
iptables -I FORWARD -j ACCEPT
iptables -P FORWARD ACCEPT
sysctl net.ipv4.ip_forward=1

Then in C2, Cobalt for example, use the redirector IP for all listeners and beacons etc
 


Напишите ответ...
  • Вставить:
Прикрепить файлы
Верх