Skip to content

Instantly share code, notes, and snippets.

@achillean
achillean / industrial-recon.ipynb
Last active Feb 23, 2021
Analyzing Industrial Control Systems via Shodan
View industrial-recon.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@achillean
achillean / subs.cr
Created Aug 18, 2020
Subdomain Discovery in Crystal
View subs.cr
require "shodan"
module Subs
VERSION = "0.1.0"
# Basic input validation
if ARGV.size != 2
puts "Usage: subs <api key> <domain>"
exit
end
@achillean
achillean / gifcreator.py
Created Nov 25, 2017
Timelapse GIF Creator using the Shodan API
View gifcreator.py
#!/usr/bin/env python
# gifcreator.py
#
# Dependencies:
# - arrow
# - shodan
#
# Installation:
# sudo easy_install arrow shodan
# sudo apt-get install imagemagick
@achillean
achillean / dlink-products.csv
Created Jun 30, 2016
Ranking of D-Link Products Sold (source: https://www.shodan.io)
View dlink-products.csv
@achillean
achillean / http-components.csv
Last active Apr 26, 2021
Sample output from the Shodan CLI running: shodan stats --facets http.component:100,port:20 http-components http
View http-components.csv
Query http
http.component port
jQuery 1250676 80 56553138
Zepto 483672 7547 50655465
PHP 266668 443 26476433
Twitter Bootstrap 255045 4567 11633390
Google Font API 211921 8080 8631875
WordPress 139645 1900 4540344
Font Awesome 133483 49152 3028740
@achillean
achillean / hacking-team-c2.json
Created Mar 1, 2016
Hacking Team C2 History: 212.71.254.212
View hacking-team-c2.json
{
"region_code": null,
"ip": 3561488084,
"area_code": null,
"latitude": 51.5,
"hostnames": ["li635-212.members.linode.com"],
"postal_code": null,
"dma_code": null,
"country_code": "GB",
"org": "Linode",
@achillean
achillean / roku-apps.csv
Last active Apr 26, 2021
Ranking of Most Popular Roku Apps based on Shodan (https://www.shodan.io)
View roku-apps.csv
Netflix 863
Roku Home News 767
Amazon Video 733
Movie Store and TV Store 717
Hulu 694
HBO Now 683
Showtime 678
VUDU 633
Pandora 569
YouTube 550
@achillean
achillean / dump-images.py
Created Jan 17, 2016
Shodan script to parse out screenshot data from banners and store it in a separate directory.
View dump-images.py
#!/usr/bin/env python
# dump-images.py
#
# Extract all the image data from the banners and store them as separate images
# in a provided output directory.
#
# Example:
# shodan download --limit -1 screenshots.json.gz has_screenshot:true
# ./dump-images.py screenshots.json.gz images/
@achillean
achillean / gifcreator.py
Last active Apr 11, 2021
Create GIFs from a Shodan json.gz file using the API
View gifcreator.py
#!/usr/bin/env python
# Dependencies:
# - arrow
# - shodan
# - ImageMagick
#
# Installation:
# sudo easy_install arrow shodan
# sudo apt-get install imagemagick
#
@achillean
achillean / export-hosts.py
Created Dec 9, 2015
Read a Shodan JSON file and print out the full host information.
View export-hosts.py
#!/usr/bin/env python
#
# export_hosts.py <export.json.gz>
#
import gzip
import shodan
import simplejson
import sys