The only available type of dlls in VB is Class Library and there is nothing similar to a DllMain
Well, i've been trying to make a vb.net crossfire hack for a while, and i'm wondering if there is any more experienced coders.
winapi apparently isn't available for the uses i want so i have to work around that (i don't know how, help?)
ok, heres my code:
thats my dll main, i haven't really done any more as it's practically pointless to try everything else without a main.Code:Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) Private As ode : Private Function runner(ByVal UnnamedParameter1 As System.IntPtr) As Integer Sleep(9800) Try Dim dllfile As UInteger = CUInt(GetModuleHandleA("Cshell.dll")) If dllfile = False Then Throw 1 End If Catch [error] As Integer Select Case [error] Case 1 CreateThread(Nothing, Nothing, CType(runner, LPTHREAD_START_ROUTINE), Nothing, Nothing, Nothing) Return False Case Else 'Unkown error! Return False End Select End Try My.Computer.Audio.PlaySystemSound(Media.SystemSounds.Beep) CreateThread(Nothing, Nothing, CType(something'what do i do here?', LPTHREAD_START_ROUTINE), Nothing, Nothing, Nothing) Return True End Function
and yes, this is brimirs base.
Last edited by SoGawd.?; 05-27-2012 at 08:09 AM.
The only available type of dlls in VB is Class Library and there is nothing similar to a DllMain
dreaming...
[img]https://i43.photobucke*****m/albums/e367/DeteSting/Steam-update.gif[/img]
Hahaha i tried to make one a while back, thats my source but i think it's a bit more tidier.
its possible :P (but not with dllmain)
edit: // i coded something.. some weeks ago, its not finished but here, maybe you get an inspiration^^
Code:Private Function iWriteFloat(ByVal address As Integer, ByVal value As Single) Dim CFClient As Process() = Process.GetProcessesByName("crossfire") Dim p As Process() = Process.GetProcessesByName("crossfire") If CFClient.Length = 0 Then End End If Dim CFHandle As IntPtr = p(0).Handle WriteFloatMemory(CFHandle, address, value, 4, Nothing) CloseHandle(CFHandle) Return Nothing End Function Private DllString As Long Private fPointer As Integer Public Function edFloat(ByVal address As String, ByVal value As Long) If IsProcessOpen("crossfire") Then DllString = readdll("CShell.dll") fPointer = "&H" & Hex(DllString + address) iWriteFloat(fPointer, value) End If Return Nothing End Function
Last edited by Code[VB]; 05-28-2012 at 08:24 AM.
no, if you just nop the part of xtrap that detectes the writeprocessmemory or use xtrap bypass :P
who said that xtrap bypass don´t exist atm ?? :P ( @derh.acker was sagst du dazu^^ xD)
Bypassing XTrap without Hack tool has been detected is much easier than I thought it was.
I'll upload a screenshot
Wait, you guys got an X-trap bypass?
Lol. i never begged. i made an xtrap bypass. my mistake was making it public.