GithubHelp home page GithubHelp logo

anthrax3 / beef-drive Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhuyue1314/beef-drive

0.0 1.0 0.0 3.39 MB

Ruby 33.61% JavaScript 58.23% HTML 1.30% CSS 3.75% Java 0.56% Shell 0.48% ActionScript 0.76% C 0.12% Assembly 1.05% PHP 0.14%

beef-drive's Introduction

beef-drive

Description

This is a special version of the BeEF implementing all communications with its hooked browsers (zombies) via Google Drive service.

At the present time Browser Exploitation Framework (BeEF) implements communications with hooked browsers using standard mechanisms (e.g., XMLHttpRequest, WebSockets). It also supports experimental WebRTC-based mechanism for creation a hooked browser meshed-network. The main purpose of the last mechanism is avoiding tracking of post-exploitation communication with BeEF command and control server.

We propose to use an alternate approach against tracking of BeEF servers and its post-exploatation communications with zombies. The main idea is to use storage covert channel communications over known and popular cloud web services, for example Google Drive, by using it as shared resources between BeEF server and hooked browsers. In this case there is no direct communication between BeEF server and zombies: All of them communicate only with Google API servers. The implementation is based on Google Drive file system primitives and its API.

Installation

  1. Create an API key and OAuth 2.0 client ID using Google Developers Console.

  2. In your Drive create a folder with name answers to store answers from zombies, a folder with name init to store initial information from zombies, and a file with name keychain.txt to store your API key. Save IDs of these folders and file. You can use any names for folders and file. The above names are used as an example only.

  3. Clone the beef-drive. Install all dependencies that are required for BeEF.

  4. Add the IDs from step 2 to the following files:

    • core/main/client/gdrive.js:

      • api_key - Google OAuth2.0 API key
      • answers_folder_id - ID of the answers folder
      • init_folder_id - ID of the init folder
      • keychain_file_id - ID of the keychain.txt file
    • extensions/gdrive/gdrive.rb

      • client_id - Google OAuth 2.0 client ID
      • refresh_token - Google OAuth 2.0 refresh token
      • client_secret - Google OAuth 2.0 client's secret
      • @@answer_folder_id - ID of the answers folder
      • @@init_folder_id - ID of the init folder
      • @@key_file_id - ID of the keychain.txt file
  5. Run the beef:

    ruby beef
    

Slides

The slides from our talk at Zero Nights 2015 are available here.

Video

The demonstration is available here.

Team

  • Denis Kolegov
  • Oleg Broslavsky
  • Nikita Oleksov

Links

beef-drive's People

Contributors

dnkolegov avatar nareshnn avatar

Watchers

 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.