elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: (TUTORIAL) Aprende a emular Sentinel Dongle By Yapis


  Mostrar Mensajes
Páginas: 1 ... 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 [20] 21 22 23
191  Programación / Programación Visual Basic / Re: Bloquear teclado desde VB? en: 8 Mayo 2011, 00:26 am
Mirá tenía 1 modulo de como bloquear teclado por una parte y mouse por otra, acá dejo el modulo:

Código
  1. Option Explicit
  2.  
  3. 'Declare needed functions from Windows API
  4. Private Declare Function SetWindowsHookEx Lib "user32" Alias "SetWindowsHookExA" (ByVal idHook As Long, ByVal lpfn As Long, ByVal hmod As Long, ByVal dwThreadId As Long) As Long
  5. Private Declare Function UnhookWindowsHookEx Lib "user32" (ByVal hHook As Long) As Long
  6.  
  7. 'Keyboard related Constants and Structs
  8. Private Const WH_KEYBOARD_LL As Byte = 13
  9.  
  10. 'Keyboard related variables
  11. Private IdKeyBoard As Long
  12.  
  13. 'Mouse related Constants and Structs
  14. Private Const WH_MOUSE_LL As Byte = 14
  15.  
  16. 'Mouse related variables
  17. 'Dim p2 As MSLLHOOKSTRUCT
  18. Private IdMouse As Long
  19.  
  20. 'función que desactiva el teclado
  21. '''''''''''''''''''''''''''''''''
  22. Public Function WinProcKeyBoard(ByVal nCode As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
  23. WinProcKeyBoard = -1
  24. End Function
  25.  
  26. 'Función que desactiva el Mouse
  27. '''''''''''''''''''''''''''''''
  28. Public Function WinProcMouse(ByVal nCode As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
  29. WinProcMouse = -1
  30. End Function
  31.  
  32. ' Sub que instala los Hook para bloquear el teclado y mouse
  33. '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  34. Public Sub Bloquear()
  35. 'Deshabilita el teclado
  36. 'IdKeyBoard = SetWindowsHookEx(WH_KEYBOARD_LL, AddressOf WinProcKeyBoard, App.hInstance, 0)
  37. 'Deshabilita el mouse
  38. If IdMouse <> 0 Then Exit Sub
  39. IdMouse = SetWindowsHookEx(WH_MOUSE_LL, AddressOf WinProcMouse, App.hInstance, 0)
  40. End Sub
  41.  
  42. Public Sub Desbloquear()
  43. ' Vuelve a Habilitar el teclado
  44. 'If IdKeyBoard <> 0 Then UnhookWindowsHookEx IdKeyBoard
  45. ' Vuelve a Habilitar el mouse
  46. If IdMouse <> 0 Then UnhookWindowsHookEx IdMouse
  47. End Sub
  48.  

yo creo q usaba el bloquear solo para el mouse, pero descomentalo y listo. :D
192  Programación / Programación Visual Basic / [Ayuda] VB DLL EP en: 1 Mayo 2011, 08:10 am
Alguno tiene idea como hacer funcionar el entry point de 1 dll en vb? Probé de todo.
193  Programación / Programación Visual Basic / Re: [RETO] Alternativa a Instr() en: 31 Diciembre 2010, 22:43 pm
Hola, estaba en la otra PC, la llamo MierdBook (NetBook) entonces leí ésto y dije, excelente, puedo pasar mi tiempo con ésto haciendolo desde el Bloc de notas, lo terminé en el bloc y cdo lo probé en la verdadera PC, funcionó sin errores, ni tuve q hacer cambios :D

Código
  1. Option Explicit
  2.  
  3. Private Sub Form_Load()
  4. Dim SearchString As String, SearchChar As String
  5.  
  6. SearchString = "Baila baila baila como Juana, baila la cubana, parece refresco de cola, a mi me parece que estás bien buena."
  7.  
  8. SearchChar = "col"
  9.  
  10. MsgBox InStr(1, SearchString, SearchChar)
  11. MsgBox MyInStr(1, SearchString, SearchChar)
  12. End
  13. End Sub
  14.  
  15. Public Function MyInStr(ByVal Sutato As Integer, ByVal SearchString As String, ByVal SearchChar As String) As Integer
  16. Dim i As Integer, LenSS As Integer, LenSC As Integer
  17. Dim x As Integer
  18.  
  19. LenSS = Len(SearchString)
  20. LenSC = Len(SearchChar)
  21.  
  22. 'Anti-Dumb
  23. If LenSC = 0 Or LenSS = 0 Then Exit Function
  24. 'Anti-Dumb
  25. If Sutato < 0 Then Sutato = 0
  26.  
  27. 'Only 1 Char?
  28. If LenSC = 1 Then
  29.    For i = Sutato To LenSS
  30.        If Mid(SearchChar, 1, 1) = Mid(SearchString, i, 1) Then
  31.            MyInStr = i
  32.            Exit Function
  33.        End If
  34.    Next i
  35. End If
  36.  
  37. For i = Sutato To LenSS
  38.    If Mid(SearchChar, 1, 1) = Mid(SearchString, i, 1) Then
  39.        For x = 2 To LenSC
  40.            If Mid(SearchChar, x, 1) = Mid(SearchString, i + (x - 1), 1) Then
  41.                If x = LenSC Then
  42.                    MyInStr = i
  43.                    Exit Function
  44.                End If
  45.            Else
  46.                i = i + (x - 1)
  47.                Exit For
  48.            End If
  49.        Next x
  50.    End If
  51. Next i
  52. End Function
  53.  

Feliz año nuevo (Y).
194  Seguridad Informática / Análisis y Diseño de Malware / Re: Introducción a la programación de drivers en Windows en: 31 Diciembre 2010, 12:21 pm
Hola a to2, se viene el 2011 :O y se aproxima el 2012 :):):):):):), no he podido descargar ni encontrar esta herramienta, "WinDbg", otra cosa, cómo puedo hacer para saber el OffsetFlink y el OffsetBlink, son &H88 y &H8C? Desde yá muchas gracias y feliz año. (Y)
195  Programación / Programación Visual Basic / Re: [Resuelto] Chinese en: 26 Diciembre 2010, 12:21 pm
Weno encontré el código, es super largo, hace controles propios, acá pongo algo muy útil.

Código
  1. Option Explicit
  2.  
  3. Private Declare Function GetModuleHandleW Lib "kernel32" (ByVal lpModuleName As Long) As Long
  4. Private Declare Function GetProcAddress Lib "kernel32" (ByVal hModule As Long, ByVal lpProcName As String) As Long
  5. Private Declare Function GetWindowLongA Lib "user32" (ByVal hWnd As Long, ByVal nIndex As Long) As Long
  6. Private Declare Function SetWindowLongA Lib "user32" (ByVal hWnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
  7. Private Declare Function SetWindowLongW Lib "user32" (ByVal hWnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
  8. Private Declare Function SetWindowTextW Lib "user32" (ByVal hWnd As Long, ByVal lpString As Long) As Long
  9.  
  10. Private Const GWL_WNDPROC = -4
  11.  
  12. Private m_Caption As String
  13.  
  14. Public Property Get CaptionW() As String
  15.    CaptionW = m_Caption
  16. End Property
  17.  
  18. Public Property Let CaptionW(ByRef NewValue As String)
  19.    Static WndProc As Long, VBWndProc As Long
  20.    m_Caption = NewValue
  21.    ' get window procedures if we don't have them
  22.    If WndProc = 0 Then
  23.        ' the default Unicode window procedure
  24.        WndProc = GetProcAddress(GetModuleHandleW(StrPtr("user32")), "DefWindowProcW")
  25.        ' window procedure of this form
  26.        VBWndProc = GetWindowLongA(hWnd, GWL_WNDPROC)
  27.    End If
  28.    ' ensure we got them
  29.    If WndProc <> 0 Then
  30.        ' replace form's window procedure with the default Unicode one
  31.        SetWindowLongW hWnd, GWL_WNDPROC, WndProc
  32.        ' change form's caption
  33.        SetWindowTextW hWnd, StrPtr(m_Caption)
  34.        ' restore the original window procedure
  35.        SetWindowLongA hWnd, GWL_WNDPROC, VBWndProc
  36.    Else
  37.        ' no Unicode for us
  38.        Caption = m_Caption
  39.    End If
  40. End Property
  41.  
  42. Private Sub Form_Load()
  43. Me.CaptionW = "UniControls sample: " & ChrW$(&H3042) & ChrW$(&H3044) & ChrW$(&H3046) & ChrW$(&H3048) & ChrW$(&H304A)
  44. End Sub
  45.  

El archivo se llama UniControl2117366192008.rar, por si lo encuentrar en internet,, debe ser de Planet Source Code (Y), no sé como subirlo acá y x lo q ví, creo q no se puede. (Y)
196  Programación / Programación Visual Basic / [Resuelto] Chinese - Japanese en: 26 Diciembre 2010, 12:08 pm
Hola a to2, una vez, como me suele pasar, encontré un código que me mostraba un mensaje (MsgBox) con Kanjis (simbolos chinos / japoneses) no me acuerdo donde está, vale oro, alguno de ustedes sabe como hacer éso? Desde ya muchas gracias.
197  Programación / Programación Visual Basic / [Ayuda] Hookin' en: 30 Octubre 2010, 15:44 pm
Hola a todos, estaba probando el proyecto Inject_en / RedirectHook / IAT, el que es muy conocido y estaba cambiando funciones de un programa como "GetTickCount", el código es algo así:

Código
  1. If Not RemoteHook(hProcess, "kernel32.dll", "GetTickCount", AddressOf MyGetTickCount) Then
  2.    MsgBox "Couldn't hook MessageBoxA.", vbExclamation
  3.    CloseProcess hProcess
  4.    Exit Sub
  5. End If
  6.  

Igualmente BlackZeroX lo tiene en su página.

Ahora lo que yo pensé es que si puedo modificar esa función, podría modificar una función del programa, como por ej:

Código
  1. Public Function Suma(ByVal n1 As Long, ByVal n2 As Long) As Long
  2. Suma = n1 + n2
  3. End Function
  4.  

Pero trato de modificar esa función y no encuentra nada :( es como que sólo capta funciones de windows :( alguna idéa?

Desde ya muchas gracias :)
198  Programación / Programación Visual Basic / Re: [DirectX8] APIS, Estructuras, constantes, Enumeraciones..... en: 27 Octubre 2010, 12:35 pm
Hola, muchas gracias, realmente, muchas gracias. :) Cuando tenga tiempo lo veo y me pongo a hacer alguna que otra cosa :D:D:D.


Saludos.
Misery.
199  Programación / Programación Visual Basic / Re: [Ayuda] Sendkeys a un programa en: 23 Octubre 2010, 15:46 pm
Prueba con Sendkeys o Keybd_event.

salu2!

No funciona :(
200  Programación / Programación Visual Basic / [Ayuda] Sendkeys a un programa en: 23 Octubre 2010, 14:55 pm
Hola a todos, tenía una consulta, estoy probando enviar una tecla a este programa, gensplusrewind-1.0-win32-mk2k Pag: http://www.emulation-evolved.net/
Es un emulador de juegos, estoy tratando con SendInput, SendMessage y PostMessage pero nada :(, todavía no puedo lograr lo que hace el AutoIt 3.0 :(, tienen alguna idea?




Desde ya muchas gracias.
Misery.
Páginas: 1 ... 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 [20] 21 22 23
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines