The stories and information posted here are artistic works of fiction and falsehood. Only a fool would take anything posted here as fact.
Eight Years of Service
Posts: 1,890
Threads: 73
Regular Nmap diffing 07-14-2018, 03:40 PM
#1
hello all,
I'll be sharing a helpful Nmap that scans your network everyday.
This will work on a VPS/VM server that is linux or, your personal computer that is linux.
Replace IP (10.100.100.0/24) with yours...
Code:
#!/bin/bash
mkdir opt/nmap_diff
d=$(date +%Y-%m-%d)
y=$(date -d yesterday +%Y-%m-%d)
/usr/bin/nmap -T4 -oX /opt/nmap_diff/scan_$d.xml 10.100.100.0/24 > /dev/null 2>&1
if [ -e /opt/nmap_diff/scan_$y.xml ]; then
/usr/bin/ndiff /opt/nmap_diff/scan_%y.xml /opt/nmap_diff/scan_%d.xml > /opt/nmap_diff/diff.txt
fi
Any questions, leave them down below.
•
Eight Years of Service
Posts: 311
Threads: 16
RE: Regular Nmap diffing 07-26-2018, 11:40 PM
#2
How would this be useful? I've used zenmap in class to find open ports and such but how is this different from just scanning?
•
Fourteen Years of Service
Posts: 2,738
Threads: 293
RE: Regular Nmap diffing 07-27-2018, 02:09 AM
#3
If I read this correctly, it logs changes in devices on you lan? Unfortunately, I use a cascading router setup. I don't think it will work on devices outside my lan.
•
Eight Years of Service
Posts: 1,890
Threads: 73
RE: Regular Nmap diffing 07-27-2018, 02:55 AM
#4
Totally forgot this thread.
(07-26-2018, 11:40 PM)skrtja Wrote: How would this be useful? I've used zenmap in class to find open ports and such but how is this different from just scanning?
Regular scans to see or find any open ports that an attack has done or, has gotten access to your network.
•
Eight Years of Service
Posts: 311
Threads: 16
RE: Regular Nmap diffing 07-27-2018, 03:33 AM
#5
(07-27-2018, 02:55 AM)Mimiakira Wrote: Totally forgot this thread.
(07-26-2018, 11:40 PM)skrtja Wrote: How would this be useful? I've used zenmap in class to find open ports and such but how is this different from just scanning?
Regular scans to see or find any open ports that an attack has done or, has gotten access to your network.
Ok thanks. This might be helpful in the future.
•
Fourteen Years of Service
Posts: 74,291
Threads: 317
RE: Regular Nmap diffing 07-27-2018, 07:02 AM
#6
(07-27-2018, 02:55 AM)Mimiakira Wrote: Totally forgot this thread.
(07-26-2018, 11:40 PM)skrtja Wrote: How would this be useful? I've used zenmap in class to find open ports and such but how is this different from just scanning?
Regular scans to see or find any open ports that an attack has done or, has gotten access to your network.
Isn't that what Zenmap/Nmap does- Identifies open/vulnerable ports as well as hosts & services running on the network (IPs, hostnames etc), hence allows you to establish If and when an Intrusion has taken place?
•
Eight Years of Service
Posts: 311
Threads: 16
RE: Regular Nmap diffing 07-27-2018, 07:27 AM
#7
(07-27-2018, 07:02 AM)mothered Wrote: (07-27-2018, 02:55 AM)Mimiakira Wrote: Totally forgot this thread.
(07-26-2018, 11:40 PM)skrtja Wrote: How would this be useful? I've used zenmap in class to find open ports and such but how is this different from just scanning?
Regular scans to see or find any open ports that an attack has done or, has gotten access to your network.
Isn't that what Zenmap/Nmap does- Identifies open/vulnerable ports as well as hosts & services running on the network (IPs, hostnames etc), hence allows you to establish If and when an Intrusion has taken place?
That's what I thought too as well.
•
Eight Years of Service
Posts: 1,890
Threads: 73
RE: Regular Nmap diffing 07-27-2018, 07:59 AM
#8
(07-27-2018, 07:02 AM)mothered Wrote: (07-27-2018, 02:55 AM)Mimiakira Wrote: Totally forgot this thread.
(07-26-2018, 11:40 PM)skrtja Wrote: How would this be useful? I've used zenmap in class to find open ports and such but how is this different from just scanning?
Regular scans to see or find any open ports that an attack has done or, has gotten access to your network.
Isn't that what Zenmap/Nmap does- Identifies open/vulnerable ports as well as hosts & services running on the network (IPs, hostnames etc), hence allows you to establish If and when an Intrusion has taken place?
Yep, pretty much but, this is automated scanning that stores logs of valuable information of what's happening.
•
Fourteen Years of Service
Posts: 74,291
Threads: 317
RE: Regular Nmap diffing 07-27-2018, 08:48 AM
#9
(07-27-2018, 07:59 AM)Mimiakira Wrote: (07-27-2018, 07:02 AM)mothered Wrote: (07-27-2018, 02:55 AM)Mimiakira Wrote: Totally forgot this thread.
Regular scans to see or find any open ports that an attack has done or, has gotten access to your network.
Isn't that what Zenmap/Nmap does- Identifies open/vulnerable ports as well as hosts & services running on the network (IPs, hostnames etc), hence allows you to establish If and when an Intrusion has taken place?
Yep, pretty much but, this is automated scanning that stores logs of valuable information of what's happening.
Okay, thanks for confirming.
•