Autocopy

General Discussions
Post Reply
Chathura
Sergeant Major
Sergeant Major
Posts: 33
Joined: Mon Mar 08, 2010 2:42 pm

Autocopy

Post by Chathura » Fri Mar 12, 2010 9:44 am

does any one knows a code for copy a file itself to USB drive everytime when our usb drive is plugged
User avatar
Saman
Lieutenant Colonel
Lieutenant Colonel
Posts: 828
Joined: Fri Jul 31, 2009 10:32 pm
Location: Mount Lavinia

Re: Autocopy

Post by Saman » Fri Mar 12, 2010 2:11 pm

Sounds like trying to make a virus :mrgreen: However, which language you are going to write the program (or service) ?
User avatar
Rksk
Major
Major
Posts: 730
Joined: Thu Jan 07, 2010 4:19 pm
Location: Rathnapura, Sri Lanka

Re: Autocopy

Post by Rksk » Fri Mar 12, 2010 4:08 pm

EXPERTCORE will not help you to create virus!
User avatar
Neo
Site Admin
Site Admin
Posts: 2642
Joined: Wed Jul 15, 2009 2:07 am
Location: Colombo

Re: Autocopy

Post by Neo » Sat Mar 13, 2010 3:35 am

As RkskEkanayaka who is a team members of ROBOT.LK stated, ROBOT.LK can't support development of viruses, spyware, etc... However you brought my memories to 1993. It was about when I was a kid (13 years) I used to write Terminate Stay Resident (TSR) programs for DOS using Turbo C and make codes hidden in boot sectors, partition sectors, etc... and distribute. All these were done for my own learning purposes and I have taken extra care to control things within my house. Similarly, if you are going to do such things for learning purposes, make sure you take extra care to only blow up your own computer, not someone else's. :D

Follow these instructions to build what you want.
Step 1: Build an application using a programming language of your preference to detect USB drives at the time of connection.
You can see a C# tutorial at https://robot.lk/viewtopic.php?f=10&t=1472.
See attached SimpleDetector.zip which has compiled version of the source under BIN folder.

Step 2: At the time of detection, now you can write coding to copy the files you want

Step 3: Improve the application to a Windows Service so it runs from background and starts windows or whatever

Step 4: Techniques to auto execute that file at the time of insertion on another computer (this is out of my business) :lol:

As I said before, only do these things for learning. Not to have fun by harming people to get popular. If you do so, keep my word, that's the end of your computing career. :geek:
Post Reply

Return to “General Discussions”