How to use netmask


Hello and welcome to another post, today we are going to be talking about the tool already packed into ParrotSec and Blackarch.

Well netmask is an address netmask generation utility as the developer likes to call it, its a great tool in my opinion and today we’ll be going over it and what a netmask is and how to use this tool. I hope you enjoy this post!!

What is a netmask?

A netmask is a 32-bit “mask” used to divide an IP address into subnets and specify the networks available hosts. In a netmask, two bits are always automatically assigned. For example , in, “0” is the assigned network address. In, “255” is the assigned broadcast address. The 0 and 255 are always assigned and cannot be used.

Netmask defines how “large” a network is or if you’re configuring a rule that requires an IP address and a Netmask, the Netmask will signify to what poriton or range of the network the rule will apply too.

using netmask

Now to install netmask on your system, I believe you would have to type “apt install netmask” and your done lol.

Now onto using it, lets just type in netmask -h so we can see the commands and now we will do a normal run –

How to use netmask 1

How to use netmask 2

as you can see what got our results, we can use these in further enumeration and scans for more recon. Now lets get the range by running “netmask -r” okay lets take a look –

How to use netmask 3

and there we go, we have the range! Now lets do a standard run by typing “netmask -s” lets have a look –

How to use netmask 4

there we go! Results once again..

netmask overview

Now I think this is a great tool, deffo useful for recon on networks and things like that. I recommend you add this into your hacking toolbox today because I deffo am!!

This post was fun to make and so was using the tool! So make sure to check out our other posts for more tutorials, tips and information on hacking! I hope you enjoyed this post and thanks for reading!!


Hackingarise does not take responsiblity for the actions you make commit with this tool and/or knowledge!! We make these posts for educational purposes and to teach how hackers can use certain tools to hack you and we do not try to inspire any blackhat activities in the doing of so!!


Leave a Reply