Windows NT KAMIDAKI 10.0 build 19045 (Windows 10) AMD64
Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.3.9
Server IP : 192.168.3.16 & Your IP : 216.73.216.204
Domains :
Cant Read [ /etc/named.conf ]
User : SISTEMA
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
C: /
xampp /
FileZillaFTP /
source /
Delete
Unzip
Name
Size
Permission
Date
Action
hash_algorithms
[ DIR ]
drwxrwxrwx
2024-07-26 17:37
includes
[ DIR ]
drwxrwxrwx
2024-07-26 17:37
install
[ DIR ]
drwxrwxrwx
2024-07-26 17:37
interface
[ DIR ]
drwxrwxrwx
2024-07-26 17:37
misc
[ DIR ]
drwxrwxrwx
2024-07-26 17:37
res
[ DIR ]
drwxrwxrwx
2024-07-26 17:37
tinyxml
[ DIR ]
drwxrwxrwx
2024-07-26 17:37
Accounts.cpp
12.2
KB
-rw-rw-rw-
2012-04-16 19:30
Accounts.h
2.12
KB
-rw-rw-rw-
2012-04-16 19:30
AdminInterface.cpp
3.1
KB
-rw-rw-rw-
2012-04-16 19:30
AdminInterface.h
1.77
KB
-rw-rw-rw-
2012-04-16 19:30
AdminListenSocket.cpp
1.64
KB
-rw-rw-rw-
2012-04-16 19:30
AdminListenSocket.h
1.58
KB
-rw-rw-rw-
2012-04-16 19:30
AdminSocket.cpp
9.85
KB
-rw-rw-rw-
2012-04-16 19:30
AdminSocket.h
2.1
KB
-rw-rw-rw-
2012-04-16 19:30
AsyncGssSocketLayer.cpp
30.35
KB
-rw-rw-rw-
2012-04-16 19:30
AsyncGssSocketLayer.h
4.76
KB
-rw-rw-rw-
2012-04-16 19:30
AsyncSocketEx.cpp
51.94
KB
-rw-rw-rw-
2012-04-16 19:30
AsyncSocketEx.h
11.75
KB
-rw-rw-rw-
2012-04-16 19:30
AsyncSocketExLayer.cpp
26.22
KB
-rw-rw-rw-
2012-04-16 19:30
AsyncSocketExLayer.h
7
KB
-rw-rw-rw-
2012-04-16 19:30
AsyncSslSocketLayer.cpp
60.12
KB
-rw-rw-rw-
2012-04-16 19:30
AsyncSslSocketLayer.h
8.94
KB
-rw-rw-rw-
2012-04-16 19:30
ControlSocket.cpp
96.33
KB
-rw-rw-rw-
2012-04-16 19:30
ControlSocket.h
4.74
KB
-rw-rw-rw-
2012-04-16 19:30
ExternalIpCheck.cpp
7.82
KB
-rw-rw-rw-
2012-04-16 19:30
ExternalIpCheck.h
1.85
KB
-rw-rw-rw-
2012-04-16 19:30
FileLogger.cpp
6.68
KB
-rw-rw-rw-
2012-04-16 19:30
FileLogger.h
1.35
KB
-rw-rw-rw-
2012-04-16 19:30
FileZilla server.rc
2.65
KB
-rw-rw-rw-
2012-04-16 19:30
FileZilla server.sln
2.75
KB
-rw-rw-rw-
2012-04-16 19:30
FileZilla server.vcproj
39.95
KB
-rw-rw-rw-
2012-04-16 19:30
ListenSocket.cpp
4.23
KB
-rw-rw-rw-
2012-04-16 19:30
ListenSocket.h
2.29
KB
-rw-rw-rw-
2012-04-16 19:30
MFC64bitFix.cpp
2.56
KB
-rw-rw-rw-
2012-04-16 19:30
MFC64bitFix.h
1.45
KB
-rw-rw-rw-
2012-04-16 19:30
OptionLimits.h
1022
B
-rw-rw-rw-
2012-04-16 19:30
OptionTypes.h
6.46
KB
-rw-rw-rw-
2012-04-16 19:30
Options.cpp
31.81
KB
-rw-rw-rw-
2012-04-16 19:30
Options.h
2.59
KB
-rw-rw-rw-
2012-04-16 19:30
Permissions.cpp
61.53
KB
-rw-rw-rw-
2012-04-16 19:30
Permissions.h
6.82
KB
-rw-rw-rw-
2012-04-16 19:30
Server.cpp
42.34
KB
-rw-rw-rw-
2012-04-16 19:30
Server.h
2.05
KB
-rw-rw-rw-
2012-04-16 19:30
ServerThread.cpp
26.13
KB
-rw-rw-rw-
2012-04-16 19:30
ServerThread.h
4.21
KB
-rw-rw-rw-
2012-04-16 19:30
Service.cpp
15.23
KB
-rw-rw-rw-
2012-04-16 19:30
SpeedLimit.cpp
6.87
KB
-rw-rw-rw-
2012-04-16 19:30
SpeedLimit.h
1.96
KB
-rw-rw-rw-
2012-04-16 19:30
StdAfx.cpp
4.41
KB
-rw-rw-rw-
2012-04-16 19:30
StdAfx.h
4.93
KB
-rw-rw-rw-
2012-04-16 19:30
Thread.cpp
2.85
KB
-rw-rw-rw-
2012-04-16 19:30
Thread.h
1.87
KB
-rw-rw-rw-
2012-04-16 19:30
TransferSocket.cpp
28.72
KB
-rw-rw-rw-
2012-04-16 19:30
TransferSocket.h
3.62
KB
-rw-rw-rw-
2012-04-16 19:30
autobanmanager.cpp
3.44
KB
-rw-rw-rw-
2012-04-16 19:30
autobanmanager.h
1.46
KB
-rw-rw-rw-
2012-04-16 19:30
config.h
1.52
KB
-rw-rw-rw-
2012-04-16 19:30
conversion.cpp
1.95
KB
-rw-rw-rw-
2012-04-16 19:30
conversion.h
435
B
-rw-rw-rw-
2012-04-16 19:30
defs.h
1.03
KB
-rw-rw-rw-
2012-04-16 19:30
hash_thread.cpp
4.79
KB
-rw-rw-rw-
2012-04-16 19:30
hash_thread.h
930
B
-rw-rw-rw-
2012-04-16 19:30
iputils.cpp
10.87
KB
-rw-rw-rw-
2012-04-16 19:30
iputils.h
1.32
KB
-rw-rw-rw-
2012-04-16 19:30
platform.h
1.43
KB
-rw-rw-rw-
2012-04-16 19:30
resource.h
515
B
-rw-rw-rw-
2012-04-16 19:30
version.cpp
4.32
KB
-rw-rw-rw-
2012-04-16 19:30
version.h
881
B
-rw-rw-rw-
2012-04-16 19:30
xml_utils.cpp
487
B
-rw-rw-rw-
2012-04-16 19:30
xml_utils.h
236
B
-rw-rw-rw-
2012-04-16 19:30
Save
Rename
// FileZilla Server - a Windows ftp server // Copyright (C) 2002-2004 - Tim Kosse <tim.kosse@gmx.de> // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation; either version 2 // of the License, or (at your option) any later version. // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // ListenSocket.cpp: Implementierungsdatei // #include "stdafx.h" #include "ListenSocket.h" #include "ServerThread.h" #include "Server.h" #include "Options.h" #include "iputils.h" #include "autobanmanager.h" #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CListenSocket CListenSocket::CListenSocket(CServer *pServer, bool ssl) { ASSERT(pServer); m_pServer = pServer; m_bLocked = FALSE; m_ssl = ssl; } CListenSocket::~CListenSocket() { } ///////////////////////////////////////////////////////////////////////////// // Member-Funktion CListenSocket void CListenSocket::OnAccept(int nErrorCode) { CAsyncSocketEx socket; if (!Accept(socket)) { int nError = WSAGetLastError(); CStdString str; str.Format(_T("Failure in CListenSocket::OnAccept(%d) - call to CAsyncSocketEx::Accept failed, errorcode %d"), nErrorCode, nError); SendStatus(str, 1); SendStatus(_T("If you use a firewall, please check your firewall configuration"), 1); return; } if (!AccessAllowed(socket)) { CStdStringA str = "550 No connections allowed from your IP\r\n"; socket.Send(str, str.GetLength()); return; } if (m_bLocked) { CStdStringA str = "421 Server is locked, please try again later.\r\n"; socket.Send(str, str.GetLength()); return; } int minnum = 255*255*255; CServerThread *pBestThread=0;; for (std::list<CServerThread *>::iterator iter=m_pThreadList->begin(); iter!=m_pThreadList->end(); iter++) { int num=(*iter)->GetNumConnections(); if (num<minnum && (*iter)->IsReady()) { minnum=num; pBestThread=*iter; if (!num) break; } } if (!pBestThread) { char str[] = "421 Server offline."; socket.Send(str, strlen(str)+1); socket.Close(); return; } /* Disable Nagle algorithm. Most of the time single short strings get * transferred over the control connection. Waiting for additional data * where there will be most likely none affects performance. */ BOOL value = TRUE; socket.SetSockOpt(TCP_NODELAY, &value, sizeof(value), IPPROTO_TCP); SOCKET sockethandle = socket.Detach(); pBestThread->AddSocket(sockethandle, m_ssl); CAsyncSocketEx::OnAccept(nErrorCode); } void CListenSocket::SendStatus(CStdString status, int type) { m_pServer->ShowStatus(status, type); } bool CListenSocket::AccessAllowed(CAsyncSocketEx &socket) const { CStdString peerIP; UINT port = 0; BOOL bResult = socket.GetPeerName(peerIP, port); if (!bResult) return true; if (m_pServer->m_pAutoBanManager) { if (m_pServer->m_pAutoBanManager->IsBanned(peerIP)) return false; } bool disallowed = false; // Get the list of IP filter rules. CStdString ips = m_pServer->m_pOptions->GetOption(OPTION_IPFILTER_DISALLOWED); ips += _T(" "); int pos = ips.Find(' '); while (pos != -1) { CStdString blockedIP = ips.Left(pos); ips = ips.Mid(pos + 1); pos = ips.Find(' '); if ((disallowed = MatchesFilter(blockedIP, peerIP))) break; } if (!disallowed) return true; ips = m_pServer->m_pOptions->GetOption(OPTION_IPFILTER_ALLOWED); ips += _T(" "); pos = ips.Find(' '); while (pos != -1) { CStdString blockedIP = ips.Left(pos); ips = ips.Mid(pos + 1); pos = ips.Find(' '); if (MatchesFilter(blockedIP, peerIP)) return true; } return false; }