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 /
src /
xampp-control-panel /
Delete
Unzip
Name
Size
Permission
Date
Action
gfx
[ DIR ]
drwxrwxrwx
2024-07-26 17:36
locale
[ DIR ]
drwxrwxrwx
2024-07-26 17:36
VersInfo.pas
42.97
KB
-rw-rw-rw-
2015-11-12 17:13
default.po
32.22
KB
-rw-rw-rw-
2015-11-12 17:13
ggexclude.cfg
227
B
-rw-rw-rw-
2015-11-12 17:13
gnugettext.pas
114.84
KB
-rw-rw-rw-
2015-11-12 17:13
ignore.po
7.28
KB
-rw-rw-rw-
2015-11-12 17:13
sonar-project.properties
464
B
-rw-rw-rw-
2015-11-12 17:13
uApache.pas
15.79
KB
-rw-rw-rw-
2015-11-12 17:13
uBaseModule.pas
2.25
KB
-rw-rw-rw-
2015-11-12 17:13
uConfig.dfm
14.81
KB
-rw-rw-rw-
2015-11-12 17:13
uConfig.pas
4.43
KB
-rw-rw-rw-
2015-11-12 17:13
uConfigUserDefined.dfm
14.73
KB
-rw-rw-rw-
2015-11-12 17:13
uConfigUserDefined.pas
3.36
KB
-rw-rw-rw-
2015-11-12 17:13
uExceptionDialog.dcu
32.71
KB
-rw-rw-rw-
2015-11-12 17:13
uExceptionDialog.dfm
2.08
KB
-rw-rw-rw-
2015-11-12 17:13
uExceptionDialog.pas
27.37
KB
-rw-rw-rw-
2015-11-12 17:13
uFileZilla.pas
14.85
KB
-rw-rw-rw-
2015-11-12 17:13
uGetWinVersionInfo.dcu
8.09
KB
-rw-rw-rw-
2015-11-12 17:13
uGetWinVersionInfo.pas
11.13
KB
-rw-rw-rw-
2015-11-12 17:13
uHelp.dfm
3.18
KB
-rw-rw-rw-
2015-11-12 17:13
uHelp.pas
1.81
KB
-rw-rw-rw-
2015-11-12 17:13
uJclSysInfo.pas
22.05
KB
-rw-rw-rw-
2015-11-12 17:13
uLanguage.dfm
12.95
KB
-rw-rw-rw-
2015-11-12 17:13
uLanguage.pas
2
KB
-rw-rw-rw-
2015-11-12 17:13
uLogOptions.dfm
6.42
KB
-rw-rw-rw-
2015-11-12 17:13
uLogOptions.pas
2.1
KB
-rw-rw-rw-
2015-11-12 17:13
uMain.dfm
217.14
KB
-rw-rw-rw-
2015-11-12 17:13
uMain.pas
39.26
KB
-rw-rw-rw-
2015-11-12 17:13
uMercury.pas
11.42
KB
-rw-rw-rw-
2015-11-12 17:13
uMySQL.pas
13.95
KB
-rw-rw-rw-
2019-06-03 13:40
uNetstat.dfm
3.53
KB
-rw-rw-rw-
2015-11-12 17:13
uNetstat.pas
7.95
KB
-rw-rw-rw-
2015-11-12 17:13
uNetstatTable.pas
7.58
KB
-rw-rw-rw-
2016-12-14 12:45
uProcesses.pas
6.25
KB
-rw-rw-rw-
2015-11-12 17:13
uProcesses_new.pas
2.14
KB
-rw-rw-rw-
2019-03-07 14:14
uServiceSettings.dfm
16.89
KB
-rw-rw-rw-
2015-11-12 17:13
uServiceSettings.pas
8.26
KB
-rw-rw-rw-
2015-11-12 17:13
uServices.pas
6.14
KB
-rw-rw-rw-
2015-11-12 17:13
uTomcat.pas
15.9
KB
-rw-rw-rw-
2015-11-12 17:13
uTools.pas
26.61
KB
-rw-rw-rw-
2021-04-06 11:38
xampp_control3.dpr
2.21
KB
-rw-rw-rw-
2015-11-12 17:13
xampp_control3.dproj
30.26
KB
-rw-rw-rw-
2021-04-06 11:38
xampp_control3.dproj.local
38.45
KB
-rw-rw-rw-
2015-11-12 17:13
xampp_control3.drc
78.46
KB
-rw-rw-rw-
2015-11-12 17:13
xampp_control3.dres
37.08
KB
-rw-rw-rw-
2015-11-12 17:13
xampp_control3.identcache
1.29
KB
-rw-rw-rw-
2015-11-12 17:13
xampp_control3.stat
170
B
-rw-rw-rw-
2015-11-12 17:13
xampp_control3Resource.rc
341
B
-rw-rw-rw-
2015-11-12 17:13
xampp_control3_project.tvsconfig
72
B
-rw-rw-rw-
2015-11-12 17:13
Save
Rename
unit uNetstatTable; interface uses GnuGettext, SysUtils, Classes, Windows, Dialogs, uProcesses_new, WinSock; const SIZE = 100000; MIB_TCP_STATE_LISTEN = 2; type TCP_TABLE_CLASS = integer; PMIB_TCPROW_OWNER_PID = ^MIB_TCPROW_OWNER_PID; MIB_TCPROW_OWNER_PID = packed record dwState: DWORD; dwLocalAddr: DWORD; dwLocalPort: DWORD; dwRemoteAddr: DWORD; dwRemotePort: DWORD; dwOwningPid: DWORD; end; PMIB_TCPTABLE_OWNER_PID = ^MIB_TCPTABLE_OWNER_PID; MIB_TCPTABLE_OWNER_PID = packed record dwNumEntries: DWORD; table: array [0 .. SIZE - 1] of MIB_TCPROW_OWNER_PID; //table: array [0 .. 99999] of MIB_TCPROW_OWNER_PID; end; tNetstatTable = class private hLibModule: THandle; DLLProcPointer: Pointer; procedure LoadExIpHelperProcedures; procedure UnLoadExIpHelperProcedures; public pTcpTable: PMIB_TCPTABLE_OWNER_PID; updating_table: integer; updating: integer; procedure UpdateTable; function GetPorts4PID(pid: integer): string; function GetPortCount4PID(pid: integer): integer; function isPortInUse(port: integer): string; function isPortInUsePID(port: integer): integer; constructor Create; destructor Destroy; override; end; var NetStatTable: tNetstatTable; implementation uses uTools, uMain; const TCP_TABLE_OWNER_PID_ALL = 5; var getting_data_1: integer; getting_data_2: integer; getting_data_3: integer; getting_data_4: integer; GetExtendedTcpTable:function(pTcpTable: Pointer; dwSize: PDWORD; bOrder: BOOL; lAf: ULONG; TableClass: TCP_TABLE_CLASS; Reserved: ULONG): DWORD; stdcall; { tNetStatTable } constructor tNetstatTable.Create; begin DLLProcPointer := nil; hLibModule := 0; pTcpTable := nil; updating := 0; updating_table := 0; getting_data_1 := 0; getting_data_2 := 0; getting_data_3 := 0; getting_data_4 := 0; try LoadExIpHelperProcedures; except fMain.AddLog('NetStatTable', 'Problem loading IP Library', ltError); raiseLastOSError(); end; end; destructor tNetstatTable.Destroy; begin try UnLoadExIpHelperProcedures; if (pTcpTable <> nil) then FreeMem(pTcpTable); except end; inherited; end; function tNetstatTable.GetPortCount4PID(pid: integer): integer; var i: integer; begin result := 0; if updating = 1 then exit; getting_data_1 := 1; //fMain.updateTimerNetworking(False); for i := 0 to NetStatTable.pTcpTable.dwNumEntries - 1 do if NetStatTable.pTcpTable.table[i].dwOwningPid = Cardinal(pid) then result := result + 1; getting_data_1 := 0; //fMain.updateTimerNetworking(True); end; function tNetstatTable.GetPorts4PID(pid: integer): string; var i: integer; port: string; begin result := ''; if updating = 1 then exit; getting_data_2 := 1; //fMain.updateTimerNetworking(False); for i := 0 to NetStatTable.pTcpTable.dwNumEntries - 1 do begin if NetStatTable.pTcpTable.table[i].dwOwningPid = Cardinal(pid) then begin port := IntToStr(NetStatTable.pTcpTable.table[i].dwLocalPort); if result = '' then result := port else result := result + ', ' + port; end; end; getting_data_2 := 0; //fMain.updateTimerNetworking(True); end; function tNetstatTable.isPortInUse(port: integer): string; var i: integer; path: string; pid: Cardinal; begin result := ''; if updating = 1 then exit; getting_data_3 := 1; //fMain.updateTimerNetworking(False); for i := 0 to NetStatTable.pTcpTable.dwNumEntries - 1 do begin if NetStatTable.pTcpTable.table[i].dwLocalPort = Cardinal(port) then begin pid := NetStatTable.pTcpTable.table[i].dwOwningPid; path := Processes.GetProcessName(pid); if path <> '' then result := path else result := _('unknown program'); getting_data_3 := 0; exit; end; end; getting_data_3 := 0; //fMain.updateTimerNetworking(True); end; function tNetstatTable.isPortInUsePID(port: integer): integer; var i: integer; begin result := -1; if updating = 1 then exit; getting_data_4 := 1; //fMain.updateTimerNetworking(False); for i := 0 to NetStatTable.pTcpTable.dwNumEntries - 1 do begin if NetStatTable.pTcpTable.table[i].dwLocalPort = Cardinal(port) then begin result := NetStatTable.pTcpTable.table[i].dwOwningPid; getting_data_4 := 0; exit; end; end; getting_data_4 := 0; //fMain.updateTimerNetworking(True); end; procedure tNetstatTable.LoadExIpHelperProcedures; begin hLibModule := LoadLibrary('iphlpapi.dll'); //if hLibModule = 0 then // exit; GetExtendedTcpTable := GetProcAddress(hLibModule, 'GetExtendedTcpTable'); //DLLProcPointer := GetProcAddress(hLibModule, 'GetExtendedTcpTable'); //if not Assigned(DLLProcPointer) then //begin // ShowMessage(IntToStr(GetLastError)); //end; end; procedure tNetstatTable.UnLoadExIpHelperProcedures; begin if hLibModule > HINSTANCE_ERROR then FreeLibrary(hLibModule); end; procedure tNetstatTable.UpdateTable; var dwSize: DWORD; Res: DWORD; //GetExtendedTcpTable: TGetExtendedTcpTable; i: integer; try_limit: integer; counter: integer; localPTcpTable: PMIB_TCPTABLE_OWNER_PID; auxPTcpTable: PMIB_TCPTABLE_OWNER_PID; begin if updating = 1 then exit; if ((getting_data_1 = 1) or (getting_data_2 = 1) or (getting_data_3 = 1) or (getting_data_4 = 1)) then exit; if updating_table = 1 then exit; updating := 1; //if (DLLProcPointer = nil) or (hLibModule < HINSTANCE_ERROR) then if (hLibModule < HINSTANCE_ERROR) then begin exit; end; //GetExtendedTcpTable := DLLProcPointer; try try_limit := 10; counter := 0; dwSize := 0; Res := GetExtendedTcpTable(localPTcpTable, @dwSize, False, AF_INET, TCP_TABLE_OWNER_PID_ALL, 0); while ((Res = ERROR_INSUFFICIENT_BUFFER) and (counter < try_limit)) do begin GetMem(localPTcpTable, dwSize); // das API hat die "gew�nschte" Gr�sse gesetzt Res := GetExtendedTcpTable(localPTcpTable, @dwSize, False, AF_INET, TCP_TABLE_OWNER_PID_ALL, 0); inc(counter); end; if (Res = NO_ERROR) then begin for i := 0 to localPTcpTable.dwNumEntries - 1 do begin localPTcpTable.table[i].dwLocalPort := ((localPTcpTable.table[i].dwLocalPort and $FF00) shr 8) or ((localPTcpTable.table[i].dwLocalPort and $00FF) shl 8); localPTcpTable.table[i].dwRemotePort := ((localPTcpTable.table[i].dwRemotePort and $FF00) shr 8) or ((localPTcpTable.table[i].dwRemotePort and $00FF) shl 8); end; auxPTcpTable := pTcpTable; pTcpTable := localPTcpTable; if auxPTcpTable <> nil then begin FreeMem(auxPTcpTable); auxPTcpTable := nil; end; end else if (Res = ERROR_NO_DATA) then begin if pTcpTable <> nil then begin FreeMem(pTcpTable); pTcpTable := nil; end; exit; end else begin fMain.AddLog('NetStatTable', Format('NetStat TCP service stopped. Please restart the control panel. Returned %d',[Res]), ltError); if pTcpTable <> nil then begin FreeMem(pTcpTable); pTcpTable := nil; end; exit; //raiseLastOSError(); // Error-Handling end; finally // If (pTcpTable <> Nil) Then FreeMem(pTcpTable); end; updating := 0; end; initialization NetStatTable := tNetstatTable.Create; finalization NetStatTable.Free; end.