HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-84-generic #84-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 5 22:36:38 UTC 2025 x86_64
User: healthinsuranceukorguk (1111)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: //proc/thread-self/root/Nominet-DAC/RealTime/whois.php
<?php

	set_time_limit(0); 
	ini_set('memory_limit', '512M');
	ini_set('html_errors', false);
	date_default_timezone_set('Europe/London');

	$logs = "/Nominet-DAC/RealTime/realtime.csv";
	$domainfile = "/Nominet-DAC/RealTime/domains.txt";
	$sourceip = '51.77.116.174';
	$sleep =  200000;

	$gamount = 100;
	
	echo date('H:i:s')." - Connecting to DAC ...\n";
	$dac = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
	socket_set_option($dac, SOL_SOCKET, TCP_NODELAY, 1);
	socket_bind($dac, $sourceip);
	socket_connect($dac, 'dac.nic.uk', 3043);
	echo date('H:i:s')." - Ben Successfully connected to DAC ...\n";
	
	$domains = file_get_contents("$domainfile");
	$domains = explode("\n",$domains);

	$i = 0;
	$split[] = array();
	$count = 0;
	
	foreach($domains as $domain) {  
	
	$domainc = 0;
	if ($count == 0) { $split[$i] = array(); }	
	$split[$i] .= $domain.",";
	$count++;
	if ($count >= $gamount) { $i++; $count = 0; }
	}
	
	foreach($split as $domains) {
	
	$domains = explode(",",$domains);

	foreach($domains as $domain) {
	
	if ($domain == "")
	{

	}
	else
	{
	
	$domain = str_replace("Array","",$domain);

	socket_write($dac,$domain."\r\n");
	$resp = socket_read($dac,200);
	$resp = trim($resp);
	$f = fopen("$logs",'a'); 
	$resp = $resp;
	fwrite($f,"$resp\r\n");
	fclose($f);
	
	usleep($sleep);

	}
	
	}
	
	
	}

echo date('H:i:s')." - Ben Scan Completed ...\n";
socket_close($dac);

?>