!C99Shell v. 1.0 pre-release build #13!

Software: Apache. PHP/5.5.15 

uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 

SYSTEM 

Safe-mode: OFF (not secure)

C:\dmz\FileZillaFTP\source\   drwxrwxrwx
Free 4.13 GB of 39.52 GB (10.45%)
Detected drives: [ a ] [ c ] [ d ] [ e ] [ f ]
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     AdminListenSocket.cpp (1.64 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
// AdminListenSocket.cpp: Implementierung der Klasse CAdminListenSocket.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "AdminListenSocket.h"
#include "AdminSocket.h"
#include "AdminInterface.h"
#include "Options.h"
#include "iputils.h"

//////////////////////////////////////////////////////////////////////
// Konstruktion/Destruktion
//////////////////////////////////////////////////////////////////////

CAdminListenSocket::CAdminListenSocket(CAdminInterface *pAdminInterface)
{
    ASSERT(pAdminInterface);
    m_pAdminInterface = pAdminInterface;
}

CAdminListenSocket::~CAdminListenSocket()
{
}

void CAdminListenSocket::OnAccept(int nErrorCode)
{
    CAdminSocket *pSocket = new CAdminSocket(m_pAdminInterface);

    SOCKADDR_IN sockAddr;
    memset(&sockAddr, 0, sizeof(sockAddr));
    int nSockAddrLen = sizeof(sockAddr);
    
    if (Accept(*pSocket))
    {
        //Validate IP address
        CStdString ip;
        UINT port = 0;

        bool allowed = false;
        if (pSocket->GetPeerName(ip, port))
        {
            if (!IsLocalhost(ip))
            {
                COptions options;

                // Get the list of IP filter rules.
                CStdString ips = options.GetOption(OPTION_ADMINIPADDRESSES);
                ips += _T(" ");

                int pos = ips.Find(' ');
                while (pos != -1)
                {
                    CStdString filter = ips.Left(pos);
                    ips = ips.Mid(pos + 1);
                    pos = ips.Find(' ');

                    if ((allowed = MatchesFilter(filter, ip)))
                        break;
                }
            }
            else
                allowed = true;
        }

        if (!allowed)
        {
            delete pSocket;
            return;
        }

        pSocket->AsyncSelect();
        if (!m_pAdminInterface->Add(pSocket))
            delete pSocket;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0312 ]--