Menu

#3 Project still alive?

open
nobody
None
5
2010-05-28
2010-05-28
heutger
No

Hi,

I tried many ways to contact John Bro, but for sure, SPAM is a problem, but currently it looks-a-like all contact ways run in a SPAM filter and get filtered out. However, e.g. the whoislist is completely outdated, the IP ranges are outdated, some of them are allowed in his working demo, but also there are already some lacks. The CVS links to a 404... So what's the future of the project?

Regards,
Christian

Discussion

  • Hong Cheng

    Hong Cheng - 2010-10-04

    Here's a quick patch to force queries into previously restricted ip ranges, handle ARIN's new query format for ip's, and retry failed queries that were cached:

    --- wp.cgi 2010-10-04 15:14:13.000000000 -0400
    +++ wp.cgi.new 2010-10-04 15:54:12.000000000 -0400
    @@ -416,6 +416,9 @@
    my @ex=qw[0 1 2 5 7 10 23 27 31 36 37 39 42 127 197];
    foreach my $x (@ex) { if ($1 == $x ) { $Type='RES'; }}
    }
    + if ( $Type eq 'RES' ) {
    + $Type = "IP";
    + }
    return $Type;
    }
    # ========== DomIP ============
    @@ -751,11 +754,23 @@
    &Debug(1, "calling whois_do_query: $key");
    return whois_do_query($arg) unless $Cache; # using hashref

    + my $cache_val = $Cache->get($key);
    +
    Debug (-1, "Cache key: $key\n");
    if (defined $Cache->get($key)) {
    - $Args{NicServ} = " WPCache ";
    + ### if cache is an error, try lookup again
    + if ( $cache_val->[0] =~ /ERROR: Unable to connect/i ) {
    + my $tmp_response = whois_do_query($arg);
    + $Cache->set($key, $tmp_response)
    + unless ($tmp_response =~ /ERROR: Unable to connect to /i);
    + } else {
    + $Args{NicServ} = " WPCache ";
    + }
    } else {
    - $Cache->set($key, whois_do_query($arg));
    + # don't cache errors for now
    + # $Cache->set($key, whois_do_query($arg));
    + my $tmp_response = whois_do_query($arg);
    + $Cache->set($key, $tmp_response) unless ($tmp_response =~ /ERROR: Unable to connect to /i);
    }
    # call routine to strip Korean from cache HERE! (currently only inside ZapTrash)
    return $Cache->get($key);
    @@ -793,7 +808,8 @@
    # after querying CrsNic or Arin, drop them.

    if ($x->{NicServ} eq $ArinNic){
    - $qry = '+'.$qry;
    + # $qry = '+'.$qry;
    + $qry = 'n '.$qry;
    } else { $qry =~ tr/+//d; }

    if ($x->{NicServ} eq $CrsNic ) {
    @@ -808,7 +824,7 @@
    # catch port number when 'rwhois.verio.net port 4321' (failing? fixed but..)
    if (($ns =~ /^rwhois/) && (! $pt or $pt eq 43 )) { $pt=4321; }
    &Debug(3,"ns:[$ns] prfx:[$prfx] pt:[$pt] qry:[$qry]");
    -
    +
    # ------ Open Socket ----------------------------
    my $remote = IO::Socket::INET->new(
    Proto => 'tcp',

     
  • heutger

    heutger - 2010-10-04

    Hi,

    thanks first for your response and help.

    I already updated some of the files to have the newest WHOIS servers and the newest ARIN space stored inside, however from one day to another IP check failed, thanks for your help, the format changed, that's right. However, now it find e.g. for my IP addresses RIPE again, but it does now do not print any output any more.

    I will check, if I can upload my current version or if I can attach it here.

    Regards,
    Christian

     
  • heutger

    heutger - 2010-10-04

    BTW: John Bro contacted me and sent me some files with updates from him, however, I'm afraid, he did not received my response becaues of a really good spam filter, cutting everything off... ;-) So perhaps with this posts, we get it up again? ;-))

     
  • heutger

    heutger - 2010-10-04

    Current version with reserved space, WHOIS servers update from me and ArinNic update from gnoh

     
  • Hong Cheng

    Hong Cheng - 2010-10-09

    Hi Christian,

    Thanks for the updates and the file upload, I will test out the changes against the other RIR's next week.

    -hong

     
  • inetserv

    inetserv - 2011-03-03

    Hi,
    i've installed WP.cgi but we are not able to perform IP queries. the debug shows:

    ./wp.pl -d5 203.12.127.32
    Defanged
    Checked Type: [IP]
    DomIP: inet_aton(203.12.127.32)
    DomIP: gethostbyaddr(iaddr)
    DomIP: inet_aton(203.12.127.32)
    203.12.127.32 203.12.127.32 after DomIP
    querying Abuse.net
    Abuse.net queried.
    GetTLD MyQuery:[203.12.127.32] DomainArray[Elements] [32] TLD:[32]
    GetTLD TLD:[32] nic:[] Elements:[3] Website:[]
    ShowForm() UseHTML:[0]
    NON-HTML:
    back from &WhoisTemplate with stuff

    Query: 203.12.127.32
    Registry:
    Results: 203.12.127.32 = [ 203.12.127.32 ]
    [ whois.abuse.net : 203.12.127.32 ]

    postmaster@localhost
    ----------------------------------------------------------------------

    ERROR: Unable to find any TLD information for 203.12.127.32
    Please verify that it is a valid top level domain.

    Results brought to you by the WP Whois Proxy  1.3.4; http://wp-whois-proxy.sf.net
    Based on the GeekTools.com proxy
    Server results may be copyrighted and are used subject to the terms and conditions of the Server
    Language: /var/www/html/wp/cgi-bin/languages/messages.en.pm

    am i missing something?

    thanks

     
  • heutger

    heutger - 2011-03-03

    Hi,

    yes, get this error also, I do not get any IP outputs any more. It suddently stopped from day to day. There seems also not to be any patch for this. Perhaps you have an idea?

    Regards,
    Christian

     

Log in to post a comment.

MongoDB Logo MongoDB