Skip to content

Phexcom/phactive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phactive

This is a very basic script that runs nmap every day at 10AM using cronjon that Scans 0-65535 with
"-A -Pn -v -T4 -F -sV" Flags then uses ndiff to compare the result. 
If there's any difference it send's a notification to your specified Telegram bot about
new ports discovered.

License: MIT

  • Twitter Follow Phexcom @phactive

Download, setup, and usage

You must have Nmap and Ndiff Installed

git clone https://github.com/Phexcom/phactive.git /opt/phactive

sudo nano /opt/phactive/main.sh

  • Add the host you want to scan and monitor
TARGETS="127.0.0.1"                  # Target eg: (Ex: scanme.nmap.org, microsoft.com/24, 192.168.0.1; 10.0.0-255.1-254)
  • Add your telegram chat id and Token
chat_id="<Telegram chat id>" # Telegram Chat id
tg_token="<Telegram Bot Token" # Telegram bot Token

To setup a telegram token and chat id Check out this Post

Setup a cron job

  • Once you done with the setup. You can run a cron job that runs every morning at 10am or your desirable time. Here is an Example:

sudo nano /etc/crontab

Then copy and paste then save

00 10 * * * root bash /opt/phactive/main.sh

Releases

No releases published

Packages

No packages published

Languages