Publications by hrbrmstr
How Low Can It [The Mississsippi River] Go?
I’ve heard quite a bit about the current problems with the Mississippi River and wanted to see for myself (with data) just how bad it is. St Louis seems to be quite indicative of the severity of the situation, so I pulled the USGS “stream” records for it and also the historic low water level records for it and put them both into R for some ...
1444 sym R (3023 sym/2 pcs) 4 img 2 tbl
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 Ma...
3440 sym R (4487 sym/9 pcs) 8 img 7 tbl
Retrieve IP ASN & BGP Peer Info With R
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). So, I threw together a quick set of f...
1858 sym R (5204 sym/5 pcs) 2 img 5 tbl
Extended (Simple) ASN Graph Visualization Example [R to D3]
The small igraph visualization in the previous post shows the basics of what you can do with the BulkOrigin & BulkPeer functions, and I thought a larger example with some basic D3 tossed in might be even more useful. Assuming you have the previous functions in your environment, the following builds a larger graph structure (the IPs came from an ...
1657 sym R (2859 sym/2 pcs) 2 img 2 tbl
Happy Valentine’s Day @mrshrbrmstr!
dat<- data.frame(t=seq(0, 2*pi, by=0.1) ) xhrt <- function(t) 16*sin(t)^3 yhrt <- function(t) 13*cos(t)-5*cos(2*t)-2*cos(3*t)-cos(4*t) dat$y=yhrt(dat$t) dat$x=xhrt(dat$t) with(dat, polygon(x,y, col="hotpink")) i heaRt you! (R code inspired by/lifted from: DWin on StackOverflow) Related To leave a comment for the author, please follow the link ...
463 sym R (209 sym/1 pcs) 2 img 1 tbl
Visualizing Risky Words — Part 2
This is a follow-up to my Visualizing Risky Words post. You’ll need to read that for context if you’re just jumping in now. Full R code for the generated images (which are pretty large) is at the end. Aesthetics are the primary reason for using a word cloud, though one can pretty quickly recognize what words were more important on well crafte...
4289 sym R (2595 sym/1 pcs) 4 img 1 tbl
Reverse IP Address Lookups With R (From Simple To Bulk/Asynchronous)
R lacks some of the more “utilitarian” features found in other scripting languages that were/are more geared—at least initially—towards systems administration. One of the most frustrating missing pieces for security data scientists is the lack of ability to perform basic IP address manipulations, including reverse DNS resolution (even tho...
3198 sym R (2616 sym/2 pcs) 2 tbl
Use Fluid On MacOS To Build Per-RStudio Server “Dedicated” Clients
I’m jumping around analytics environments these days and have to leave the comfort of my Mac’s RStudio Desktop application to use various RStudio Server instances via browser. While I prefer to use Chrome, the need to have a “dedicated” RStudio Server client outweighs the utility of my favorite browser. This is where Fluid (@FluidApp by @...
1995 sym 4 img
Rforecastio – Simple R Package To Access forecast.io Weather Data
It doesn’t get much better for me than when I can combine R and weather data in new ways. I’ve got something brewing with my Nest thermostat and needed to get some current wx readings plus forecast data. I could have chosen a number of different sources or API’s but I wanted to play with the data over at forecast.io (if you haven’t loaded...
1214 sym R (2432 sym/2 pcs) 2 img 2 tbl
Send Mac OS Notifications From R
The data retrieval and computation operations are taking longer and longer as we start cranking through more security data and I’ll often let tasks run in the background whilst performing more mundane tasks or wasting time on Twitter. For folks using RStudio Desktop on a Mac, you can use the #spiffy terminal-notifier from Julien Blanchard (@jul...
1275 sym R (330 sym/2 pcs) 2 img 2 tbl