Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™
Author Message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17077

PostPosted: Sun Dec 26, 2004 9:33 am Reply with quote

NukeSentinel uses arin.net to look up information to include when sending the email to the admin. It appears that yesterday they have made some kind of a change in the query strings. You are still safe, but nothing gets written anywhere, nor do the get your redirect page. A quick fix until we decipher their new string is to find this block of code in includes/sentinel.php
Code:
    if ($blocker_row['email_lookup'] == 1) {

      $message .= "--------------------\n"._AB_WHOISFOR."\n";
      $ipToSearch = @get_ip();
      // Copyright 2004(c) Raven PHP Scripts
      $data = @file_get_contents("http://ws.arin.net/cgi-bin/whois.pl?queryinput=".$ipToSearch) or die('Unable to query WhoIs information for '.$ipToSearch.'.');
      $data = explode('Search results for: ',$data);
      $data = explode('#',$data[1]);
      $data = explode('(NET-',strip_tags($data[0]));
      if (empty($data[1])) $msg .= $data[0];
      else {
        $data = explode(')',$data[1]);
        $data = @file_get_contents("http://ws.arin.net/cgi-bin/whois.pl?queryinput="."!%20NET-".strip_tags($data[0])) or die('Unable to query WhoIs information for '.strip_tags($data[0]).'.');
        $data = explode('Search results for: ',$data);
        $data = explode('Name',$data[1],2);
        $data = explode('# ARIN WHOIS ',$data[1]);
        $msg .= 'OrgName'.nl2br($data[0]);
      }
      $message .= strip_tags($msg);
    } elseif ($blocker_row['email_lookup'] == 2) {
      $message .= "--------------------\n";
      // Copyright 2004(c) NukeScripts
      $ipToSearch = @get_ip();
      $data = @file_get_contents("http://dnsstuff.com/tools/whois.ch?email=on&ip=".$ipToSearch) or die('Unable to query WhoIs information for '.$ipToSearch.'.');
      $data = str_replace("</H1><H5>", "\n", $data);
      $data = str_replace("status = \"Getting WHOIS results...\";", "\n", $data);
      $data = str_replace("status = \"Done!\";", "\n", $data);
      $message .= strip_tags($data);
    }

and change it to
Code:
    if ($blocker_row['email_lookup'] == 1) {

      $message .= "--------------------\n"._AB_WHOISFOR."\n";
      $ipToSearch = @get_ip();
      // Copyright 2004(c) Raven PHP Scripts
      $data = @file_get_contents("http://ws.arin.net/cgi-bin/whois.pl?queryinput=".$ipToSearch)/* or die('Unable to query WhoIs information for '.$ipToSearch.'.')*/;
      $data = explode('Search results for: ',$data);
      $data = explode('#',$data[1]);
      $data = explode('(NET-',strip_tags($data[0]));
      if (empty($data[1])) $msg .= $data[0];
      else {
        $data = explode(')',$data[1]);
        $data = @file_get_contents("http://ws.arin.net/cgi-bin/whois.pl?queryinput="."!%20NET-".strip_tags($data[0]))/* or die('Unable to query WhoIs information for '.strip_tags($data[0]).'.')*/;
        $data = explode('Search results for: ',$data);
        $data = explode('Name',$data[1],2);
        $data = explode('# ARIN WHOIS ',$data[1]);
        $msg .= 'OrgName'.nl2br($data[0]);
      }
      $message .= strip_tags($msg);
    } elseif ($blocker_row['email_lookup'] == 2) {
      $message .= "--------------------\n";
      // Copyright 2004(c) NukeScripts
      $ipToSearch = @get_ip();
      $data = @file_get_contents("http://dnsstuff.com/tools/whois.ch?email=on&ip=".$ipToSearch)/* or die('Unable to query WhoIs information for '.$ipToSearch.'.')*/;
      $data = str_replace("</H1><H5>", "\n", $data);
      $data = str_replace("status = \"Getting WHOIS results...\";", "\n", $data);
      $data = str_replace("status = \"Done!\";", "\n", $data);
      $message .= strip_tags($data);
    }


Last edited by Raven on Wed Dec 29, 2004 11:13 am; edited 1 time in total 
View user's profile Send private message
manunkind
Client


Joined: Apr 26, 2004
Posts: 368
Location: Albuquerque, NM

PostPosted: Sun Dec 26, 2004 10:06 am Reply with quote

Thanks Raven!
 
View user's profile Send private message Visit poster's website
BobMarion
Former Admin in Good Standing


Joined: Oct 30, 2002
Posts: 1037
Location: RedNeck Land (known as Kentucky)

PostPosted: Sun Dec 26, 2004 2:24 pm Reply with quote

Raven and I are looking at a permenant patch for this.

_________________
Bob Marion
Codito Ergo Sum
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©