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

 

 


Tema destacado: Introducción a la Factorización De Semiprimos (RSA)


  Mostrar Mensajes
Páginas: 1 ... 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 [51] 52 53 54 55 56 57 58 59 60 61 62 63
501  Programación / Programación Visual Basic / Re: Listar claves del registro en: 5 Noviembre 2005, 23:42 pm
Fuente: Api guide

Código:
Const ERROR_NO_MORE_ITEMS = 259&
Const HKEY_CURRENT_CONFIG = &H80000005
Const HKEY_LOCAL_MACHINE = &H80000002
Private Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As Long) As Long
Private Declare Function RegOpenKey Lib "advapi32.dll" Alias "RegOpenKeyA" (ByVal hKey As Long, ByVal lpSubKey As String, phkResult As Long) As Long
Private Declare Function RegEnumKeyEx Lib "advapi32.dll" Alias "RegEnumKeyExA" (ByVal hKey As Long, ByVal dwIndex As Long, ByVal lpName As String, lpcbName As Long, ByVal lpReserved As Long, ByVal lpClass As String, lpcbClass As Long, lpftLastWriteTime As Any) As Long
Private Declare Function RegEnumValue Lib "advapi32.dll" Alias "RegEnumValueA" (ByVal hKey As Long, ByVal dwIndex As Long, ByVal lpValueName As String, lpcbValueName As Long, ByVal lpReserved As Long, lpType As Long, lpData As Any, lpcbData As Long) As Long
Private Sub Form_Load()
    'KPD-Team 2001
    'URL: http://www.allapi.net/
    'E-Mail: KPDTeam@Allapi.net
    Dim hKey As Long, Cnt As Long, sName As String, sData As String, Ret As Long, RetData As Long
    Const BUFFER_SIZE As Long = 255
    'Set the forms graphics mode to persistent
    Me.AutoRedraw = True
    Me.Print "RegEnumKeyEx"
    Ret = BUFFER_SIZE
    'Open the registry key
    If RegOpenKey(HKEY_LOCAL_MACHINE, "Hardware", hKey) = 0 Then
        'Create a buffer
        sName = Space(BUFFER_SIZE)
        'Enumerate the keys
        While RegEnumKeyEx(hKey, Cnt, sName, Ret, ByVal 0&, vbNullString, ByVal 0&, ByVal 0&) <> ERROR_NO_MORE_ITEMS
            'Show the enumerated key
            Me.Print "  " + Left$(sName, Ret)
            'prepare for the next key
            Cnt = Cnt + 1
            sName = Space(BUFFER_SIZE)
            Ret = BUFFER_SIZE
        Wend
        'close the registry key
        RegCloseKey hKey
    Else
        Me.Print "  Error while calling RegOpenKey"
    End If
    Me.Print vbCrLf + "RegEnumValue"
    Cnt = 0
    'Open a registry key
    If RegOpenKey(HKEY_LOCAL_MACHINE, "Software\Microsoft\Windows\CurrentVersion", hKey) = 0 Then
        'initialize
        sName = Space(BUFFER_SIZE)
        sData = Space(BUFFER_SIZE)
        Ret = BUFFER_SIZE
        RetData = BUFFER_SIZE
        'enumerate the values
        While RegEnumValue(hKey, Cnt, sName, Ret, 0, ByVal 0&, ByVal sData, RetData) <> ERROR_NO_MORE_ITEMS
            'show data
            If RetData > 0 Then Me.Print "  " + Left$(sName, Ret) + "=" + Left$(sData, RetData - 1)
            'prepare for next value
            Cnt = Cnt + 1
            sName = Space(BUFFER_SIZE)
            sData = Space(BUFFER_SIZE)
            Ret = BUFFER_SIZE
            RetData = BUFFER_SIZE
        Wend
        'Close the registry key
        RegCloseKey hKey
    Else
        Me.Print "  Error while calling RegOpenKey"
    End If
End Sub



Salu2
502  Programación / Programación Visual Basic / Re: contenido de un archivo en: 5 Noviembre 2005, 12:14 pm
Dim Tamaño as string

open "C:\lala.exe" for binary as #1
Tamaño = Space$(LOF(1))
get #1,,Tamaño
CLose #1

msgbox tamaño

Salu2
503  Programación / Programación Visual Basic / Re: Guardar archivos dentro de un form(listview).... en: 29 Octubre 2005, 01:18 am
tu sabes como el programa gusrda todos los datos en el archivo?
sabes algo sobre el manejo  de archivos en binario, sabes acer un editor de servers o algo asi?

Ya te e dao cosas k buscar. postea si tas mu perdio

Los comienzos son dificiles y esto no es dificiel, es dificil de entender, pero es una  bobadilla.

Salu2
504  Programación / Programación Visual Basic / Re: AutoEliminar programa en: 29 Octubre 2005, 01:16 am
el problema es k como borras un programa a si mismo, no se pede por k mientras esta en memoria no pedes abria k usar algo exteno, usar un bat por ejemplo... pero no se bn k code poner al bat y el problema es k tamben keda el bat...
505  Programación / Programación Visual Basic / AutoEliminar programa en: 29 Octubre 2005, 00:14 am
Alguien sabe como podria acer k un programa una vez aya echo su funcion se elimine l solito de el equipo, yo abia pensaco k creara un bat y lo ejecutara pero tuve problemas para en contrar un code k me valiera, por k aunke el comando lo borre el proceso aun ta en memoria, no se ideas please... a ser posibele me gustaria k no dejara ningun bat por ahi perdido ni na...

Salu2
506  Programación / Programación Visual Basic / Re: Guardar archivos dentro de un form(listview).... en: 29 Octubre 2005, 00:08 am
pos claro kse pede
pero lo k tenes k acer es = k guardas el archivo tenes k poner al final del mismo en k parte de el ejecutable empiezan los adjuntos para a la orra de mandarlos extraerlos para codificarlos en base 64(si los keres mandar por email) y si keres los archivos k as estraido les pedes agregar al listbox y le pones para k muestre iconos y te que da como un explorador si le pones iconos.

Salu2
507  Programación / Programación Visual Basic / Re: como decriptar y cifrar MD5 en: 28 Octubre 2005, 19:05 pm
Uno de aki de el foro izo uno y posteo el codigo fente en vb, busca un pko, tenogo mala memoria para los nombres...

Salu2
508  Programación / Programación Visual Basic / Re: necesito informacion en: 28 Octubre 2005, 16:39 pm
un backup, ... no se, se me ocurren muchas formas, desde gusrdarlo en un cab con clave asta copiarlo en alguna carpeta

Salu2
509  Programación / Programación Visual Basic / Re: como decriptar y cifrar MD5 en: 28 Octubre 2005, 16:37 pm
MD5 no se descifra, por k no es reversible, lo que tienes k acer es un programa que encripte claves en md5 y las compare con las del textbox o la k tienes.

Salu2
510  Programación / Programación Visual Basic / Re: Valores del registro en: 27 Octubre 2005, 20:28 pm
Ya esta solucionado, esta en el foro de indetectables.com.ar

Salu2
Páginas: 1 ... 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 [51] 52 53 54 55 56 57 58 59 60 61 62 63
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines