[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: busybox whois broken for IP address queries
From: fortuna <fortuna () up ! nl ! eu ! org>
Date: 2019-09-26 11:17:42
Message-ID: f80a7b94-7184-bbee-ed67-efeae536a353 () up ! nl ! eu ! org
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Without this code on lines 79 to 91:
if (!success && !pfx[0]) {
/*
* Looking at /etc/jwhois.conf, some whois servers use
* "domain = DOMAIN", "DOMAIN ID <DOMAIN>"
* and "domain=DOMAIN_WITHOUT_LAST_COMPONENT"
* formats, but those are rare.
* (There are a few even more contrived ones.)
* We are trying only "domain DOMAIN", the typical one.
*/
pfx = "domain ";
bufpos = 0;
goto again;
}
whois.c starts working for IP address queries without affecting domain
name queries as the user can specify this prefix on the command line.
[Attachment #5 (text/html)]
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
Without this code on lines 79 to 91:<br>
<br>
<tt> if (!success && !pfx[0]) {</tt><tt><br>
</tt><tt> /*</tt><tt><br>
</tt><tt> * Looking at /etc/jwhois.conf, some whois servers
use</tt><tt><br>
</tt><tt> * "domain = DOMAIN", "DOMAIN ID <DOMAIN>"</tt><tt><br>
</tt><tt> * and "domain=DOMAIN_WITHOUT_LAST_COMPONENT"</tt><tt><br>
</tt><tt> * formats, but those are rare.</tt><tt><br>
</tt><tt> * (There are a few even more contrived ones.)</tt><tt><br>
</tt><tt> * We are trying only "domain DOMAIN", the typical
one.</tt><tt><br>
</tt><tt> */</tt><tt><br>
</tt><tt> pfx = "domain ";</tt><tt><br>
</tt><tt> bufpos = 0;</tt><tt><br>
</tt><tt> goto again;</tt><tt><br>
</tt><tt> }</tt><tt><br>
</tt><br>
whois.c starts working for IP address queries without affecting
domain name queries as the user can specify this prefix on the
command line.<br>
<br>
<br>
</body>
</html>
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic