Git Product home page Git Product logo

rebinding's Introduction

DNS Rebinding Testing Environment

A Dockerized environment to execute SSRF via DNS rebinding; it contains the following:

  • A container running rbndr; this is to allow DNS race conditions
  • A container running a localhost site using Python's http.server; this is to receive SSRF hits
  • A container running NodeJS with the default resolver set to rbndr (on localhost); this is to test the race condition against NodeJS code/libraries

(All of the containers have the same IP—which allows sending HTTP requests to the site container, or DNS queries to the rbndr container.)

So how do I use it?

  1. Create the containers:
docker-compose up
  1. Go into the node container:
docker exec -it rebinding_node_1 sh
  1. The node container will have the vuln directory attached to /home/node/vuln; ALSO MAKE SURE YOU INSTALL THE NPM DEPENDENCIES OUTSIDE OF THE CONTAINER (npm install)

  2. Do yo testing!

sh /home/node/vuln/infinite.sh /home/node/vuln/C0oki3s-ssrf/index.js
  1. See yo results!

    yo results


You can destroy the containers by running:

docker-compose down

Or you can just stop them:

docker-compose stop

And then start them again:

docker-compose start

rebinding's People

Contributors

karimpwnz avatar

Stargazers

Akhil Mahendra avatar

Watchers

 avatar

Forkers

bbhunter

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.