Community discussions

MikroTik App
 
Josephny
Member
Member
Topic Author
Posts: 434
Joined: Tue Sep 20, 2022 12:11 am

Script request

Sat Nov 26, 2022 1:47 pm

Has anyone written a script that will scan a range of IPs and return 'alive' ip addresses, host names, mac addresses, open ports?

Thanks!
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11968
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Script request

Sat Nov 26, 2022 2:59 pm

No, because there are other tools already existing on linux and windows to do it,
and it takes less time to use them directly than to write your own for no reason.
 
User avatar
frank333
Member
Member
Posts: 328
Joined: Mon Dec 18, 2017 12:17 pm
Location: S.Marino Router model: RB3011UiAS-RM+RBM11G

Re: Script request

Sat Nov 26, 2022 3:48 pm

nmap -sn -T5 -A -v 8.8.8.8
 
Josephny
Member
Member
Topic Author
Posts: 434
Joined: Tue Sep 20, 2022 12:11 am

Re: Script request

Sat Nov 26, 2022 4:31 pm

It seems like it might be useful to have it run on the router, but maybe my intuition isn't perfect on this.

I'd like to run nmap, but my PCs run Windows. I know it's available, and I'll install it, but then I have to install it on multiple machines.

I went ahead and installed and received:

"WARNING: OS Scan is unreliable without a port scan. You need to use a scan type along with it, such as -sS, -sT, -sF, etc instead of -sn"

This works:

"nmap -sS -T4 -A -v 192.168.2.0/24"

I've wanted to set up a linux machine and have done so a few times, but each time I do I find myself spending a lot of time trying to figure out (learn) how to do each thing I want done (as opposed to Windows, where I know how to do things already).
 
User avatar
frank333
Member
Member
Posts: 328
Joined: Mon Dec 18, 2017 12:17 pm
Location: S.Marino Router model: RB3011UiAS-RM+RBM11G

Re: Script request

Tue Dec 06, 2022 9:53 pm

@Josephny,
I hate windows ; but you can use the graphical version called zenmap if you are scared of the command line. :D

Who is online

Users browsing this forum: greggio and 28 guests