Skip to content

rlemm-pan/trapseventnotifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Traps Event Notifier (TEN)

This app was written for Palo Alto Networks to gather Malware Events from the Traps Cloud Service and send Email Notifications. PhantomJS is required for this script to work.

Install:

pip install selenium

pip install smtplib

pip install argparse

pip install getpass

pip install warnings

Usage:

usage: traps.py [-h] [--traps TRAPS] [--events EVENTS]
                [--emailuserid EMAILUSERID] [--emailreceiver EMAILRECEIVER]
                [--trapsuser TRAPSUSER] [--mailserver MAILSERVER]
                [--mailserverport MAILSERVERPORT] [--phantompath PHANTOMPATH]

Usage Example: 

python traps.py --traps mytrapsservicename --events 20 --emailuserid [email protected] --emailreceiver [email protected] --trapsuser [email protected] --mailserver my.mailsever.com --mailserverport 465 --phantompath /yourpath/bin/phantomjs

optional arguments:

  -h, --help            show this help message and exit
  
  --traps TRAPS         Traps Service Name
  
  --events EVENTS       Number of Events
  
  --emailuserid EMAILUSERID
  
                        Username for Email Account
                        
  --emailreceiver EMAILRECEIVER
  
                        Email Address to receive email
                        
  --trapsuser TRAPSUSER
  
                        Traps Username
                        
  --mailserver MAILSERVER
  
                        Mail Server
                        
  --mailserverport MAILSERVERPORT
  
                        Mail Server Port
                        
  --phantompath PHANTOMPATH
  
                        Path to PhantomJS Web Client (Required)
                        

About

Traps Event Notifier

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages