This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SITECONTENT=$(curl https://burghquayregistrationoffice.inis.gov.ie/Website/AMSREG/AMSRegWeb.nsf/AppSelect?OpenForm) | |
K=$(echo $SITECONTENT|egrep -o '<input id="k" type="hidden" value="\w+"'|cut -c36-67) | |
P=$(echo $SITECONTENT|egrep -o '<input id="p" type="hidden" value="\w+"'|cut -c36-67) | |
echo "P=$P K=$K" | |
#watch -n10 "curl 'https://burghquayregistrationoffice.inis.gov.ie/Website/AMSREG/AMSRegWeb.nsf/(getApps4DTAvailability)?readform&&cat=All&sbcat=All&typ=Renewal&k=$K&p=$P' -H 'Connection: keep-alive' -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'Sec-Fetch-Dest: empty' -H 'X-Requested-With: XMLHttpRequest' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36' -H 'Sec-Fetch-Site: same-origin' -H 'Sec-Fetch-Mode: cors' -H 'Referer: https://burghquayregistrationoffice.inis.gov.ie/Website/AMSREG/AMSRegWeb.nsf/AppSelect?OpenForm' --compressed" | |
watch -n30 "curl 'https://burghquayregistrationoffice.ini |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
IFS=$'\n' | |
if [ -z "$1" ]; then | |
echo "Usage: ./cyberindex.sh <filename>"; | |
else | |
INDEX=$(bc -l <<< "scale=5;$(grep -c -i 'cyber' $1)/$(wc -l < $1)"); | |
echo "Cyberindex of '$1': $INDEX"; | |
fi | |
unset IFS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python -u | |
# -*- coding: utf-8 -*- | |
# A multi-threadable server program to provide mock-answers to socket queries. | |
# Usable for simulating server processes for various remote exploits | |
# by Eeko, 2013 | |
# inspired by http://stackoverflow.com/questions/15486064/simple-tcp-server-in-python | |
import socket | |
import SocketServer | |
import time | |
import threading |