var unreadAlerts = '1';
You have one unread private message from dkota titled Welcome to the Forum!

How to get exe added to autorun folder via usb?
#1
I wrote a program with python which I plan to make into an exe and I am wondering if I could put it on a usb stick and when it's plugged into a computer a bat file or something
could run and copy my exe to the autorun folder on Windows so that my script will run on startup each time. 

If this is plausible or even the best way to accomplish this. How would I do so? 

I have usb drives and attiny85's as well if those would work. 

Any guides or resources appreciated and I am also open to other ideas on how to get my program to run on its own through other methods. 

Thank you in advance for your advice and insight.
“I'll just regress, because I feel I've made myself perfectly redundant.”
Report
#2
Long time ago on another forum I did a whole tutorial post about this.
In old Windows system you were able to create autorun.inf file that automatically run, you can make it run a bat script for example and do whatever you want.
But now this option is disabled and few people enable it.
What you can do is creating a bad USB but you will need some specific micro controller so that the USB perform task automatically once you plug it.

Xprogrammer .
We are Light Hat Arsenal, we are hackers for the light !
Reply Quote // Report
#3
Oh ok that makes sense, I do have access to the USB ATTINY85's so I think those could be used. I wonder if they have enough room for a python payload or if I would need to make the malware in Arduino code.
“I'll just regress, because I feel I've made myself perfectly redundant.”
Reply Quote // Report
#4
MilkSteak Wrote: Oh ok that makes sense, I do have access to the USB ATTINY85's so I think those could be used. I wonder if they have enough room for a python payload or if I would need to make the malware in Arduino code.

TL;DR : No, Attiny85 sucks, get a Hak5 rubber ducky instead

Just get yourself a HAK5 rubber ducky,
and code a simple dropper with the ducky script, and everything's gonna be fine.
tbh, Attiny85 really sucks no matter in the typing speed and the overall performance.
and require some annoying driver installation shit to be identified as a keyboard, so it's not gonna work as fluentlyl as what you're expecting.
Bad things comes to those who waits......
Reply Quote // Report
#5
You can disguise .exe files to look like PDF or word document files by the adding special unicode characters in the filename and changing the file icon to the PDF icon. Autorun is disabled on Windows by default so you probably can't execute something just by sticking in a regular USB.
Python is a crappy language to use, most of the "compilers" like pyinstaller are detected by anti viruses even if the file does not contain a virus
Reply Quote // Report


Quick Reply
Message
Type your reply to this message here.





Users browsing this thread: purely_cabbage
var thread_deleted = "0"; if(thread_deleted == "1") { $("#quick_reply_form, .new_reply_button, .thread_tools, .inline_rating").hide(); $("#moderator_options_selector option.option_mirage").attr("disabled","disabled"); }