From 3c173e851b8deba980d09ad4c741151a31ec3525 Mon Sep 17 00:00:00 2001 From: Benjamyn Love Date: Tue, 1 May 2018 21:49:42 +1000 Subject: [PATCH] PROGRESS git add --allgit add --allgit add --all git add --all11! :D --- gui.py | 12 +++++++++--- install.sh | 2 +- libs/__init__.pyc | Bin 200 -> 194 bytes libs/cc.pyc | Bin 810 -> 792 bytes libs/colours.pyc | Bin 935 -> 917 bytes libs/config.pyc | Bin 679 -> 667 bytes libs/files.pyc | Bin 637 -> 619 bytes main.pyc | Bin 6143 -> 6077 bytes requirements.txt | 1 + static/css/test.css | 32 ++++++++++++++++++++++++++++++-- templates/dns.html | 16 ++++++++++++++-- 11 files changed, 55 insertions(+), 8 deletions(-) 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 d96064c4a1a8854bfc1303eb14d70feb8f08386e..e0779f6b74379939aad203655aac6ae524be860f 100644 GIT binary patch delta 53 zcmX@Xc!-gm`7={bt3=9nV8Tq-X`bnvIS&6xodHQ}Qk=85kJ!GxBp&^^;QbvJ!JE^Yr!7GfVUfDoZl*^YqJ8 YlQ#a2WF$h_L;b6s<^1(hWk`FZ-~ YsY#nV7)^;$H~A@377@lxE@w6X0497a1^@s6 delta 152 zcmbQrzMP$%`7Y#10A^fU5vQ}vTl^Rg0iEA#XVit@8klS_*A3o1)8 e^7Hh|Qv!Yybdu>orUO diff --git a/libs/config.pyc b/libs/config.pyc index ba68264e590a959e0c53293626bca9b5da9af4c0..70cecc29e1ff7d1bf3ba545ea04d767cf943e702 100644 GIT binary patch delta 98 zcmZ3^I-8Z9`7>C-COc@v$^fU5vQ}vTl^Rg0iEA#aA(lbl+3o1)8^7Hh| SQL;bmYJxwM#wG4C_a3!=&1n&T?biZ=&w@)K|L=4LJ}CgROL&+~$KvnQYD j5#9Wbuby}voBIV`k>Hxy!geH>{aZwec(W&)i?;y)=E1uT 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 +