Skip to content

M0oo0ry/Nmap2Notion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🔍 Nmap2Notion

📖 Description

Nmap2Notion is a simple Python-based tool that connects Nmap (a popular network scanner) with Notion.

It helps security teams, sysadmins, and developers track network scan results directly in Notion for easy monitoring and reporting.

  • CIDR Scan: Scans a full subnet, adds alive IPs with their open ports into Notion, and sets the status to Not started.
  • Single IP Scan: Updates the IP’s status in Notion (Not started → In progress → Done) with a timestamp. If the IP does not exist in Notion, the scan runs, but no update is made in Notion.

⚙️ Requirements

  • Python 3.8+

  • Nmap installed

  • Python libraries:

    pip install -r requirements.txt
  • A Notion account with:


📥 Installing Nmap

🐧 Linux (Debian/Ubuntu)

sudo apt update
sudo apt install nmap -y

🍎 macOS (with Homebrew)

brew install nmap

🪟 Windows

  1. Download from Nmap official site.
  2. Run the installer and make sure to check "Add Nmap to PATH".

To verify installation:

nmap --version

🗂️ Notion Database Setup

Your Notion database should include the following properties:

  1. IP Address → Title

  2. Ports → Multi-select

  3. Open Count → Number

  4. Monitoring Status → Status with values:

    • Not started
    • In progress
    • Done
  5. Last Checked → Date


🚀 Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/nmap2notion.git
    cd nmap2notion
  2. Install dependencies:

    pip install -r requirements.txt
  3. On first run, the script will ask for:

    • Notion Integration Secret
    • Database ID

    If you choose to save them, they will be stored in:

    ~/.notion_config.json
    

🖥️ Usage

Scan a CIDR range

python3 nmap_to_excel.py 192.168.1.0/24
  • Performs ping scan → port scan.
  • Saves alive IPs, open ports, and counts into Notion with status Not started.

Scan a single IP

python3 nmap_to_excel.py 192.168.1.10
  • If IP exists in Notion → updates status: Not started → In progress → Done, updates Last Checked.
  • If not in Notion → runs scan only, no database update.

📌 Notes

  • Ensure your Notion integration has access to the database (Share → Invite → your integration).
  • Nmap does the scanning — this tool parses results and syncs them to Notion.

📄 License

MIT License – free to use, modify, and share.

About

An automation tool to monitor the CIDR Pentesting

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages