# How to get exe added to autorun folder via usb?
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 e

var unreadAlerts = '1';
Welcome back, purely_cabbage. You last visited: Today, 06:36 AM Log Out
You have one unread private message from dkota titled Welcome to the Forum!
New Reply

Threaded Mode How to get exe added to autorun folder via usb?

MilkSteak
VIP
Posts:
61
Threads:
8
Joined:
May 2023
Reputation:
3
Credits: 45.91€ [Donate]
#1
06-05-2023, 04:28 AM
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.”
PM Rate
Report
Xprogrammer
VIP
Posts:
34
Threads:
8
Joined:
May 2023
Reputation:
15
Credits: 91.45€ [Donate]
#2
06-05-2023, 01:20 PM
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 !
PM Rate
Reply Quote // Report
MilkSteak
VIP
Posts:
61
Threads:
8
Joined:
May 2023
Reputation:
3
Credits: 45.91€ [Donate]
#3
06-05-2023, 01:46 PM
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.”
PM Rate
Reply Quote // Report
KIARA
AbyssWalker
Posts:
30
Threads:
7
Joined:
May 2023
Reputation:
16
Credits: 9.21€ [Donate]
#4
06-08-2023, 11:12 PM

> 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......
PM Rate
Reply Quote // Report
nullcat
Junior Member
Posts:
15
Threads:
2
Joined:
May 2023
Reputation:
0
Credits: 6.36€ [Donate]
#5
06-10-2023, 04:05 AM
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
PM Rate
Reply Quote // Report

« Next Oldest | Next Newest »

New Reply

Quick Reply
Message Type your reply to this message here. Signature Disable Smilies | You have selected one or more posts to quote. Quote these posts now or deselect them.

- Subscribe to this thread

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"); }