Skip to content

Instantly share code, notes, and snippets.

View pentestfunctions's full-sized avatar
🚩
Researching for my new course.

Opabinia pentestfunctions

🚩
Researching for my new course.
View GitHub Profile
@pentestfunctions
pentestfunctions / slackmap.sh
Created August 24, 2025 07:29 — forked from jgamblin/slackmap.sh
Script to NMAP a network and Post Differences to Slack
#!/bin/sh
TARGETS="192.168.1.0/24"
OPTIONS="-v -T4 -F -sV"
date=$(date +%Y-%m-%d-%H-%M-%S)
cd /nmap/diffs
nmap $OPTIONS $TARGETS -oA scan-$date > /dev/null
slack(){
curl -F file=@diff-$date -F initial_comment="Internal Port Change Detected" -F channels=#alerts -F token=xxxx-xxxx-xxxx https://slack.com/api/files.upload
}