From f66804ee716daf05cb9dd048a4d3fe3282a95cc2 Mon Sep 17 00:00:00 2001 From: Benajmyn Love Date: Sun, 4 Jun 2017 02:31:37 +1000 Subject: [PATCH] Cleaned up code --- HTTPy.py | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/HTTPy.py b/HTTPy.py index 8bf3b4c..5f2deb0 100755 --- a/HTTPy.py +++ b/HTTPy.py @@ -1,8 +1,3 @@ -#Lookup jsonWhois.com, easy json API for whois lookups ;D -#Might need to run this in windows/on laptop/ in VM - -#git sublime test - import argparse import subprocess import re # YAY REVERSE ENGINEER... wait its just regex @@ -12,15 +7,8 @@ import re # YAY REVERSE ENGINEER... wait its just regex inInput = "" partDomain = "" running = 1 -#URL https://www.whois.com/whois/benjamyn-testing.com -#class df-block-raw - -# def iterate(inArray): -# count = 0 -# while count != len(inArray) - 1: -# print count, inArray[count] -# count = count + 1 + def iterate(inArray, pre): count = 0 while count != len(inArray) - 1: @@ -61,10 +49,6 @@ def getInput(): if inInput == "quit": running = 0 -#if partDomain[2] != "": - #run code - #else tell user they suck :D - #Main Loop while running == 1: getInput() @@ -86,14 +70,3 @@ while running == 1: dig(inInput, "SRV") dig(inInput, "SOA") -#whois(inInput) - -# tmp = raw_input() -# whois(tmp) -# dig(tmp) - - -# Debugs -# print domain -# partDomain = domain.partition(".") -# print partDomain \ No newline at end of file