One Hat Cyber Team
Your IP :
172.16.0.254
Server IP :
58.26.163.33
Server :
Windows NT DGPENSV2LPKMN 10.0 build 14393 (Windows Server 2016) AMD64
Server Software :
Apache/2.4.46 (Win64) OpenSSL/1.1.1h PHP/7.3.25
PHP Version :
7.3.25
Buat File
|
Buat Folder
Eksekusi
Dir :
C:
/
xampp7
/
FileZillaFTP
/
source
/
Edit File:
AdminListenSocket.cpp
// 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; } }
Simpan