Mod_Rewrite for Red Team Infrastructure Logo

Mod_Rewrite for Red Team Infrastructure

0
Free
Updated 11 March 2025
Visit Website

Setting up infrastructure for a Red Team engagement can be time consuming and difficult. Jeff Dimmock and Steve Borosh have done a lot of work to make this process easier and more transparent. They gave a great presentation that went over the fundamentals of setting up good Red Team infrastructure. As part of this effort, they released a wiki. One of the most interesting bits of tradecraft released in this talk and on Jeff's blog is their very creative use of apache2’s mod_rewrite functionality. Mod_Rewrite is very powerful for a few reasons: It can be used to hide the true location of your Teamserver. It can be used to evade detection from Incident Response. It can be used to redirect mobile users away from a payload to a spoofed login portal, to capture credentials. It can be used to block specific IP addresses from your teamserver, to aid in IR evasion. It can be used to only allow your Malleable C2 traffic to the Teamserver. In a Red Team engagement, there are often multiple team servers and multiple redirectors in front of each team server. In the event that a defender identifies and blocks one of the redirectors, they should be easy to recreate. However, manually setting up mod_rewrite rules can be complex and time-consuming.

FEATURES

SIMILAR TOOLS

Skyhook facilitates obfuscated HTTP file transfers to bypass IDS detections, enhancing secure data exchange.

A Live CD and Live USB for penetration testing and security assessment

A cheat sheet providing examples of creating reverse shells for penetration testing.

A Python script for creating a cohesive and up-to-date penetration testing framework.

GNU/Linux Wireless distribution for security testing with XFCE desktop environment.

A quick and dirty dynamic redirect.rules generator for penetration testers and security professionals.

Merlin is a cross-platform post-exploitation HTTP/2 Command & Control server and agent written in Golang for efficient and secure communication.

A tutorial on how to use Apache mod_rewrite to randomly serve payloads in phishing attacks

A suite of tools for Wi-Fi network security assessment and penetration testing.

CyberSecTools logoCyberSecTools

Explore the largest curated directory of cybersecurity tools and resources to enhance your security practices. Find the right solution for your domain.

Operated by:

Mandos Cyber • KVK: 97994448

Netherlands • contact@mandos.io

VAT: NL005301434B12

Copyright © 2025 - All rights reserved