Magic Banana lamented, "You attached an input but still no expected output."
... and then jumped to the conclusion, " Assuming you again want to extract the IPV4 addresses..."

While that's the long-term (end of next week ...) goal, the immediate concern is to find a reliable script to separate the painfully obvious IPv4 addresses, not from the bodies of the PTR's, but from the list of them. My subterfuge of switching from the dot '.' separator to the $ separator for the fifth column at least cleans up the visual aspect of the sorting problem. The output of that script flags the fourth octets of the proper IPv4
addresses with a trailing dollar sign.

I assumed that the 2nd script would provide its own answer, as it's laden with 53 unintended IPv4 consequences. The 1st script's output is 100% IPv6 addresses, with no stowaways. The NoIPv6-List.txt file has PTR's with glaringly obvious IPv6 origins, but no actual IPv6 addresses that you could resolve with dig -x, plus one IPv4
leftover.

Those IPv4 and IPv6 addresses that I'm trying to cut out of the herd are special, because they weren't looked up by that apache hostname-lookup option (which to apache's credit is deprecated in their instructions), because the associated server was unavailable or misconfigured. Now I want to see what else is doing on those servers, a
few weeks or months later.

Once the heifers have been separated from the bulls, then the ensuing tasks are a little easier. Analyzing the contents of the near-infinite address spaces of IPv6 CIDR blocks is best addressed by Magic Banana's random- selection of IPv6 addresses to be searched with nMap scripts, whereas the very cramped space of IPv4 CIDR
blocks can be addressed by inquiring with more direct scripts.

Finding those multi-addressed hostnames in the outputs of scripts that provide answers in CPU time scales is a huge step forward compared to nosing around, one hostname at a time, for the finite data gathered by a few Internet watchdogs that is agglomerated in the near-infinite data hoarded by Google. The geek definitely is on
a better track than the uneducated plodder.

George Langford

Reply via email to