Self-Extracting USB...thing 6 replies

Please wait...

Totes

Misanthrope

92,890 XP

7th January 2011

0 Uploads

8,664 Posts

0 Threads

#1 7 years ago

So yeah, I'm curious as to whether this can actually be done. My goal would be to, for a friend, set up a flash drive so that when plugged in, the files automatically extract to a specific folder on his computer. Music files. I'm not giving him a porn virus or anything like that.

Is this just a Hollywood thing, or can this actually be done?




Freyr VIP Member

A2Files Staff

46,875 XP

6th February 2005

11 Uploads

4,275 Posts

0 Threads

#2 7 years ago

Yes. Set up a autorun.inf, and set it to run a batch file with the command copy *.mp3 c:/path/*.mp3

The path has to exist though, otherwise it simply won't work. it may be worth MD'ing the directory first to ensure that it exists to write to.

It is worth noting that should you do anything you do not have permission to do on his computer it would be a criminal offence in virtually every western country.




Totes

Misanthrope

92,890 XP

7th January 2011

0 Uploads

8,664 Posts

0 Threads

#3 7 years ago

You'll have to forgive me, I'm quite a noob when it comes to stuff like this.

How might I go about getting a batch file?




D3matt

I take what n0e says way too seriously

98 XP

20th November 2007

0 Uploads

2,554 Posts

1 Threads

#4 7 years ago
Freyr;5570968It is worth noting that should you do anything you do not have permission to do on his computer it would be a criminal offence in virtually every western country.

Because laws have so much effect on the internet, that's why I can get viruses, download illegal software,and watch copyrighted content.




Freyr VIP Member

A2Files Staff

46,875 XP

6th February 2005

11 Uploads

4,275 Posts

0 Threads

#5 7 years ago

Totes McTurner;5571240You'll have to forgive me, I'm quite a noob when it comes to stuff like this.

How might I go about getting a batch file?[/QUOTE]

Oh goodness, the youth of today. =p

A batch file is a text file named .bat that contains MS-DOS commands which are executed upon being run. You can write relatively complicated "programs" this way to automate basic tasks that need doing regularly.

[QUOTE=D3matt;5571285]Because laws have so much effect on the internet, that's why I can get viruses, download illegal software,and watch copyrighted content.

Yes. Because plugging a USB drive into someones computer with a program written yourself (ie, trojan horse) that messes someones computer up is done over the internet, and is completely anonymous. :rolleyes:

Oh, Wait. It's not.




D3matt

I take what n0e says way too seriously

98 XP

20th November 2007

0 Uploads

2,554 Posts

1 Threads

#6 7 years ago

Freyr;5571333Yes. Because plugging a USB drive into someones computer with a program written yourself (ie, trojan horse) that messes someones computer up is done over the internet, and is completely anonymous. :rolleyes:

Oh, Wait. It's not.

if your friend calls the cops on you for doing what he asked, you need new friends.




Freyr VIP Member

A2Files Staff

46,875 XP

6th February 2005

11 Uploads

4,275 Posts

0 Threads

#7 7 years ago

D3matt;5571455if your friend calls the cops on you for doing what he asked, you need new friends.[/QUOTE]

I actually said that:-

[quote=Freyr]should you do anything you do not have permission to do on his computer it would be a criminal offence in virtually every western country.

If your friend called the cops on you for doing what he asked then your fine, since you have his consent to the actions you've performed. That said, I maintain that if you screw his computer up with a home made trojan, then it is a criminal matter.

I just thought i'd throw that in, since there are a lot of sad little kids these days who think that they are uber elite untraceable hackers, and you could write a basic trojan that could write a computer off this way and distribute it via USB sticks. It'd even work on most computers, because for some reason most people have auto run enabled, and allow files to be executed from untrusted removable media.