Added basic shit

This commit is contained in:
2018-05-01 11:41:14 +10:00
parent 3b2b0bcff4
commit 9a91620cf0
4 changed files with 16 additions and 7 deletions

11
gui.py Normal file
View File

@ -0,0 +1,11 @@
from flask import Flask, render_template
import main as dnspy
app = Flask(__name__)
@app.route('/')
def index():
dnsinfo = dnspy.domainWhois('google.com')
return render_template('dns.html', dnsinfo=dnsinfo)
if __name__ == '__main__':
app.run()

View File

@ -13,13 +13,6 @@ 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")

BIN
main.pyc

Binary file not shown.

5
templates/dns.html Normal file
View File

@ -0,0 +1,5 @@
{{dnsinfo}}
{% for field in dnsinfo %}
<li>{{field}}</li>
{% endfor %}