Coder Social home page Coder Social logo

redproxy's Introduction

MITM attack on frontends with api calls

NOTICE: This is only for ethical hacking in RedTeams.

NOTICE: You are the one who is responsible for legal issues, this is only source code, its not for production or enterprise usage.

Intro:

How many of your employees take care about their cyber security?

Are you interested in this topic?

keepcalm

If you are interested to this subject, just setup this project and create a full proxy of frontend-backend stack. This code will do A Man In The Middle Attack , thats it.

(THEIR) UPSTREAM <-> (OUR) Nginx Reverse Proxy <-> Target Users

Install the requirements

pip install -r requirements.txt

We need a redis server also, just install it :)

Configuration steps:

  1. Setup ssl in the nginx configurations or by SSL-Termination.
  2. Change example.com and api.example.com to the upstream domain.
  3. Check https://api.our-domain.com/djangoadmin/
  4. Create a superuser with python manage.py createsuperuser
  5. Run the celery worker celery -A redproxy.celery worker -l INFO
  6. Run this projcet uvicorn redproxy.asgi:application
  7. Try to do some deceptive actions, sending mail from an unknown sender, sms, etc, to make targets use our-domain.com instead of the original.

You are done! know set a meeting with the weak points of security and tell them do NOT be a VICTIM.

Good Luck :)

redteam

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.