Added basic shit
This commit is contained in:
parent
3b2b0bcff4
commit
9a91620cf0
11
gui.py
Normal file
11
gui.py
Normal 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()
|
||||
7
main.py
7
main.py
@ -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")
|
||||
|
||||
5
templates/dns.html
Normal file
5
templates/dns.html
Normal file
@ -0,0 +1,5 @@
|
||||
{{dnsinfo}}
|
||||
|
||||
{% for field in dnsinfo %}
|
||||
<li>{{field}}</li>
|
||||
{% endfor %}
|
||||
Loading…
x
Reference in New Issue
Block a user