Job description
I am looking for someone to make a script for me that will retrieve data in whois using the SOCKS5 proxy. The proxy uses port 61336, previously there was an early look like this curl that queries client.js for whois data but unfortunately I moved the VPS to another server and I can no longer use socks-client 1.1.4 because it is outdated and the service cannot be installed on the new server. Therefore, it expects to write a new .JS file and a PHP file that uses CRUL and run the first query so as to retrieve the data.
function checkDomain($query) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://ADRES-VPS-IP:5000");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 12);
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-type: application/json"));
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($query));
$data = curl_exec($ch);
$info = curl_getinfo($ch);
$http_status= $info['http_code'];
$total_time = $info['total_time'];
curl_close($ch);
return $data;
}
$query = [];
$query['whois'] = 'en.whois-servers.net;
$query['proxy'] = 'IP-PROXY;
$query['port'] = 61336;
$query['username'] = 'login';
$query['password'] = 'password';
$query['domain'] = 'kartuzy.pl';
print checkDomain($query);