Skip to content

Instantly share code, notes, and snippets.

View paulka's full-sized avatar

Paul Kavanagh paulka

  • Dublin, Ireland
View GitHub Profile
@paulka
paulka / dns.sh
Created May 11, 2018 12:47
For a given domain name, Guess a few sub domains and query if they exist
#!/bin/bash
set -e;
COMMON_SUBDOMAINS="404 account admin affiliate alpha aws amazon api assets beta blob blobs blog cdn clone corp data demo dev dump downloads download edge en error export exports external external files file firewall ftp free holding home images imap import imports internal intra intranet kodi local log logs logo login mail marketing media mobile my myaccount mx nas net office op ops order orders partner partners photos pictures pop pos portal redirect remote s3 shop smtp ssh stage static store support test testing track tracking training upload video vpn web webmail www xxx"
EXTENDED=""
while :; do case $1 in
--) shift; break ;;
-x) EXTENDED=y; shift ;;
-s) NS="$2"; shift 2 ;;
*) break ;;
@paulka
paulka / boot.log
Created March 5, 2015 15:11
/var/log/boot.log from ami-7a28f70d in eu-west-1
buntu@ip-10-39-5-13:~$ cat /var/log/boot.log
cloud-init start-local running: Thu, 05 Mar 2015 14:25:18 +0000. up 11.62 seconds
no instance data found in start-local
ci-info: lo : 1 127.0.0.1 255.0.0.0 .
ci-info: eth0 : 1 10.39.5.13 255.255.255.192 22:00:0a:27:05:0d
ci-info: route-0: 0.0.0.0 10.39.5.1 0.0.0.0 eth0 UG
ci-info: route-1: 10.39.5.0 0.0.0.0 255.255.255.192 eth0 U
cloud-init start running: Thu, 05 Mar 2015 14:25:20 +0000. up 13.43 seconds
found data source: DataSourceEc2
2015-03-05 14:25:20,946 - __init__.py[WARNING]: Unhandled non-multipart userdata ''
### Keybase proof
I hereby claim:
* I am paulka on github.
* I am paulkavanagh (https://keybase.io/paulkavanagh) on keybase.
* I have a public key whose fingerprint is 82B0 274D 9A8A 6327 7E87 4452 5201 BC0B 55F5 BA71
To claim this, I am signing this object:
#!/bin/bash
### User Settings (things you must set)
## Location of the dnscurl.pl script
DNSCurl="/path/to/route53DynDNS/dnscurl.pl"
## The host name you wish to update/create
myHostName="*"
## Zone/domain in which host (will) reside(s)
myDomainName="example.com"