Skip to content

Commit 29d07e1

Browse files
committed
chore: more cleanup
1 parent c74a875 commit 29d07e1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ netbox-scanner is compatible with **Python 3.7+**, and can be installed like thi
1111
$ wget https://github.com/lopes/netbox-scanner/archive/master.zip
1212
$ unzip netbox-scanner-master.zip -d netbox-scanner
1313
$ cd netbox-scanner
14+
$ python3 -m venv venv
15+
$ source venv/bin/activate
1416
$ pip install -r requirements.txt
1517
```
1618

@@ -21,7 +23,7 @@ After installation, use the `netbox-scanner.conf` file as an example to create y
2123
## Quick Start
2224

2325
0. Clone the repo and install the dependencies as shown above.
24-
1. Move the `netbox-scanner.conf` file to your Netbox directory (`/opt/netbox`) and fill out the variables according to your setup.
26+
1. Move the `netbox-scanner.conf` file to your Netbox directory (`/opt/netbox`) and fill out the variables according to your setup. Don't forget to change the path to match where you put this repo under `[NMAP].path`.
2527
2. Go to the `samples` subdirectory of this repo and execute `./nmap-scan.sh` to get a first look at the behavior of this project.
2628

2729
## Basics

samples/nmap-scan.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ NETWORKS="10.1.2.3/24 10.2.3.4/32 192.168.0.0/19"
2020
TODAY="$(date +%d%m%yT%H%M%S%Z)"
2121

2222
for net in $NETWORKS; do
23-
rawNet="${net:0:-3}"
23+
rawNet="${net:0:-3}"
2424
sudo nmap -T4 -O -F --host-timeout 30s -oX nmap-"$rawNet".xml "$net"
2525
done
2626

0 commit comments

Comments
 (0)