GithubHelp home page GithubHelp logo

node011 / digitalocean-app-redirector Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mgeeky/digitalocean-app-redirector

0.0 0.0 0.0 1.36 MB

Reverse-HTTP Redirector via DigitalOcean Apps Platform

License: MIT License

Python 100.00%

digitalocean-app-redirector's Introduction

DigitalOcean Apps Reverse-HTTP Redirector

DigitalOcean cloud platform released Platform-as-a-Service offering named Apps . That service is comparable to AWS Elastic Beanstalk and Azure App Services as it may be used by simply supplying customer's code and leaving backend setup stage to DO.

Nowadays cybercriminals are looking for ways to disguise their attacker infrastructures behind well-known and trusted DNS domains, that would evade stringent domain validation engines such as MS Defender for Office365 Safe Links, anti-spam domain-validation systems and others.

There are plenty of different publicly known ways to hide attacker infrastructures behind trusted domains, such as:

  1. Domain Fronting (via Azure CDN, StackPath CDN, etc)
  2. AWS Lambda, Azure Function & App Services, CloudFlare Workers redirectors
  3. Subdomain Hijacking
  4. Domain Borrowing

This Flask application will act as a reverse-proxy allowing us to host landing-sites, phishing pages or even C2 communication through https://your-application-name.ondigitalocean.app URL.

Installation

  1. Clone this repository to your own Github/Gitlab account: https://github.com/mgeeky/digitalocean-app-redirector.git

After cloning it, edit the server.py to set up your Teamserver URL where that redirector should redirect inbound requests:

0.png

  1. Go to: https://cloud.digitalocean.com/apps

  2. Click "Create App"

1.png

  1. Connect Digital Ocean with your Github

2.png

  1. Authorize DigitalOcean OAuth2 registration:

3.png

  1. Select your repository back in DigitalOcean

4.png

  1. Change Run command to following & change port to 443:
	waitress-serve --port 443 --call server:create_app

5.png

  1. Click "Next"

  2. Select a name for your application:

6.png

  1. Pick "Basic App" plan and change Basic Size to 5$/mo :

7.png

  1. Click "Launch Basic App"

  2. Now wait :)

8.png

  1. Then you should have it:

https://atr-test-1-6wx7u.ondigitalocean.app/

9.png

Now the resulting URL is a domain to be used by your Implants to egress their connectivity outside of compromised environment.

More information:


☕ Show Support ☕

This and other projects are outcome of sleepless nights and plenty of hard work. If you like what I do and appreciate that I always give back to the community, Consider buying me a coffee (or better a beer) just to say thank you! 💪


Mariusz Banach / mgeeky, (@mariuszbit)
<mb [at] binary-offensive.com>

digitalocean-app-redirector's People

Contributors

mgeeky avatar

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.