Skip to content

Instantly share code, notes, and snippets.

View rootshellz's full-sized avatar
👾

Ben Feld rootshellz

👾
View GitHub Profile
#!/usr/bin/env python3
import sys
import json
from cymruwhois import Client
if len(sys.argv) != 3:
sys.exit("Usage: python3 {} <input_file> <output_file>\n\
input_file should be a text file containing a unique list of IPs\n\
output_file will be a json formatted file of results".format(sys.argv[0]))
@rootshellz
rootshellz / wordscapes_solver.py
Last active February 24, 2019 09:04
Wordscapes Solver
#!/usr/bin/env python3
from itertools import permutations
def get_input():
return input("Enter word to solve, using '_' or '-' for blanks (e.g. __Y_L): ").lower().replace("-","_"), sorted(input("Enter all the available letters, including ones already placed in the solvable (order does not matter) (e.g. LYSOLID): ").lower())
def make_all_combos_from_availables():