Code Monkey home page Code Monkey logo

safebuffer / redblock Goto Github PK

View Code? Open in Web Editor NEW
17.0 3.0 1.0 60 KB

RedBlock is an Nginx module designed for offensive security operations and red teaming. This module empowers security professionals to easily block all IPs associated with hosting and cloud infrastructure, as well as known sandbox environments.

License: Apache License 2.0

Makefile 7.51% Python 30.67% C 61.82%
cobaltstrike nginx nginx-module opsec pentesting-tools redirector redteam-infrastructure

redblock's Introduction

Redblock

Another redirector for your offensive operation infrastructure unless you're ready to add 50k network range to your nginx configuration file.

Overview

Redblock

Redblock is nginx module for hiding your C2/phishing/etc infrastructure from sandboxes, threat scanners. Easily block IPs associated with hosting, cloud infrastructure, and known sandbox environments. you can use your own IPRanges Dataset.

Configuration

Build the module with dependencies.

make install && make configure && make

Final compiled library will be located at objs/ngx_http_redblock_module.so. you will need to add it to /etc/nginx/nginx.conf

load_module objs/ngx_http_redblock_module.so;

dataset location is /etc/nginx/redblock_ranges.bin you can change it in the code, you will have to copy the default dataset to that location.

cp ./ipv4_ranges.bin /etc/nginx/redblock_ranges.bin

You'll need to restart nginx every time you rebuild the module.

service nginx restart

now you can see the blocked requests in error log.

Bring Your Own dataset

you can encode the list of the ip address you want

python encode_dataset.py input_file output_file [--ipv4] [--ipv6]

or update the current dataset by running

python palo_alto_edl_dataset.py

redblock's People

Contributors

safebuffer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

weldingwit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.