This is part of a larger project I’m working on, but it’s useful enough to share (github version coming soon). The fine folks at @TeamCymru have a great service to map IP addresses to ASN/BGP information en masse. There are libraries for Python, Perl and other languages but none for R (that I could find)…. Continue reading
Post Category → Programming
SHODAN API in R (With Examples)
Folks may debate the merits of the SHODAN tool, but in my opinion it’s a valuable resource, especially if used for “good”. What is SHODAN? I think ThreatPost summed it up nicely: “Shodan is a Web based search engine that discovers Internet facing computers, including desktops, servers and routers. The engine, created by programmer John… Continue reading
Easier HTML Table-scraping For Scripts With Google Drive
We had our first, real, snowfall of the season in Maine today and that usually means school delays/closings. Our “local” station – @WCHS6 – has a Storm Center Closings page as well as an SMS notification service. I decided this morning that I needed a command line version (and, eventually, a version that sends me… Continue reading
DIY ZeroAccess GeoIP Plots
Since F-Secure was #spiffy enough to provide us with GeoIP data for mapping the scope of the ZeroAccess botnet, I thought that some aspiring infosec data scientists might want to see how to use something besides Google Maps & Google Earth to view the data. If you look at the CSV file, it’s formatted as… Continue reading
Slopegraphs in Python – Failed States Index (Part 1)
The Fund For Peace (FFP) and Foreign Policy jointly released the 2012 version of the “failed states index” (FSI). From the FFP site, the FSI: …focuses on the indicators of risk and is based on thousands of articles and reports that are processed by our CAST Software from electronically available sources. I read it every… Continue reading
Slopegraphs in Python – Gratuitous Raphaël Animations
UPDATE: It seems my use of <script async> optimization for Raphaël busted the inline slopegraph generation. Will work on tweaking the example posts to wait for Raphaël to load when I get some time. So, I had to alter this to start after a user interaction. It loaded fine as a static, local page but… Continue reading
Slopegraphs in Python – Formatting Tweaks
There were enough eye-catching glitches in the experimental javascript support and the ugly large-number display in the spam example post that I felt compelled to make a couple formatting tweaks in the code. I also didn’t have time to do “real” work on the codebase this weekend. So, along with spacing adjustments, there’s now an… Continue reading
Slopegraphs in Python – Experimental Raphaël Support
In preparation for the upcoming 1.0 release and with the hopes of laying a foundation for more interactive slopegraphs, I threw together some rudimentary output support over lunch today for Raphaël, which means that all you have to do is generate a new slopegraph with the “js” output type and include the salient portions of… Continue reading