Skip to content

Instantly share code, notes, and snippets.

View irrashai's full-sized avatar

irrashai irrashai

View GitHub Profile
@irrashai
irrashai / check_roa.sh
Created March 29, 2019 17:03
check_roa.sh: A script that checks valid ROAs for a list of IP blocks
#!/bin/bash
# This script checks if there are valid ROAs for a list of IP blocks
# Checks from two sources - rpki validator and bgpmon
iplist="iplist.txt"
notvalid=0
# Replace with your own validator
rpki_validator="http://localcert.ripe.net:8088"
@irrashai
irrashai / check_hibp.sh
Created March 29, 2019 14:51
check_hibp.sh: A script that checks haveibeenpwned.com for any breaches related to your email list
#!/bin/bash
# Checks haveibeenpwned.com if any of your emails have been added
path="<path/to/working/dir>"
mailfrom="<add-email-here>"
mailto="<add-email-here>"
out="pwnage.out"
maillist="maillist.txt"
today=`date +%Y%m%d`
@irrashai
irrashai / check_quad9_keys.sh
Created March 29, 2019 14:43
check_quad9_keys: A script that checks for changes in Quad9 key used in stubby.yml
#!/bin/bash
# This script checks for changes in Quad9 key used in stubby.yml
# If it's the same = OK
# If changed, fetch the new key and update
# Replace with stubby location
PATH="/opt/getdns/etc/stubby"
cd $path
@irrashai
irrashai / scan_wp.sh
Last active March 29, 2019 14:40
scan_wp.sh: A script to run WPScan on a list of wordpress sites then mails the new vulnerabilities
#!/bin/bash
# This script runs WPScan on a list of WP sites
# and mails new vulnerabilities to NOC
# List WP sites and other variables
wplist="<list-blogs-here>"
mailfrom="<insert-email-here"
mailto="<insert-email-here>"
path="/<path-to>/wpscan"
logfile="wpscan.log"

Keybase proof

I hereby claim:

  • I am irrashai on github.
  • I am sherylhermoso (https://keybase.io/sherylhermoso) on keybase.
  • I have a public key ASBAHWpj_WQ1zp-73ipQvdPlfEYEPe0eYJhLBl_aWiU1PAo

To claim this, I am signing this object: