From 16cde649f07ea8fe67765237c7d28ab710ddf761 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 16 Jun 2014 17:01:39 +0200 Subject: update whois for Reaktor --- Reaktor/commands/whois | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 Reaktor/commands/whois (limited to 'Reaktor/commands') diff --git a/Reaktor/commands/whois b/Reaktor/commands/whois new file mode 100755 index 00000000..ca6ad4d2 --- /dev/null +++ b/Reaktor/commands/whois @@ -0,0 +1,4 @@ +#!/usr/bin/python +(! type whois >/dev/null 2>/dev/null) && echo "whois does not exist" && exit 0 + +whois "${1?usage: $0 domain}" | sed -e '/^$/d' -e '/^%/d' -e '/^Nserver/d' -e 's/^\[.*/---/' -e '/^Changed/d' -e '/^Status/d' -e '/^Type/d' -e '/^PostalCode/d' -e '/^Phone/d' -e '/^Fax/d' -e '/Last update of WHOIS database/Q' -e '/ID:/d' -- cgit v1.2.3 From 12b9b3c3080ded934425f6eda59de26ec6a103eb Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 16 Jun 2014 17:25:08 +0200 Subject: add stolen domain lookup shitz --- Reaktor/commands/taken | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Reaktor/commands/taken (limited to 'Reaktor/commands') diff --git a/Reaktor/commands/taken b/Reaktor/commands/taken new file mode 100644 index 00000000..0b7424ed --- /dev/null +++ b/Reaktor/commands/taken @@ -0,0 +1,28 @@ +#!/bin/sh +#!/bin/bash + +# domainavailable +# Fast, domain name checker to use from the shell +# Use globs for real fun: +# domainavailable blah{1..3}.{com,net,org,co.uk} +# Inspired by foca / giles: +# http://gilesbowkett.blogspot.com/2009/02/simple-bash-domain-availability.html + +trap 'exit 1' INT TERM EXIT + +for d in $@; +do +if host $d | grep "NXDOMAIN" >&/dev/null; then + if whois $d | grep -Ei "(No match|NOT FOUND|Status: free)" >&/dev/null; then + echo "$d available"; + else + if whois $d >&/dev/null;then + echo "$d taken"; + else + echo "$d - whois not available" + fi + fi +else + echo "$d taken"; +fi +done -- cgit v1.2.3 From 438a8a9f99e72dc9c8ccda3f657f9338220f4c41 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 16 Jun 2014 17:43:20 +0200 Subject: update taken script --- Reaktor/commands/taken | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) mode change 100644 => 100755 Reaktor/commands/taken (limited to 'Reaktor/commands') diff --git a/Reaktor/commands/taken b/Reaktor/commands/taken old mode 100644 new mode 100755 index 0b7424ed..b8beba68 --- a/Reaktor/commands/taken +++ b/Reaktor/commands/taken @@ -8,21 +8,21 @@ # Inspired by foca / giles: # http://gilesbowkett.blogspot.com/2009/02/simple-bash-domain-availability.html -trap 'exit 1' INT TERM EXIT - for d in $@; do -if host $d | grep "NXDOMAIN" >&/dev/null; then - if whois $d | grep -Ei "(No match|NOT FOUND|Status: free)" >&/dev/null; then +if host "$d" | grep "NXDOMAIN" >&/dev/null; then + w=$(whois "$d") + if ! test "$?" -eq 0 ;then + echo "$d - whois not available" + elif echo "$w" | grep -Ei "(No match|NOT FOUND|Status: free)" >&/dev/null; then echo "$d available"; + elif echo "$w"| grep -Ei "(Status: invalid)" >&/dev/null ;then + echo "$d invalid" else - if whois $d >&/dev/null;then - echo "$d taken"; - else - echo "$d - whois not available" - fi + echo "$d taken"; fi else echo "$d taken"; fi done +exit 0 -- cgit v1.2.3 From afb78a011404b3bd7fbeb84c0f0e43d0288dedbd Mon Sep 17 00:00:00 2001 From: makefu Date: Tue, 24 Jun 2014 14:53:13 +0200 Subject: update dnsrecon,view-website --- Reaktor/commands/whois | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Reaktor/commands') diff --git a/Reaktor/commands/whois b/Reaktor/commands/whois index ca6ad4d2..b0733891 100755 --- a/Reaktor/commands/whois +++ b/Reaktor/commands/whois @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/bin/sh (! type whois >/dev/null 2>/dev/null) && echo "whois does not exist" && exit 0 whois "${1?usage: $0 domain}" | sed -e '/^$/d' -e '/^%/d' -e '/^Nserver/d' -e 's/^\[.*/---/' -e '/^Changed/d' -e '/^Status/d' -e '/^Type/d' -e '/^PostalCode/d' -e '/^Phone/d' -e '/^Fax/d' -e '/Last update of WHOIS database/Q' -e '/ID:/d' -- cgit v1.2.3