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

 

 


Tema destacado: Recopilación Tutoriales y Manuales Hacking, Seguridad, Privacidad, Hardware, etc


  Mostrar Mensajes
Páginas: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 [17] 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 ... 50
161  Programación / Programación Visual Basic / Re: ayuda con disque crypter en: 11 Agosto 2013, 21:59 pm
Si lees un poco lo puedes hacer.y s tienesdudas pregunta.  ;D
162  Programación / Programación Visual Basic / Re: ayuda con disque crypter en: 11 Agosto 2013, 03:21 am
Si la hay seria solo tienes que modificar un poco el código. y recorrer el texto.
163  Programación / Programación Visual Basic / Re: ayuda como muevo un archivo en: 11 Agosto 2013, 03:10 am
Usa la función que puse respuesta #3. con ella puedes usar comodines.
164  Programación / Programación Visual Basic / Re: ayuda con disque crypter en: 11 Agosto 2013, 02:06 am
Espero se entienda.

Código
  1. Private Sub Text1_KeyPress(KeyAscii As Integer)
  2. 'Linea 1: Verifica que la tecla presionada este entre el rango a(97 en ascii) y w(119 en ascii)
  3. 'linea 1: si eso es verdadero le suma 3 a tu tecla presionada ejemplo si presionas b(98 en ascii) se cumple y sumas tres al valor ascii resultando en 98+3 = 101 que es el valor ascii de e, luego salimos de la rutina con exit sub
  4. If KeyAscii >= 97 And KeyAscii <= 119 Then KeyAscii = KeyAscii + 3: Exit Sub '1 linea
  5. ' si no se cunple la de arriba es porque estamos en alguno de los valores x,y,z
  6.  If KeyAscii = 120 Then KeyAscii = KeyAscii - 23 'si la tecla es 120 entonces restamos 23 resultando 97 que es valor ascii de a
  7.  If KeyAscii = 121 Then KeyAscii = KeyAscii - 23 'si la tecla es 121 entonces restamos 23 resultando 98 que es valor ascii de b
  8.   If KeyAscii = 122 Then KeyAscii = KeyAscii - 23 'si la tecla es 122 entonces restamos 23 resultando 99 que es valor ascii de c
  9.   End Sub
  10.  
  11.  

PD: con for o each seria mucho mas lento.  :rolleyes:

saludos
165  Programación / Programación Visual Basic / Re: ayuda como muevo un archivo en: 11 Agosto 2013, 01:51 am
Tiene que ser si comodines. si creas tu el archivo y sabes el nombre usa el nombre completo. si necesitas comodines quizás este código te funciones.


Código
  1. Private Const FO_COPY As Long = &H2
  2.  
  3. Private Type SHFILEOPSTRUCT
  4.    hWnd As Long
  5.    wFunc As Long
  6.    pFrom As String
  7.    pTo As String
  8.    fFlags As Integer
  9.    fAborted As Long
  10.    hNameMaps As Long
  11.    sProgress As String
  12. End Type
  13.  
  14. Private Declare Function SHFileOperation Lib "shell32.dll" Alias "SHFileOperationA" ( _
  15.     lpFileOp As SHFILEOPSTRUCT) As Long
  16.  
  17. Public Sub FolderCopyEx(Source As String, Destination As String)
  18.    Dim SHFileOp As SHFILEOPSTRUCT
  19.  
  20.    With SHFileOp
  21.        .wFunc = FO_COPY
  22.        .pFrom = Source
  23.        .pTo = Destination
  24.    End With
  25.  
  26.    SHFileOperation SHFileOp
  27. End Sub

saludos
166  Programación / Programación Visual Basic / Re: ayuda con disque crypter en: 11 Agosto 2013, 01:47 am
Podrías hacer algo así en el caso keypress de tu caja de texto.

Código
  1. Private Sub Text1_KeyPress(KeyAscii As Integer)
  2. If KeyAscii >= 97 And KeyAscii <= 119 Then KeyAscii = KeyAscii + 3: Exit Sub
  3.  If KeyAscii = 120 Then KeyAscii = KeyAscii - 23
  4.  If KeyAscii = 121 Then KeyAscii = KeyAscii - 23
  5.   If KeyAscii = 122 Then KeyAscii = KeyAscii - 23
  6.   End Sub
  7.  

Saludos
167  Programación / Programación Visual Basic / Re: ayuda como muevo un archivo en: 10 Agosto 2013, 21:59 pm
Muestra tu código  :rolleyes:
168  Programación / Ingeniería Inversa / Re: Entry point en VB apps en: 10 Agosto 2013, 02:38 am
El código real comienza el el Entry Point.

