The issue regarding searched threads returning 404s has been fixed. My apologies. - NekoElf
The stories and information posted here are artistic works of fiction and falsehood. Only a fool would take anything posted here as fact.
Six Years of Service
Posts: 1,793
Threads: 70
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.
•
Six Years of Service
Posts: 302
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?
•
Twelve Years of Service
Posts: 2,641
Threads: 281
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.
•
Six Years of Service
Posts: 1,793
Threads: 70
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.
•
Six Years of Service
Posts: 302
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.
•
Twelve Years of Service
Posts: 72,627
Threads: 307
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?
•
Six Years of Service
Posts: 302
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.
•
Six Years of Service
Posts: 1,793
Threads: 70
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.
•
Twelve Years of Service
Posts: 72,627
Threads: 307
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.
•
Users browsing this thread: 2 Guest(s)