Added easier install

This commit is contained in:
2018-05-01 11:04:27 +10:00
parent 7f2468e1a9
commit 3b2b0bcff4
4 changed files with 21 additions and 3 deletions

7
install.sh Normal file
View File

@ -0,0 +1,7 @@
#!/bin/bash
git clone http://git.vps.benjamyn-testing.com/benjamyn/whois
pip -r requirements.txt
cd whois
python2 setup.py install

15
main.py
View File

@ -13,6 +13,13 @@ from pprint import pprint
from libs import config
from libs import colours as gc
from libs import cc
from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return "index"
# Loaded from the config file
jsonData = config.readConf("~/config.json")
@ -156,6 +163,8 @@ def checkIfIP(in1):
signal.signal(signal.SIGINT, signal_handler)
while running == 1:
parseInput(raw_input("Please Enter a domain" + prompt) )
print('\n')
if __name__ == '__main__':
while running == 1:
parseInput(raw_input("Please Enter a domain" + prompt) )
print('\n')

BIN
main.pyc Normal file

Binary file not shown.

2
requirements.txt Normal file
View File

@ -0,0 +1,2 @@
ipwhois
dnspython