Category Archives: Scanning Scripts

Simple Python Script to Scan for MySQL servers running without a ROOT password set

#!/usr/bin/env python import MySQLdb, random, sys def randip(): A = random.randrange(255) + 1 B = random.randrange(255) + 1 C = random.randrange(255) + 1 D = random.randrange(255) + 1 ip = “%d.%d.%d.%d” % (A,B,C,D) return ip def title(): print “n d3hydr8[at]gmail[dot]com MySQL_default v1.0” print “————————————————-” #Add or subract users here. users = [“root”,”admin”,”administrator”] if len(sys.argv) <=… Read More »

Share Button

Python Script to scan for Webservers running vBulletin Forum Bulletin Board Software

#!/usr/bin/python import sys, httplib, time, urllib, re def getserv(path): try: h = httplib.HTTP(host+”:”+port) h.putrequest(“HEAD”, path) h.putheader(“Host”, host) h.endheaders() status, reason, headers = h.getreply() except: print “n[-] Error: Name or service not known. Check your host.n” sys.exit(1) return status, reason, headers.get(“Server”) def timer(): now = time.localtime(time.time()) return time.asctime(now) def getver(path): site = urllib.urlopen(“http://”+host+path).read() version = re.findall(“version… Read More »

Share Button

Python Script to Scan for sites running phpBB Forum Bulletin Software

#!/usr/bin/python import sys, httplib, time, urllib2 def getserv(path): try: h = httplib.HTTP(host+”:”+port) h.putrequest(“HEAD”, path) h.putheader(“Host”, host) h.endheaders() status, reason, headers = h.getreply() except: print “n[-] Error: Name or service not known. Check your host.n” sys.exit(1) return status, reason, headers.get(“Server”) def timer(): now = time.localtime(time.time()) return time.asctime(now) def title(): print “nt d3hydr8[at]gmail[dot]com PhpBBscanner v1.2” print “t————————————————–”… Read More »

Share Button

PERL Script to scan for NTP servers responding to MONLIST command for DrDoS Abuse

#!/usr/bin/perl use strict; use Net::IP; use IO::Socket; use Term::ANSIColor; use vars qw( $PROG ); ( $PROG = $0 ) =~ s/^.*[\/\\]//; #Usage if ( @ARGV == 0 ) { print “Usage: ./$PROG [START-IP] [END-IP] [PORT] [THREADS] [TIMEOUT] [OUTPUT]\n”; exit; } my $threads = $ARGV[3]; my @ip_team = (); $|= 1; my $ip = new Net::IP… Read More »

Share Button

DNS Amplification Script to scan for Vulnerable DNS AMP Servers for DrDoS Reflective Abuse

#include <pthread.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> #include <netinet/in.h> #include <signal.h> #include <sys/time.h> #include <sys/types.h> #include <math.h> #include <stropts.h> #include <ctype.h> #include <errno.h> #include <arpa/inet.h> #include <netinet/ip.h> #include <netinet/udp.h> struct DNS_HEADER { unsigned short id; // identification number unsigned char rd :1; // recursion desired unsigned char tc :1; //… Read More »

Share Button