T3chnocr4t:~#

Looking 🔭 For Something Hidden....

View on GitHub

Simple Nmap Scripts


Hola! :wave: Let’s begin writing a simple Nmap script. Nmap is like a detective tool for computer networks. It helps you discover which devices are connected to a network, what services they’re running, and how secure they are.

Why Nmap🤔?

Nmap is used for network exploration and security auditing. It helps users discover devices on a network, identify open ports, and analyze network security.

4289732-middle

Scripts

Let’s proceed 🚀 to explain how the script works. This script is based on Nmap’s TCP Connect Scan. I’ll also be creating scripts for different types of scans in the future.

Screenshot_2024-01-30_05-55-55

Explanation of the Scripts:


Screenshot_2024-01-30_05-48-18

So, I started the script with the shebang 👉( #! /bin/bash) so that the interpreter will understand it is a Bash script. In the second and third lines, I specify a comment, i.e., #, which doesn’t execute. The comment serves as a guide; it doesn’t execute any commands. It’s simply a way for anyone editing the script to understand how it works and make corrections if necessary.

command use:

Yeah, that’s all. Feel free to ask questions or share feedback. Here is my Twitter handle.

Go back home