+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Jul 2008
    Posts
    85

    (ollydbg) Convert this delphi code to visual basic?

    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;

  2. #2
    Senior Member
    Join Date
    Jun 2008
    Location
    0x40000
    Posts
    1,452
    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.

    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
    call it like this:
    Code:
    If ollypresent then end
    have a nice day.

  3. #3
    Member
    Join Date
    Jul 2007
    Posts
    60

    olly asm

    Quote Originally Posted by darkc0de View Post
    Can anyone help me convert this detect ollydbg code to vb. I am really bad at converting, thanks.

    This code is not 100% here fixed one.

    Code:
    function  ollypresent(): boolean;
    begin
    Result:= false;
    asm
       xor eax,eax
       cmp esi, 0FFFFFFFFh
       jnz @noolly
       mov result,1
    @noolly:
      end;
    end;
    I really don't know VB, but by programming logic i did that

    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

  4. #4
    Member
    Join Date
    Jul 2008
    Posts
    85
    Quote Originally Posted by fearz View Post
    This code is not 100% here fixed one.

    Code:
    function  ollypresent(): boolean;
    begin
    Result:= false;
    asm
       xor eax,eax
       cmp esi, 0FFFFFFFFh
       jnz @noolly
       mov result,1
    @noolly:
      end;
    end;
    I really don't know VB, but by programming logic i did that

    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
    Thank you guys.

  5. #5
    Senior Member
    Join Date
    Jun 2008
    Location
    0x40000
    Posts
    1,452
    dude, you can't use ASM in VB...... only with a plugin..
    And my code works..

  6. #6
    Member
    Join Date
    Jul 2008
    Posts
    85
    Quote Originally Posted by SqUeEzEr View Post
    dude, you can't use ASM in VB...... only with a plugin..
    And my code works..
    Yeah your code works, thank you. And what is this plugin you are talking about? VB6 supports asm?

  7. #7
    Senior Member
    Join Date
    Jun 2008
    Location
    0x40000
    Posts
    1,452
    ThunderVB or VBadvanced(or something lik that)

  8. #8
    Senior Member
    Join Date
    Oct 2008
    Location
    ntdll!NtQuerySystemInformation
    Posts
    549
    Well, if I'm not wrong then CallAPIByName is a very good example for using ASM code in your vb project...

 

 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Convert this delphi code to visual basic?
    By darkc0de in forum Visual Basic Help
    Replies: 4
    Last Post: 12-10-2008, 19:54
  2. visual basic 6 kav help.
    By darkc0de in forum General Programming Help
    Replies: 6
    Last Post: 03-10-2008, 22:47
  3. Convert pass stealer visual basic to delphi
    By softx in forum OpenSC-Open Source Projects
    Replies: 4
    Last Post: 22-06-2008, 12:20
  4. Help convert code from C to Delphi
    By flashfast in forum General Programming Help
    Replies: 0
    Last Post: 24-02-2007, 20:06
  5. Visual basic 5.0
    By ntaryl in forum Full development tools
    Replies: 8
    Last Post: 02-01-2007, 21:22

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT +1. The time now is 21:49.
www.opensc.ws
Copyright ©2005 - 2012, OpenSC Forums



Search Engine Friendly URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.