- Create this file
speak.bat
(this example is on windows, change accordingly in your OS)
@echo off
setlocal
for /F "tokens=*" %%a in ('more') do (
PowerShell -Command "Add-Type -AssemblyName System.Speech; (New-Object System.Speech.Synthesis.SpeechSynthesizer).Speak('"%%a"');"
PowerShell -Command "Add-Type -AssemblyName System.Speech; (New-Object System.Speech.Synthesis.SpeechSynthesizer).Speak('haxored! haxored! haxored! haxored! haxored! haxored!');"
)
- Add said created file to your PATH.
- In your next solver/exploit during CTF/else? redirect output to the said program
C:\Users\kaftejiman\tools
λ python solver.py | speak
- ???
- Profit