PROGRESS git add --allgit add --allgit add --all git add --all11! :D

This commit is contained in:
Benjamyn Love 2018-05-01 21:49:42 +10:00
parent 0c9bfd8d3e
commit 3c173e851b
11 changed files with 55 additions and 8 deletions

12
gui.py
View File

@ -1,11 +1,17 @@
from flask import Flask, render_template from flask import Flask, render_template, request
import main as dnspy import main as dnspy
app = Flask(__name__) app = Flask(__name__)
app.config['DEBUG'] = True
@app.route('/') @app.route('/')
def index(): def index():
dnsinfo = dnspy.domainWhois('google.com') dnsinfo = dnspy.domainWhois('benjamyn.love')
return render_template('dns.html', dnsinfo=dnsinfo) return render_template('dns.html', dnsinfo=dnsinfo)
@app.route('/domain/', methods=['POST', 'GET'])
def getDomain():
data = request.form['domain']
return data
if __name__ == '__main__': if __name__ == '__main__':
app.run() app.run(host='0.0.0.0')

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
git clone http://git.vps.benjamyn-testing.com/benjamyn/whois git clone http://git.vps.benjamyn-testing.com/benjamyn/whois
pip -r requirements.txt pip install -r requirements.txt
cd whois cd whois
python2 setup.py install python2 setup.py install

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
main.pyc

Binary file not shown.

View File

@ -1,2 +1,3 @@
ipwhois ipwhois
dnspython dnspython
flask

View File

@ -1,8 +1,7 @@
.records { .records {
font-size: 10px; font-size: 12px;
padding: 30px; padding: 30px;
color: grey; color: grey;
background-color: beige;
} }
.myNav { .myNav {
@ -10,3 +9,32 @@
color: darkgrey; color: darkgrey;
justify-content: center; 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;
}

View File

@ -11,14 +11,26 @@
<link rel="stylesheet" href="/static/css/test.css"> <link rel="stylesheet" href="/static/css/test.css">
<title>Hello, world!</title> <title>Hello, world!</title>
</head> </head>
<body> <body class='body'>
<div class="navbar myNav"> <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>
<div class="container records"> <div class="container records">
<div class="column">
{% for key, value in dnsinfo.iteritems() %} {% for key, value in dnsinfo.iteritems() %}
<li><b>{{ key }} </b> - {{ value }}</li> <li><b>{{ key }} </b> - {{ value }}</li>
{% endfor %} {% endfor %}
</div>
<div class="buffer column">
</div>
<div class="column">
test
</div>
</div> </div>
<!-- Optional JavaScript --> <!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS --> <!-- jQuery first, then Popper.js, then Bootstrap JS -->