Added easier install
This commit is contained in:
parent
7f2468e1a9
commit
3b2b0bcff4
7
install.sh
Normal file
7
install.sh
Normal 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
15
main.py
@ -13,6 +13,13 @@ from pprint import pprint
|
|||||||
from libs import config
|
from libs import config
|
||||||
from libs import colours as gc
|
from libs import colours as gc
|
||||||
from libs import cc
|
from libs import cc
|
||||||
|
from flask import Flask
|
||||||
|
|
||||||
|
app = Flask(__name__)
|
||||||
|
|
||||||
|
@app.route('/')
|
||||||
|
def index():
|
||||||
|
return "index"
|
||||||
|
|
||||||
# Loaded from the config file
|
# Loaded from the config file
|
||||||
jsonData = config.readConf("~/config.json")
|
jsonData = config.readConf("~/config.json")
|
||||||
@ -156,6 +163,8 @@ def checkIfIP(in1):
|
|||||||
|
|
||||||
signal.signal(signal.SIGINT, signal_handler)
|
signal.signal(signal.SIGINT, signal_handler)
|
||||||
|
|
||||||
while running == 1:
|
if __name__ == '__main__':
|
||||||
parseInput(raw_input("Please Enter a domain" + prompt) )
|
|
||||||
print('\n')
|
while running == 1:
|
||||||
|
parseInput(raw_input("Please Enter a domain" + prompt) )
|
||||||
|
print('\n')
|
||||||
|
|||||||
2
requirements.txt
Normal file
2
requirements.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
ipwhois
|
||||||
|
dnspython
|
||||||
Loading…
x
Reference in New Issue
Block a user