Windows NT DGPENSV2LPKMN 10.0 build 14393 (Windows Server 2016) AMD64
Apache/2.4.46 (Win64) OpenSSL/1.1.1h PHP/7.3.25
: 172.16.0.66 | : 172.16.0.254
Cant Read [ /etc/named.conf ]
7.3.25
SYSTEM
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
BLACK DEFEND!
README
+ Create Folder
+ Create File
[ A ]
[ C ]
[ D ]
C: /
xampp7 /
FileZillaFTP /
source /
interface /
[ HOME SHELL ]
Name
Size
Permission
Action
misc
[ DIR ]
drwxrwxrwx
res
[ DIR ]
drwxrwxrwx
AdminSocket.cpp
11.93
KB
-rw-rw-rw-
AdminSocket.h
2.15
KB
-rw-rw-rw-
ConnectDialog.cpp
3.33
KB
-rw-rw-rw-
ConnectDialog.h
2.2
KB
-rw-rw-rw-
DeleteGroupInUseDlg.cpp
2.21
KB
-rw-rw-rw-
DeleteGroupInUseDlg.h
1.57
KB
-rw-rw-rw-
EnterSomething.cpp
2.91
KB
-rw-rw-rw-
EnterSomething.h
2.27
KB
-rw-rw-rw-
FileZilla Server Interface.vcp...
46.3
KB
-rw-rw-rw-
FileZilla server.cpp
6.09
KB
-rw-rw-rw-
FileZilla server.h
2.37
KB
-rw-rw-rw-
FileZilla server.rc
66.64
KB
-rw-rw-rw-
GenerateCertificateDlg.cpp
3.22
KB
-rw-rw-rw-
GenerateCertificateDlg.h
1.39
KB
-rw-rw-rw-
GroupsDlg.cpp
13.45
KB
-rw-rw-rw-
GroupsDlg.h
3.1
KB
-rw-rw-rw-
GroupsDlgGeneral.cpp
5.01
KB
-rw-rw-rw-
GroupsDlgGeneral.h
2.64
KB
-rw-rw-rw-
GroupsDlgIpFilter.cpp
3.94
KB
-rw-rw-rw-
GroupsDlgIpFilter.h
2.36
KB
-rw-rw-rw-
GroupsDlgSharedFolders.cpp
18.15
KB
-rw-rw-rw-
GroupsDlgSharedFolders.h
3.51
KB
-rw-rw-rw-
GroupsDlgSpeedLimit.cpp
14.94
KB
-rw-rw-rw-
GroupsDlgSpeedLimit.h
3.38
KB
-rw-rw-rw-
MainFrm.cpp
35.15
KB
-rw-rw-rw-
MainFrm.h
5.65
KB
-rw-rw-rw-
NewUserDlg.cpp
2.68
KB
-rw-rw-rw-
NewUserDlg.h
2.18
KB
-rw-rw-rw-
OfflineAskDlg.cpp
2.05
KB
-rw-rw-rw-
OfflineAskDlg.h
2.06
KB
-rw-rw-rw-
Options.cpp
8.67
KB
-rw-rw-rw-
Options.h
2.18
KB
-rw-rw-rw-
OptionsAdminInterfacePage.cpp
7.01
KB
-rw-rw-rw-
OptionsAdminInterfacePage.h
2.58
KB
-rw-rw-rw-
OptionsAutobanPage.cpp
3.75
KB
-rw-rw-rw-
OptionsAutobanPage.h
2.14
KB
-rw-rw-rw-
OptionsCompressionPage.cpp
3.42
KB
-rw-rw-rw-
OptionsCompressionPage.h
1.41
KB
-rw-rw-rw-
OptionsDlg.cpp
10.44
KB
-rw-rw-rw-
OptionsDlg.h
3.05
KB
-rw-rw-rw-
OptionsGSSPage.cpp
2.32
KB
-rw-rw-rw-
OptionsGSSPage.h
2.1
KB
-rw-rw-rw-
OptionsGeneralIpbindingsPage.c...
1.78
KB
-rw-rw-rw-
OptionsGeneralIpbindingsPage.h
1.33
KB
-rw-rw-rw-
OptionsGeneralPage.cpp
4.98
KB
-rw-rw-rw-
OptionsGeneralPage.h
2.41
KB
-rw-rw-rw-
OptionsGeneralWelcomemessagePa...
3.5
KB
-rw-rw-rw-
OptionsGeneralWelcomemessagePa...
2.45
KB
-rw-rw-rw-
OptionsIpFilterPage.cpp
3.15
KB
-rw-rw-rw-
OptionsIpFilterPage.h
2.3
KB
-rw-rw-rw-
OptionsLoggingPage.cpp
4.91
KB
-rw-rw-rw-
OptionsLoggingPage.h
2.49
KB
-rw-rw-rw-
OptionsMiscPage.cpp
3.78
KB
-rw-rw-rw-
OptionsMiscPage.h
2.33
KB
-rw-rw-rw-
OptionsPage.cpp
2.03
KB
-rw-rw-rw-
OptionsPage.h
2.27
KB
-rw-rw-rw-
OptionsPasvPage.cpp
5.96
KB
-rw-rw-rw-
OptionsPasvPage.h
2.51
KB
-rw-rw-rw-
OptionsSecurityPage.cpp
3.48
KB
-rw-rw-rw-
OptionsSecurityPage.h
2.39
KB
-rw-rw-rw-
OptionsSpeedLimitPage.cpp
12
KB
-rw-rw-rw-
OptionsSpeedLimitPage.h
3.35
KB
-rw-rw-rw-
OptionsSslPage.cpp
6.76
KB
-rw-rw-rw-
OptionsSslPage.h
1.76
KB
-rw-rw-rw-
OutputFormat.cpp
792
B
-rw-rw-rw-
OutputFormat.h
178
B
-rw-rw-rw-
SpeedLimitRuleDlg.cpp
5.04
KB
-rw-rw-rw-
SpeedLimitRuleDlg.h
2.46
KB
-rw-rw-rw-
StatusCtrl.cpp
10.46
KB
-rw-rw-rw-
StatusCtrl.h
2.81
KB
-rw-rw-rw-
StatusView.cpp
2.95
KB
-rw-rw-rw-
StatusView.h
2.39
KB
-rw-rw-rw-
StdAfx.cpp
1.03
KB
-rw-rw-rw-
StdAfx.h
2.77
KB
-rw-rw-rw-
UsersDlg.cpp
13.17
KB
-rw-rw-rw-
UsersDlg.h
3.26
KB
-rw-rw-rw-
UsersDlgGeneral.cpp
8.51
KB
-rw-rw-rw-
UsersDlgGeneral.h
2.78
KB
-rw-rw-rw-
UsersDlgIpFilter.cpp
3.88
KB
-rw-rw-rw-
UsersDlgIpFilter.h
2.34
KB
-rw-rw-rw-
UsersDlgSharedFolders.cpp
17.95
KB
-rw-rw-rw-
UsersDlgSharedFolders.h
3.45
KB
-rw-rw-rw-
UsersDlgSpeedLimit.cpp
15.4
KB
-rw-rw-rw-
UsersDlgSpeedLimit.h
3.36
KB
-rw-rw-rw-
UsersListCtrl.cpp
24.46
KB
-rw-rw-rw-
UsersListCtrl.h
3.54
KB
-rw-rw-rw-
UsersView.cpp
2.83
KB
-rw-rw-rw-
UsersView.h
2.37
KB
-rw-rw-rw-
resource.h
14.1
KB
-rw-rw-rw-
splitex.cpp
10.85
KB
-rw-rw-rw-
splitex.h
1.4
KB
-rw-rw-rw-
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Options.cpp
// 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. // Options.cpp: Implementierungsdatei // #include "stdafx.h" #include "options.h" #include "../version.h" #include "filezilla server.h" #include "../tinyxml/tinyxml.h" #if defined(_DEBUG) && !defined(MMGR) #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif BOOL COptions::m_bInitialized=FALSE; ///////////////////////////////////////////////////////////////////////////// // Dialogfeld COptions COptions::COptions() { for (int i=0;i<IOPTIONS_NUM;i++) m_OptionsCache[i].bCached=FALSE; } COptions::~COptions() { } struct t_Option { TCHAR name[30]; int nType; }; static const t_Option m_Options[IOPTIONS_NUM]={ _T("Start Minimized"), 1, _T("Last Server Address"), 0, _T("Last Server Port"), 1, _T("Last Server Password"), 0, _T("Always use last server"), 1, _T("User Sorting"), 1, _T("Filename Display"), 1 }; void COptions::SetOption(int nOptionID, __int64 value) { Init(); m_OptionsCache[nOptionID-1].bCached = TRUE; m_OptionsCache[nOptionID-1].nType = 1; m_OptionsCache[nOptionID-1].value = value; CString valuestr; valuestr.Format( _T("%I64d"), value); TCHAR buffer[MAX_PATH + 1000]; //Make it large enough GetModuleFileName( 0, buffer, MAX_PATH ); LPTSTR pos=_tcsrchr(buffer, '\\'); if (pos) *++pos=0; _tcscat(buffer, _T("FileZilla Server Interface.xml")); USES_CONVERSION; char* bufferA = T2A(buffer); if (!bufferA) return; TiXmlDocument document; if (!document.LoadFile(bufferA)) return; TiXmlElement* pRoot = document.FirstChildElement("FileZillaServer"); if (!pRoot) return; TiXmlElement* pSettings = pRoot->FirstChildElement("Settings"); if (!pSettings) pSettings = pRoot->LinkEndChild(new TiXmlElement("Settings"))->ToElement(); TiXmlElement* pItem; for (pItem = pSettings->FirstChildElement("Item"); pItem; pItem = pItem->NextSiblingElement("Item")) { const char* pName = pItem->Attribute("name"); if (!pName) continue; CString name(pName); if (name != m_Options[nOptionID-1].name) continue; break; } if (!pItem) pItem = pSettings->LinkEndChild(new TiXmlElement("Item"))->ToElement(); pItem->Clear(); pItem->SetAttribute("name", ConvToNetwork(m_Options[nOptionID-1].name)); pItem->SetAttribute("type", "numeric"); pItem->LinkEndChild(new TiXmlText(ConvToNetwork(valuestr))); document.SaveFile(bufferA); } void COptions::SetOption(int nOptionID, CString value) { Init(); m_OptionsCache[nOptionID-1].bCached = TRUE; m_OptionsCache[nOptionID-1].nType = 0; m_OptionsCache[nOptionID-1].str = value; TCHAR buffer[MAX_PATH + 1000]; //Make it large enough GetModuleFileName( 0, buffer, MAX_PATH ); LPTSTR pos=_tcsrchr(buffer, '\\'); if (pos) *++pos=0; _tcscat(buffer, _T("FileZilla Server Interface.xml")); USES_CONVERSION; char* bufferA = T2A(buffer); if (!bufferA) return; TiXmlDocument document; if (!document.LoadFile(bufferA)) return; TiXmlElement* pRoot = document.FirstChildElement("FileZillaServer"); if (!pRoot) return; TiXmlElement* pSettings = pRoot->FirstChildElement("Settings"); if (!pSettings) pSettings = pRoot->LinkEndChild(new TiXmlElement("Settings"))->ToElement(); TiXmlElement* pItem; for (pItem = pSettings->FirstChildElement("Item"); pItem; pItem = pItem->NextSiblingElement("Item")) { const char* pName = pItem->Attribute("name"); if (!pName) continue; CString name(pName); if (name != m_Options[nOptionID-1].name) continue; break; } if (!pItem) pItem = pSettings->LinkEndChild(new TiXmlElement("Item"))->ToElement(); pItem->Clear(); pItem->SetAttribute("name", ConvToNetwork(m_Options[nOptionID-1].name)); pItem->SetAttribute("type", "string"); pItem->LinkEndChild(new TiXmlText(ConvToNetwork(value))); document.SaveFile(bufferA); } CString COptions::GetOption(int nOptionID) { ASSERT(nOptionID>0 && nOptionID<=IOPTIONS_NUM); ASSERT(!m_Options[nOptionID-1].nType); Init(); if (m_OptionsCache[nOptionID-1].bCached) return m_OptionsCache[nOptionID-1].str; //Verification switch (nOptionID) { case IOPTION_LASTSERVERADDRESS: m_OptionsCache[nOptionID-1].str = _T("127.0.0.1"); break; default: m_OptionsCache[nOptionID-1].str=""; break; } m_OptionsCache[nOptionID-1].bCached=TRUE; m_OptionsCache[nOptionID-1].nType=0; return m_OptionsCache[nOptionID-1].str; } __int64 COptions::GetOptionVal(int nOptionID) { ASSERT(nOptionID>0 && nOptionID<=IOPTIONS_NUM); ASSERT(m_Options[nOptionID-1].nType == 1); Init(); if (m_OptionsCache[nOptionID-1].bCached) return m_OptionsCache[nOptionID-1].value; switch (nOptionID) { case IOPTION_LASTSERVERPORT: m_OptionsCache[nOptionID-1].value=14147; break; default: m_OptionsCache[nOptionID-1].value=0; } m_OptionsCache[nOptionID-1].bCached=TRUE; m_OptionsCache[nOptionID-1].nType=0; return m_OptionsCache[nOptionID-1].value; } void COptions::Init() { if (m_bInitialized) return; m_bInitialized=TRUE; TCHAR buffer[MAX_PATH + 1000]; //Make it large enough GetModuleFileName( 0, buffer, MAX_PATH ); LPTSTR pos=_tcsrchr(buffer, '\\'); if (pos) *++pos=0; _tcscat(buffer, _T("FileZilla Server Interface.xml")); for (int i = 0; i < IOPTIONS_NUM; i++) m_OptionsCache[i].bCached = FALSE; USES_CONVERSION; char* bufferA = T2A(buffer); if (!bufferA) return; TiXmlDocument document; CFileStatus status; if (!CFile::GetStatus(buffer, status) ) { document.LinkEndChild(new TiXmlElement("FileZillaServer")); document.SaveFile(bufferA); } else if (status.m_attribute&FILE_ATTRIBUTE_DIRECTORY) return; if (!document.LoadFile(bufferA)) return; TiXmlElement* pRoot = document.FirstChildElement("FileZillaServer"); if (!pRoot) return; TiXmlElement* pSettings = pRoot->FirstChildElement("Settings"); if (!pSettings) pSettings = pRoot->LinkEndChild(new TiXmlElement("Settings"))->ToElement(); TiXmlElement* pItem; for (pItem = pSettings->FirstChildElement("Item"); pItem; pItem = pItem->NextSiblingElement("Item")) { const char* pName = pItem->Attribute("name"); if (!pName) continue; CString name(pName); const char* pType = pItem->Attribute("type"); if (!pType) continue; CString type(pType); TiXmlNode* textNode = pItem->FirstChild(); if (!textNode || !textNode->ToText()) continue; CString value = ConvFromNetwork(textNode->Value()); for (int i = 0; i < IOPTIONS_NUM; i++) { if (name != m_Options[i].name) continue; if (m_OptionsCache[i].bCached) { ::AfxTrace( _T("Item '%s' is already in cache, ignoring item\n"), name); break; } if (type == "numeric") { if (m_Options[i].nType != 1) { ::AfxTrace( _T("Type mismatch for option '%s'. Type is %d, should be %d"), name, m_Options[i].nType, 1); break; } m_OptionsCache[i].bCached = TRUE; m_OptionsCache[i].nType = 1; _int64 value64=_ttoi64(value); switch (i+1) { case IOPTION_LASTSERVERPORT: if (value64 < 1 || value64 > 65535) value64 = 14147; break; default: break; } m_OptionsCache[i].value = value64; } else { if (type != "string") ::AfxTrace( _T("Unknown option type '%s' for item '%s', assuming string\n"), type, name); if (m_Options[i].nType != 0) { ::AfxTrace( _T("Type mismatch for option '%s'. Type is %d, should be %d"), name, m_Options[i].nType, 0); break; } m_OptionsCache[i].bCached = TRUE; m_OptionsCache[i].nType = 0; m_OptionsCache[i].str = value; } } } } bool COptions::IsNumeric(LPCTSTR str) { if (!str) return false; LPCTSTR p=str; while(*p) { if (*p<'0' || *p>'9') { return false; } p++; } return true; }
Close