Página 1 de 1

VB6 Int 2D debugger detection

Publicado: 22 Dic 2008, 19:29
por cobein
Ported from ReWolf ASM code.

Modulo

Código: Seleccionar todo

'---------------------------------------------------------------------------------------
' Module      : mDebugDetect
' DateTime    : 02/10/2008 20:26
' Author      : Cobein
' Mail        : [email protected]
' WebPage     : http://www.advancevb.com.ar
' Purpose     : Int 2Dh debugger detection
' Usage       : At your own risk
' Requirements: None
' Distribution: You can freely use this code in your own
'               applications, but you may not reproduce
'               or publish this code on any web site,
'               online service, or distribute as source
'               on any media without express permission.
'
' History     : 02/10/2008 First Cut....................................................
'---------------------------------------------------------------------------------------
Option Explicit

Private Declare Function SetUnhandledExceptionFilter Lib "kernel32" (ByVal lpTopLevelExceptionFilter As Long) As Long
Private Declare Function CallWindowProc Lib "user32" Alias "CallWindowProcA" (ByVal adr As Long, ByVal p1 As Long, ByVal p2 As Long, ByVal p3 As Long, ByVal p4 As Long) As Long

Public bDebug As Boolean

Public Sub TestDebug()
    On Error Resume Next
    
    Static bInitialized As Boolean
    
    If Not bInitialized Then
        Call SetUnhandledExceptionFilter(AddressOf Handler)
        bInitialized = True
    End If
    
    Dim bvASM(8) As Byte
    
    bvASM(0) = &H58:    bvASM(1) = &H59:    bvASM(2) = &H59
    bvASM(3) = &H59:    bvASM(4) = &H59:    bvASM(5) = &H50
    bvASM(6) = &HCD:    bvASM(7) = &H2D:    bvASM(8) = &HC3
    
    bDebug = True
    Call CallWindowProc(VarPtr(bvASM(0)), 0, 0, 0, 0)

End Sub

Public Function Handler(ByRef ExPtrs As Long) As Long
    bDebug = False: Handler = True
End Function

Como llamarlo

Código: Seleccionar todo

Option Explicit

Private Sub Command1_Click()
    Call TestDebug
    If mDebugDetect.bDebug Then
        MsgBox "Debugued"
    Else
        MsgBox "Not Debugued"
    End If
End Sub


Re: VB6 Int 2D debugger detection

Publicado: 10 Abr 2009, 07:11
por wasamandrapa
Se agradese.

Re: VB6 Int 2D debugger detection

Publicado: 17 Sep 2009, 06:03
por The_Cracker
El código enviado esta incompleto o no corresponde.
Favor de enviarlo bien ya ke como fue enviado no funciona
Falta código:

Re: VB6 Int 2D debugger detection

Publicado: 17 Sep 2009, 06:18
por The_Cracker
Envio mi código fuente en VB6 para detección de Debuggers y Drivers, así como unos detallitos mas
Espero ke les sea de utilidad. Escribanme para sus comentarios, por fa...
(The_Cracker) Mail:
[email protected]

Re: VB6 Int 2D debugger detection

Publicado: 28 Sep 2009, 16:48
por cobein
The_Cracker escribió::furious: El código enviado esta incompleto o no corresponde.
Favor de enviarlo bien ya ke como fue enviado no funciona
Falta código:
El codigo esta completo.

Re: VB6 Int 2D debugger detection

Publicado: 29 Sep 2009, 00:12
por newhacks
se agradece mucho cobein....eres de los buenos br0s

Re: VB6 Int 2D debugger detection

Publicado: 26 Nov 2009, 08:14
por The_Cracker
Mandamelo por mail si no tienes inconveniente. Please.
Atte. The_Cracker
email:
[email protected]

Re: VB6 Int 2D debugger detection

Publicado: 26 Nov 2009, 18:27
por DARK_J4V13R
The_Cracker escribió:Mandamelo por mail si no tienes inconveniente. Please.
Atte. The_Cracker
email:
[email protected]
No puedes dejar tu mail aqui

Aparte esto es de hace 2 meses.

Saludos