PROGRESS git add --allgit add --allgit add --all git add --all11! :D
This commit is contained in:
parent
0c9bfd8d3e
commit
3c173e851b
12
gui.py
12
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')
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Binary file not shown.
BIN
libs/cc.pyc
BIN
libs/cc.pyc
Binary file not shown.
BIN
libs/colours.pyc
BIN
libs/colours.pyc
Binary file not shown.
BIN
libs/config.pyc
BIN
libs/config.pyc
Binary file not shown.
BIN
libs/files.pyc
BIN
libs/files.pyc
Binary file not shown.
@ -1,2 +1,3 @@
|
||||
ipwhois
|
||||
dnspython
|
||||
flask
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -11,14 +11,26 @@
|
||||
<link rel="stylesheet" href="/static/css/test.css">
|
||||
<title>Hello, world!</title>
|
||||
</head>
|
||||
<body>
|
||||
<body class='body'>
|
||||
<div class="navbar myNav">
|
||||
<h3>DNSPy2: Electric Boogaloo</h3>
|
||||
<h3>DNSPy2: Electric Boogaloo
|
||||
<form action="/domain/" method='post'></h3>
|
||||
<label class='allmostbiggertext'><span style="display:inline-block; width: 40px;"></span>Domain Name:
|
||||
<input type='Text' name='domain'>
|
||||
<input type='Submit'>
|
||||
</form>
|
||||
</div>
|
||||
<div class="container records">
|
||||
<div class="column">
|
||||
{% for key, value in dnsinfo.iteritems() %}
|
||||
<li><b>{{ key }} </b> - {{ value }}</li>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div class="buffer column">
|
||||
</div>
|
||||
<div class="column">
|
||||
test
|
||||
</div>
|
||||
</div>
|
||||
<!-- Optional JavaScript -->
|
||||
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user