This commit is contained in:
2019-02-20 23:11:53 +00:00
parent a50d6d8908
commit a37d45e49d
3 changed files with 22 additions and 3 deletions
+20 -1
View File
@@ -1,2 +1,21 @@
# gutterbox # gutterbox
nmap -O -oX scan.xml 192.168.1.0/24 ## setup
Install the dependancies
specify the correct version for sqlite3
```
sudo apt update
sudo apt install php libapache2-mod-php php-mysql
sudo apt install php7.0-sqlite3
```
## Use it!
Run the scan
```
nmap -O -oX /var/www/html/gutterbox/scans/scan.xml 192.168.1.0/24
```
Feed the parser
```
./parser.py -x scans/scan.xml
```
+2 -2
View File
@@ -73,7 +73,7 @@ def main():
id integer PRIMARY KEY, id integer PRIMARY KEY,
os text, os text,
hostname text, hostname text,
address integer, address text,
ports text ports text
); """ ); """
create_table(conn, targetTableCreate) create_table(conn, targetTableCreate)
@@ -98,7 +98,7 @@ def main():
for addr in host.iter('address'): for addr in host.iter('address'):
if(addr.attrib['addrtype'] == 'ipv4'): if(addr.attrib['addrtype'] == 'ipv4'):
address = str(addr.attrib['addr']).split('.')[-1] address = str(addr.attrib['addr'])
for port in host.iter('port'): for port in host.iter('port'):
ports.append(str(port.attrib['portid'])) ports.append(str(port.attrib['portid']))
BIN
View File
Binary file not shown.