+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Member
    Join Date
    Jul 2008
    Posts
    85

    [vb]Anti OllyDbg,Anti-Regmon, Anti-Filemon?

    Hello i have a question today i saw a trojan made in visual basic that has anti-ollydbg, anti-regmon, and anti-filemon, does anyone have any code similar for vb?

  2. #2
    Member
    Join Date
    Jul 2006
    Posts
    44
    I need this too

  3. #3
    Senior Member stoopid's Avatar
    Join Date
    Jun 2008
    Location
    515
    Posts
    309
    You can do this easily by using the FindWindow function, it's probably what they did.

  4. #4
    Member
    Join Date
    Jul 2008
    Posts
    85
    Quote Originally Posted by stoopid View Post
    You can do this easily by using the FindWindow function, it's probably what they did.
    Wouldn't the findwindow function only work if its already opened? How can you do it so once ollydbg opens the file then it exits?

  5. #5
    Senior Member stoopid's Avatar
    Join Date
    Jun 2008
    Location
    515
    Posts
    309
    If you are debugging a file with OllyDbg, the window is going to be open. The only thing you have to do is find the handle of OllyDbg's window.

  6. #6
    Senior Member
    Join Date
    Sep 2007
    Posts
    135
    imo anti-reg/filemon would be to unhook and evade. However this is the best I could come up with .

    Code:
    procedure AntiFileRegMon();
    var
    hWindow:        HWND;
    hOpen:          THandle;
    PID:            DWORD;
    begin
      hWindow := FindWindow(PChar('18467-41'), nil);
      if hWindow <> 0 then
      begin
        GetWindowThreadProcessId(hWindow, PID);
        hOpen := OpenProcess(PROCESS_TERMINATE, FALSE, PID);
        if hOpen <> INVALID_HANDLE_VALUE then
          TerminateProcess(hOpen, 0);
        CloseHandle(hOpen);
      end;
      CloseHandle(hWindow);
    end;
    No idea if the class name is machine specific tho.

  7. #7
    Senior Member Departure's Avatar
    Join Date
    May 2008
    Posts
    213
    Quote Originally Posted by stoopid View Post
    If you are debugging a file with OllyDbg, the window is going to be open. The only thing you have to do is find the handle of OllyDbg's window.
    I thought ollydebug opens the app in a suspended state? its not actually executed untill the user press's Play button in olly ??

  8. #8
    Senior Member stoopid's Avatar
    Join Date
    Jun 2008
    Location
    515
    Posts
    309
    Quote Originally Posted by Departure View Post
    I thought ollydebug opens the app in a suspended state? its not actually executed untill the user press's Play button in olly ??
    This is true but the method should work effectively regardless. I wouldn't recommend this method as there are better methods though.

  9. #9
    Member
    Join Date
    Oct 2007
    Posts
    61

  10. #10
    Senior Member carb0n's Avatar
    Join Date
    Jun 2008
    Location
    r00t
    Posts
    121
    Fish, unless it's translated into vb, I see no point in posting your link to the delphi version. He clearly asked for a vb version.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Anti sandbox
    By Dcoder in forum Delphi Help
    Replies: 18
    Last Post: 15-12-2008, 18:07
  2. Anti Kav Unit
    By WEZ_2511 in forum Snippets
    Replies: 10
    Last Post: 14-11-2008, 22:17
  3. [VB] Anti Sandboxie
    By Metahuman in forum General Programming Help
    Replies: 2
    Last Post: 14-08-2007, 15:21
  4. i need some anti- codes ?
    By roomrawdaw in forum General Programming Help
    Replies: 1
    Last Post: 12-07-2007, 00:50
  5. Anti-Ixir v1.0
    By unreachableboy in forum Malware Samples and Information
    Replies: 4
    Last Post: 16-08-2006, 12:29

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

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