How to execute a program from USB disk without window.

Discussion about hacker.org's server
Post Reply
elseine
Posts: 7
Joined: Sat Nov 06, 2010 1:06 pm

How to execute a program from USB disk without window.

Post by elseine »

Hello everyone. I have one question, ¿is there any form to execute a program from USB disk without window, only introducing the USB in the computer and then, the program execute, doing his function, and end without any window shown? or if you know any program to do that, I will very gratefull if you could tell me that program^^
Thanks for your time!
User avatar
SinistraD
Posts: 89
Joined: Sun Aug 16, 2009 8:39 am
Location: find me
Contact:

Post by SinistraD »

create an autorun inf file with the content:

[autorun]
open=path/myprogram.exe

and implement myprogram without opening any window. In visual studio/c++ you can do that with a windows project, in c# also a windows project but remove Form.cs and the form creation from main.cs. This latter part is really language and compiler specific.
Allosentient
Posts: 273
Joined: Thu Apr 10, 2008 9:47 pm

Post by Allosentient »

Correct me if I'm wrong, but the Autorun from USB was patched as part of security improvements on some of the major OS's.
User avatar
SinistraD
Posts: 89
Joined: Sun Aug 16, 2009 8:39 am
Location: find me
Contact:

Post by SinistraD »

Yeah, your right. But I think that's the only way.

Another trick would be to make the user execute your program, for example make it look like a folder. You can have unexpectedly good results by naming it after an actual folder and making the real folder invisible. Works like a charm.
Post Reply