Can anyone help me convert this detect ollydbg code to vb. I am really bad at converting, thanks.
Code:function ollypresent(): boolean; begin asm xor eax,eax cmp esi, 0FFFFFFFFh jnz @@noolly result:= true; @@noolly: result := false; end; end;
Can anyone help me convert this detect ollydbg code to vb. I am really bad at converting, thanks.
Code:function ollypresent(): boolean; begin asm xor eax,eax cmp esi, 0FFFFFFFFh jnz @@noolly result:= true; @@noolly: result := false; end; end;
Heya dude,
People on this forum don't like it if you don't try it yourself!
This is my last convertion vor this week.
call it like this:Code:Private Declare Function OutputDebugString Lib "kernel32" Alias "OutputDebugStringA" (ByVal lpOutputString As String) As Long Public Function OllyPresent() As Boolean OllyPresent = Not (OutputDebugString(VarPtr(ByVal "=)")) = 1) End Function
have a nice day.Code:If ollypresent then end
This code is not 100% here fixed one.
I really don't know VB, but by programming logic i did thatCode:function ollypresent(): boolean; begin Result:= false; asm xor eax,eax cmp esi, 0FFFFFFFFh jnz @noolly mov result,1 @noolly: end; end;
Code:Public Function OllyPresent() As Boolean OllyPresent = 0 asm xor eax,eax cmp esi, 0FFFFFFFFh jnz @noolly mov OllyPresent,1 @noolly: end; end; End Function
dude, you can't use ASM in VB...... only with a plugin..
And my code works..
ThunderVB or VBadvanced(or something lik that)
Well, if I'm not wrong then CallAPIByName is a very good example for using ASM code in your vb project...
There are currently 1 users browsing this thread. (0 members and 1 guests)