diff --git a/gui.py b/gui.py index 47fb663..ed8f5db 100644 --- a/gui.py +++ b/gui.py @@ -1,11 +1,17 @@ -from flask import Flask, render_template +from flask import Flask, render_template, request import main as dnspy app = Flask(__name__) +app.config['DEBUG'] = True @app.route('/') def index(): - dnsinfo = dnspy.domainWhois('google.com') + dnsinfo = dnspy.domainWhois('benjamyn.love') return render_template('dns.html', dnsinfo=dnsinfo) +@app.route('/domain/', methods=['POST', 'GET']) +def getDomain(): + data = request.form['domain'] + return data + if __name__ == '__main__': - app.run() + app.run(host='0.0.0.0') diff --git a/install.sh b/install.sh index 166aab9..c01d801 100644 --- a/install.sh +++ b/install.sh @@ -1,7 +1,7 @@ #!/bin/bash git clone http://git.vps.benjamyn-testing.com/benjamyn/whois -pip -r requirements.txt +pip install -r requirements.txt cd whois python2 setup.py install diff --git a/libs/__init__.pyc b/libs/__init__.pyc index d96064c..e0779f6 100644 Binary files a/libs/__init__.pyc and b/libs/__init__.pyc differ diff --git a/libs/cc.pyc b/libs/cc.pyc index 72d412e..347e348 100644 Binary files a/libs/cc.pyc and b/libs/cc.pyc differ diff --git a/libs/colours.pyc b/libs/colours.pyc index 2fdcc74..5700e2f 100644 Binary files a/libs/colours.pyc and b/libs/colours.pyc differ diff --git a/libs/config.pyc b/libs/config.pyc index ba68264..70cecc2 100644 Binary files a/libs/config.pyc and b/libs/config.pyc differ diff --git a/libs/files.pyc b/libs/files.pyc index 6280243..b6d824b 100644 Binary files a/libs/files.pyc and b/libs/files.pyc differ diff --git a/main.pyc b/main.pyc index 24e41e9..6861594 100644 Binary files a/main.pyc and b/main.pyc differ diff --git a/requirements.txt b/requirements.txt index 7129a50..b12088f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ ipwhois dnspython +flask diff --git a/static/css/test.css b/static/css/test.css index 10b7a91..c557689 100644 --- a/static/css/test.css +++ b/static/css/test.css @@ -1,8 +1,7 @@ .records { - font-size: 10px; + font-size: 12px; padding: 30px; color: grey; - background-color: beige; } .myNav { @@ -10,3 +9,32 @@ color: darkgrey; justify-content: center; } + +.column { + float: left; + width: 40%; + background-color: beige; + padding: 2%; +} + +.row:after { + content: ""; + display: table; + clear: both; +} + +.buffer { + float: left; + width: 2%; + background-color: darkgrey; +} + +.allmostbiggertext { + font-size: 12px; + font-weight: 700; + padding-top: 10px; +} + +.body { + background-color: darkgrey; +} diff --git a/templates/dns.html b/templates/dns.html index 9a21f9b..7e54cd3 100644 --- a/templates/dns.html +++ b/templates/dns.html @@ -11,14 +11,26 @@ Hello, world! - +
+
{% for key, value in dnsinfo.iteritems() %}
  • {{ key }} - {{ value }}
  • {% endfor %} +
    +
    +
    +
    + test +