Beware, this script will hose / clobber and then silently clean up (delete) a ton of various different files if files with those names happen to already exist. To see the exact file names you'll have to carefully pick through the script. So obviously? run it in its own directory, which is no guarantee of safety, but should be safer.<p>If you have a subdirectory where you run it named after your email hostname (such as "example/" for "example.com"), then it will prompt you to "overwrite the contents of the directory" and then, if you accept, it will not only overwrite the contents, it will remove the entire contents with:<p><pre><code> cd $outdir
rm * 2>/dev/null
</code></pre>
There's a slight violation of user expectations here. Removing and replacing the contents isn't quite the same as overwriting the contents. It may be a fine line, but it's better to err on the side of protecting the user's files, not deleting them, when deciding where to come down on that fine line.<p>And if $outdir is empty or not there, it tries to detect that by first doing a check for -d $outdir, but this won't save the user if $outdir gets moved aside by another process while they are reading the prompt and before the cd happens, leaving them in another directory. Hopefully the user has rm aliased to rm -i but that still won't help since the rm is being run in its own shell in the script.<p>I know we're not supposed to focus on the negative here on HN. I'm sure the script is awesome for whatever it does. Just be careful out there!
OK, but what does it <i>do</i>? The README is pretty sparse. Some examples would really help.<p>Edit: the header from the script is good, toss it into the README for great success.
This might give it some more context: <a href="https://www.trustedsec.com/march-2017/classy-inter-domain-routing-enumeration/" rel="nofollow">https://www.trustedsec.com/march-2017/classy-inter-domain-ro...</a>
Note that this script installs "ipcalc" (or really, whatever is in <a href="http://jodies.de/ipcalc-archive/ipcalc-0.41.tar.gz" rel="nofollow">http://jodies.de/ipcalc-archive/ipcalc-0.41.tar.gz</a>) without user interaction.<p>I'm generally pretty <i>not okay</i> with scripts that curl | tar things (or apt-get install things, which this does if it's run on a linux) from the interwebs without my explicit consent.
Oh, this is superfly. Easy way to build your own up-to-date ASN DB, similar to the one from Maxmind. Think: embellishing Apache/Nginx logs with up-to-date information about the IP address of the client, including ASN/OrgId. Useful for identifying snowshoers spreading their footprint across a lot of discontiguous IP addresses in one ASN/Org.
Those are some cool acronyms that I've never heard of. Reading the README does not explain any more. It's quite the mystery how this got to the top-30...
I can't find how to make it work for european companies.
For instance, fnac.com doesn't give any result with the -r option.
Did I miss something ?
see also blockfinder:<p><a href="https://github.com/ioerror/blockfinder" rel="nofollow">https://github.com/ioerror/blockfinder</a>