Introduction


To build our SD card supported Rubber Ducky, we'll need an Arduino Pro Micro and an SD card module. We'll connect the Pro Micro to the SD card module using the following pin configuration.

Hardware Overview


The BleKeyboard With Sdcard Library is a Bluetooth-based HID attack library inspired by Rubber Ducky. It allows you to execute Ducky scripts directly from an SD card using a Bluetooth keyboard.

Pro Micro Pin - SD Card Pin


  • D4 - CS
  • D15 - SCK
  • D16 - MOSI
  • D14 - MISO
  • VCC - VCC
  • GND - GND

  • Software Requirements


    Before we dive into the code, we'll need to ensure we have the necessary libraries installed.

  • Keyboard.h
  • SD.h
  • SPI.h
  • These libraries will enable our Pro Micro to emulate keystrokes and read data from the SD card.

    Our Library Installation


  • Download the library from our Github Page

  • Download File

  • To use the library, follow these steps
  • After Download, Load the library to arduino library manager
  • Sketch -> Include Library -> Add Zip Library -> Select The Downloaded Library.
  • Include the library header in your Arduino sketch.

  •                                 
                                        #include "sd_ducky.h"
                                    
                                  

  • Initialize the SD card ducky in the setup() function.

  •                                 
                                       void setup() {
                                                    activateducky("script.txt");
                                                    }
                                        void loop() {
                                                      // Nothing needs to be done here.
                                                    }
                                    
                                  

  • Write your Ducky script in a file (e.g., script.txt) and save it on the SD card.

  • Select The Board on Boards -> Arduino Micro.

  • Just press the upload button to upload the code to your pro micro.

  • Power on your device, and it will execute the actions specified in the Ducky script.

  • Example Code


  • Here is an example Arduino sketch using the library.

  •                                 
            #include "sd_ducky.h"
    
            void setup() {
            activateducky("script.txt");
            }
     
            void loop() { }
                                    
                                  

    Important Note


    This library is designed for educational purposes only. Ensure that you are aware of legal and ethical considerations when deploying such devices..


    Disclaimer


    All videos and tutorials provided by Hypesec Infotech or Hacker Nowful is only for informational and educational purposes only. Ethical hacking, information security, and cyber security are subjects that should be familiar to anyone using digital information and computers.


    Acknowledgments


    Thanks to the open-source community for providing libraries and tools used in this project..


    Happy hacking!



    #wardriving #wifipentesting #hackernowful #hypesecinfotech #deauther #wifirecon #packetmonitor #hidattack #bluetoothrubberducky #rubberducky