werkin
This commit is contained in:
@@ -1,2 +1,21 @@
|
||||
# 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
|
||||
```
|
||||
|
||||
@@ -73,7 +73,7 @@ def main():
|
||||
id integer PRIMARY KEY,
|
||||
os text,
|
||||
hostname text,
|
||||
address integer,
|
||||
address text,
|
||||
ports text
|
||||
); """
|
||||
create_table(conn, targetTableCreate)
|
||||
@@ -98,7 +98,7 @@ def main():
|
||||
|
||||
for addr in host.iter('address'):
|
||||
if(addr.attrib['addrtype'] == 'ipv4'):
|
||||
address = str(addr.attrib['addr']).split('.')[-1]
|
||||
address = str(addr.attrib['addr'])
|
||||
|
||||
for port in host.iter('port'):
|
||||
ports.append(str(port.attrib['portid']))
|
||||
|
||||
BIN
Binary file not shown.
Reference in New Issue
Block a user