arrastra el ejecutable a el OllyDbg y donde comienza ese es el Entry Point.
169  Programación / Programación C/C++ / Re: [Aporte] Compilar SFML Estaticamente en: 9 Agosto 2013, 14:41 pm
Gracias Excelente Me sirvió.  ;-)

saludos
170  Programación / Programación Visual Basic / Re: Ayuda con funcion listar ventanas en Array en: 6 Agosto 2013, 13:56 pm
IsWindowVisible?  :-(


mira este ejemplo

Código
  1. Option Explicit
  2.  
  3. 'Esta función Api devuelve un valor  Boolean indicando si la ventana es una ventana visible
  4. Private Declare Function IsWindowVisible _
  5.    Lib "user32" ( _
  6.        ByVal hwnd As Long) As Long
  7.  
  8. 'Esta función retorna el número de caracteres del caption de la ventana
  9. Private Declare Function GetWindowTextLength _
  10.    Lib "user32" _
  11.    Alias "GetWindowTextLengthA" ( _
  12.        ByVal hwnd As Long) As Long
  13.  
  14. 'Esta devuelve el texto. Se le pasa el hwnd de la ventana, un buffer donde se
  15. 'almacenará el texto devuelto, y el Lenght de la cadena en el último parámetro
  16. 'que obtuvimos con el Api GetWindowTextLength
  17. Private Declare Function GetWindowText _
  18.    Lib "user32" _
  19.    Alias "GetWindowTextA" ( _
  20.        ByVal hwnd As Long, _
  21.        ByVal lpString As String, _
  22.        ByVal cch As Long) As Long
  23.  
  24. 'Esta es la función Api que busca las ventanas y retorna su handle o Hwnd
  25. Private Declare Function GetWindow _
  26.    Lib "user32" ( _
  27.        ByVal hwnd As Long, _
  28.        ByVal wFlag As Long) As Long
  29.  
  30.      Private Declare Function SetWindowText Lib "user32.dll" Alias _
  31. "SetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String) As Long
  32.  
  33. 'Constantes para buscar las ventanas mediante el Api GetWindow
  34. Private Const GW_HWNDFIRST = 0&
  35. Private Const GW_HWNDNEXT = 2&
  36. Private Const GW_CHILD = 5&
  37.  
  38. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  39.  
  40. 'Procedimiento que lista las ventanas visibles de Windows
  41. Private Sub Listar()
  42.  
  43. Dim buf As Long, handle As Long, titulo As String, lenT As Long, ret As Long
  44. Dim retval As Long
  45.    List1.Clear
  46.    'Obtenemos el Hwnd de la primera ventana, usando la constante GW_HWNDFIRST
  47.    handle = GetWindow(hwnd, GW_HWNDFIRST)
  48.  
  49.    'Este bucle va a recorrer todas las ventanas.
  50.    'cuando GetWindow devielva un 0, es por que no hay mas
  51.    Do While handle <> 0
  52.        'Tenemos que comprobar que la ventana es una de tipo visible
  53.        If IsWindowVisible(handle) Then
  54.            'Obtenemos el número de caracteres de la ventana
  55.            lenT = GetWindowTextLength(handle)
  56.            'si es el número anterior es mayor a 0
  57.            If lenT > 0 Then
  58.                'Creamos un buffer. Este buffer tendrá el tamaño con la variable LenT
  59.                titulo = String$(lenT, 0)
  60.                'Ahora recuperamos el texto de la ventana en el buffer que le enviamos
  61.                'y también debemos pasarle el Hwnd de dicha ventana
  62.                ret = GetWindowText(handle, titulo, lenT + 1)
  63.                titulo$ = Left$(titulo, ret)
  64.  
  65.                'si el titulo de la ventana es igual a x titulo cambias y pones lo que sea.
  66.                If titulo = "titulo de ares" Then
  67.                ' return value
  68.  
  69.                retval = SetWindowText(handle, "Hola Mundo")
  70.                End If
  71.                'La agregamos al ListBox
  72.                List1.AddItem titulo$
  73.            End If
  74.        End If
  75.        'Buscamos con GetWindow la próxima ventana usando la constante GW_HWNDNEXT
  76.        handle = GetWindow(handle, GW_HWNDNEXT)
  77.    Loop
  78. End Sub
  79.  
  80. Private Sub Command1_Click()
  81.    'Llamamos a la función Listar
  82.    Call Listar
  83. End Sub

saludos
Páginas: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 [17] 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 ... 50
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines