diff --git a/README.md b/README.md
index 69abca4..d59af80 100644
--- a/README.md
+++ b/README.md
@@ -1,21 +1,25 @@
-# gutterbox
-## setup
-Install the dependancies
+# Gutterbox
+This tool was intened to make looking at large nmap scans easier.
-specify the correct version for sqlite3
+## Importing Scans
+Gutterbox currently loosly supports xml nmap scans. Suggested usage is as follows...
+```bash
+nmap -O -oX scan.xml 192.168.1.0/24
```
-sudo apt update
-sudo apt install php libapache2-mod-php php-mysql
-sudo apt install php7.0-sqlite3
+After the scan has been completed, the parse must be ran to convert the xml to sqlite3...
+```bash
+python3 parser.py -x scan.xml
```
-## Use it!
-Run the scan
-```
-nmap -O -oX /var/www/html/gutterbox/scans/scan.xml 192.168.1.0/24
+## Using the tool
+Really the meat and potatoes is that you now have an sqlite3 file! So fun! There is also a super powerful hyper intesive webserver that can view the database easier...
+```bash
+python3 run.py
```
-Feed the parser
-```
-./parser.py -x scans/scan.xml
+## Contributing
+Yeah, so this tool isn't the best right now. My original intention was to make an easy way to filter nmap scans and that didn't exist when this was first created. This also allows output to be concatenated. So maybe multiple scans are ran at once and then all the output files could be imported with...
+```bash
+for i in *.xml;do python3 parser.py -x $i;done
```
+With that spirit in mind, feel free to contribute! There are a lot of things that need fixing and updating for this project and I don't mind the help or feature ideas!
diff --git a/app/__init__.py b/app/__init__.py
new file mode 100644
index 0000000..edc5bf8
--- /dev/null
+++ b/app/__init__.py
@@ -0,0 +1,14 @@
+from flask import Flask
+from flask_sqlalchemy import SQLAlchemy
+import os
+
+basedir = os.path.abspath(os.path.dirname(__file__))
+
+app = Flask(__name__)
+app.config['SECRET_KEY'] = 'super secret key'
+#app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///scanned.db'
+app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///' + os.path.join(basedir, 'scanned.db')
+db = SQLAlchemy(app)
+
+app.config.from_object(__name__)
+from app import views
diff --git a/app/__pycache__/__init__.cpython-310.pyc b/app/__pycache__/__init__.cpython-310.pyc
new file mode 100644
index 0000000..023c0b7
Binary files /dev/null and b/app/__pycache__/__init__.cpython-310.pyc differ
diff --git a/app/__pycache__/__init__.cpython-311.pyc b/app/__pycache__/__init__.cpython-311.pyc
new file mode 100644
index 0000000..6e8839d
Binary files /dev/null and b/app/__pycache__/__init__.cpython-311.pyc differ
diff --git a/app/__pycache__/models.cpython-310.pyc b/app/__pycache__/models.cpython-310.pyc
new file mode 100644
index 0000000..2fde41a
Binary files /dev/null and b/app/__pycache__/models.cpython-310.pyc differ
diff --git a/app/__pycache__/models.cpython-311.pyc b/app/__pycache__/models.cpython-311.pyc
new file mode 100644
index 0000000..90ae140
Binary files /dev/null and b/app/__pycache__/models.cpython-311.pyc differ
diff --git a/app/__pycache__/views.cpython-310.pyc b/app/__pycache__/views.cpython-310.pyc
new file mode 100644
index 0000000..0e20457
Binary files /dev/null and b/app/__pycache__/views.cpython-310.pyc differ
diff --git a/app/__pycache__/views.cpython-311.pyc b/app/__pycache__/views.cpython-311.pyc
new file mode 100644
index 0000000..3473022
Binary files /dev/null and b/app/__pycache__/views.cpython-311.pyc differ
diff --git a/app/models.py b/app/models.py
new file mode 100644
index 0000000..8d860e5
--- /dev/null
+++ b/app/models.py
@@ -0,0 +1,18 @@
+from app import db
+
+class target(db.Model):
+ __tablename__ = 'targets'
+ id = db.Column(db.Integer, primary_key = True)
+ os = db.Column(db.String())
+ hostname = db.Column(db.String())
+ address = db.Column(db.String())
+ ports = db.Column(db.String())
+
+ def __init__(self, os, hostname, address, ports):
+ self.os = os
+ self.hostname = hostname
+ self.address = address
+ self.ports = ports
+
+ def __repr__(self):
+ return '
' % self.address
diff --git a/style.css b/app/static/css/style.css
old mode 100644
new mode 100755
similarity index 89%
rename from style.css
rename to app/static/css/style.css
index 16f4886..a2019f9
--- a/style.css
+++ b/app/static/css/style.css
@@ -26,6 +26,9 @@ tr{
td{
padding:5px;
}
+tr td:last-child{
+ text-align: left;
+}
.table-header{
border-bottom:10px solid white;
font-weight: bold;
diff --git a/app/static/js/table.js b/app/static/js/table.js
new file mode 100644
index 0000000..828f4a3
--- /dev/null
+++ b/app/static/js/table.js
@@ -0,0 +1,16 @@
+function filter_ports(filter) {
+ let portCol = document.querySelectorAll("tbody tr td:last-child");
+ portCol.forEach((item) => {
+ if(!new RegExp(filter).test(item.innerText)){
+ item.parentNode.style.display = "none";
+ } else {
+ item.parentNode.style.display = "table-row";
+ }
+ });
+}
+
+document.querySelector("#ports").addEventListener("keyup", (event) => {
+ if (event.key === "Enter") {
+ filter_ports(event.srcElement.value);
+ }
+});
\ No newline at end of file
diff --git a/media/linux.png b/app/static/media/linux.png
similarity index 100%
rename from media/linux.png
rename to app/static/media/linux.png
diff --git a/media/unsure.png b/app/static/media/unsure.png
similarity index 100%
rename from media/unsure.png
rename to app/static/media/unsure.png
diff --git a/media/windows.png b/app/static/media/windows.png
similarity index 100%
rename from media/windows.png
rename to app/static/media/windows.png
diff --git a/app/templates/.base.html.swp b/app/templates/.base.html.swp
new file mode 100644
index 0000000..e64c759
Binary files /dev/null and b/app/templates/.base.html.swp differ
diff --git a/app/templates/404.html b/app/templates/404.html
new file mode 100644
index 0000000..ec83c23
--- /dev/null
+++ b/app/templates/404.html
@@ -0,0 +1,28 @@
+{% extends "base.html" %}
+
+{% block title %}Page Not Found{% endblock %}
+
+{% block css %}
+
+{% endblock %}
+
+{% block main %}
+