Saturday, May 11, 2013

Keylogger Attack ?


What Is Keyloggers?

Using key logger utility you will be able to establish full control over your computer. You will also find out, what was going on your computer in your absence: what was run and typed etc which act as best children internet protection software. Using the keylogging program constantly, you can restore the previously typed text in case you have lost it. Keystroke logger software works in the hidden mode and invisible on Windows operating system including Windows 7/VISTA/XP/Server 2008/NT/98 etc.

Lets start the guide: How to use it. ?


1) first you need to download this application, you can download it from its website Download, but currently its under maintenance..

Download here - Click Here To Download

2) I am giving tut about Neptune 1.4 only, but you can use 1.45 also, it is a updated version that sends screenshot also.

After downloading, Extract the .rar file, open the project's folder, click on project Neptune v1.4, Now it will show a window like shown below, Do whatever mentioned in screen shot.
Note: i am giving tut for getting logs by mail(gmail here), but you can use other also, or can use ftp server also.

3) Now go to 'Server Creation' tab and press 'Generate new server' under 'server creation', and give name of your keylogger and thats it.. you are done :)


4) Make it self destructive :In tab Extra options, you can check 'self destruct on ', if you want that it should be remove after any particular date.


5) Add Icon: You can also add any icon to the final keylogger file, for that go to 'Server Creation' tab and select 'Use file icon' under 'server settings' and select any icon file.


6) Binding: You can bind it with any other file also, for that press the file binder button, a window will open(as shown in screen shot)then right click and select 'add file' and then select anything for ex. any software, movie, video, song etc. with which you wanna bind it. 5.1) After selecting the binding file, dont close this window, and go to step 3. 



7) Sreenshots: (only available in naptune 1.45) Go to Extra options, check 'send screen shots' under 'Screenshots'


Note: This tutorial is only for Educational Purposes, I did not take any responsibility of any misuse, you will be solely responsible for any misuse that you do. Hacking email accounts is criminal activity and is punishable under cyber crime and you may get upto 40 years of imprisonment, if got caught in doing so.

Cookie Stealing Attack



In this tutorial i will explain how you can hack a Facebook/twitter accounts by stealing cookies. This method works only when the victims computer is in a LAN (local area network ).Best place to try out this is in schools ,collages ,cafes . where computers are connected in LAN .Before i proceed let me first explain cookies.

What Are Cookies ? And What Is The Use Of Stealing Cookies ?

Cookies are small files that stored on users computer by websites when a user visits them. The stored Cookies are used by the web server to identify and authenticate the user .For example when a user logins in Facebook a unique string is generated and one copy of it is saved on the server and other is saved on the users browser as Cookies. Both are matched every time the user does any thing in his account

So if we steal the victims cookie and inject them in our browser we will be able to imitate the victims identity to the web server and thus we will be able to login is his account . This is called as Side jacking .The best thing about this is that we need not no the victims id or password all we need is the victims cookie.

Hack Facebook / Twitter By Stealing Cookies ?

1. Ettercap or Cain and able for ARP poisoning the victim
2. Wire shark for sniffing and stealing cookies
3. Firefox browser and Cookie logger add on for injecting the stolen cookies in our browser

1. First ARP poison the victim .For this you can refer my previous articles on how to ARP poison the victims computer using Cain and able or Ettercap

2. After ARP poisoning open Wire shark ,click capture button from the menu bar , then select interface .Now select your interface (usually eth0 ) finally click start capture .

3. Now you can see the packets being captured , wait for a while till the victim logs in his account( Facebook /twitter ),

4. Mean while Find the IP address of Facebook ,for this you can open CMD (command prompt ) and enter .Ping Facebook.com to find its IP address.

5. Now filter the packets by entering the the IP address (Facebook) in the filter bar and click apply 

6. Now Locate HTTP Get /home.php  and copy all the cookie names and values in a notepad.
7. Now open Firefox and open add and edit cookies ,which we downloaded earlier , add all the cookie values and save them.

 8. Now open Facebook in a new tab , you will be logged in the victims account .


Chris Defaulter Valentine ......you have hacked the victims Facebook account by stealing cookies , You can also follow the same steps to hack  Twitter accounts


Hope you enjoyed this tutorial , If you have any doubts please feel  free to post a comment.

Facebook Security ?


#1– Enable HTTPS ?

When you bookmark the URL for Facebook or any of your other social networks, be sure to use HTTPS instead of HTTP. This encrypts your communications. 

In fact, you will have to temporarily disable this feature any time you give access to a new application. That alone should give you confidence that you have achieved a greater level of protection.

#2– Disable Online Chat ?

All of us have witnessed Facebook scams, with the most common being the infamous chat message … “I’m in the UK and have been mugged – please send money so I can get back home.” 

While I have no technical basis for this, it stands to reason that the hackers get in through the chat service. Every time I have noticed bogus comments allegedly made by me to my Facebook friends, it is because I had previously used the online chat. 

To disable chat just click on the little wheel in the right sidebar and take yourself offline. Then close the window and make sure is registers as chat offline.

#3 – Review Permissions Granted to Third Party Apps ?


When you grant access to Facebook apps, those permissions endure long after you stop using them. Go to this link to review your Facebook app permissions – and disable any you are no longer using. 

You will probably be surprised at the long list permissions your have previously granted!

#4 – Activate Text Message Notifications ?


Facebook allows you to receive text notifications whenever your account is accessed from a device other than your primary computer or mobile device. 

You simply go to Account Settings and then to Security Settings to set-up the proper notifications to your mobile device. 

First go to login approvals – then login notifications.


You can only choose email or text notifications. By choosing text notifications you not only get an immediate notice, but you also activate both your mobile device and your primary computer as approved access points.


#5 – Maintain Public and Private Email Addresses ?


The email address you use for Facebook should be distinct from the one you use where security is more critical – such as your online banking or Paypal account. 

If your Facebook account gets hacked its embarrassing. If that is the same email used on your more secure accounts, now that vulnerability could be costly. 

Obviously, if you are selective with your email addresses and periodically change your passwords, you minimize your chances of being hacked. 

Did you know that anyone can search Facebook for an email address? For example, if you are looking a common name such as John Smith, you only need to search with their email to find the right one. 

This is handy for finding your friends on Facebook, but also useful for hackers. The safe bet is to use distinct passwords for your public and private email addresses. 

There are even more ways to protect your Facebook and other online accounts, but these 5 are the most essential, and they are specific to Facebook, which seems to be the site that is the most vulnerable.


Note: This tutorial is only for Educational Purposes, I did not take any responsibility of any misuse, you will be solely responsible for any misuse that you do. Hacking email accounts is criminal activity and is punishable under cyber crime and you may get upto 40 years of imprisonment, if got caught in doing so. 

Session Hijacking Attack ?

What Is Session Hijacking Attack ?
Session hijacking, also known as TCP session hijacking, is a method of taking over a Web user session by surreptitiously obtaining the session ID and masquerading as the authorized user. Once the user's session ID has been accessed (through session prediction), the attacker can masquerade as that user and do anything the user is authorized to do on the network. 

The session ID is normally stored within a cookie or URL. For most communications, authentication procedures are carried out at set up. Session hijacking takes advantage of that practice by intruding in real time, during a session. The intrusion may or may not be detectable, depending on the user's level of technical knowledge and the nature of the attack. If a Web site does not respond in the normal or expected way to user input or stops responding altogether for an unknown reason, session hijacking is a possible cause.



Step By Step Explanation Of How To Carry Out This Attack ?


First of all, you would need to connect to an unsecured wireless connection that others are using. Then we start capturing packets transferred over this network. Note that your wireless adapter needs to support monitor mode to scan all packets transferred over a network. you can check your wi-fi card specifications to see if it supports monitor mode.

We would then need to use a network sniffing tool so sniff packets transferred over the network. In this case, I am using a tool called Wireshark (Download From Here). Within wireshark, there is a menu called "Capture"; Under the capture menu, select interfaces from that menu, and a list of your interfaces will come up.



Next you select Start Next to the interface that you have enabled monitor mode on. most times it is the interface that is capturing the most packets. In my case, Microsoft interface is capturing the most packets, so i will select to start capturing with the microsoft interface. You would leave wireshark to capture packets for a couple of seconds depending on the amount of persons currently using the network. Say 30 seconds if 10 people currently are using the network, or 30 minutes if there is barely network activity going on. While capturing, wireshark will look something like this.

After capturing a certain amount of packets, or running the capture for a certain amount of time, stop it by clicking on the stop current capture button.

 After stopping the capture, you will need to look for the user's facebook session cookie which, hopefully was transferred in one of the packets captured. to find this cookie, use the wireshark search which can be found by pressing "ctrl + f" on your keyboard. In this search interface, select Find: By "String"; Search In: "Packet Details". and Filter by the string "Cookie". 

When you press find, if there is a cookie, this search will find it, if no cookie was captured, you will have to start back at step 2. However, if youre lucky and some cookies we're captured, when you search for cookie, your interface will come up looking like this in the diagram below. You would notice the cookie next to the arrow contains lots of data, to get the data. the next thing you do is to right click on the cookie and click copy->description. 


After copying the description, paste it in a text file, and separate each variable to a new line (note the end of every variable is depicted by a semicolon eg - c_user=100002316516702;). After some research and experimenting, i figured out that facebook authenticated the user session by 2 cookies called c_user and xs. Therefore you will only need the values of these cookies, and then need to inject them into your browser. Before injecting the cookies, here is what my facebook page looked like:

The next thing you would need to do is to inject this information as your own cookie. so firstly you would need to install a cookie manager extension for your browser, I'm using firefox Cookie Manager. After installing this extension, you will find it under Tools->cookie manager. The interface for cookie manager looks like this:

The first thing we would need to do is to clear all cookies, so clear all the cookies you currently have. Then select the "Add Cookie" link to add a new cookie. The first cookie you will add is the c_user cookie which will have the following information:: Domain - ".facebook.com", name-"c_user", value-"the value you copied earlier from the wireshark scanning" and the Path-"/"; leave the isSecure and Expires On values to default:



The next thing you do is to hit the "Add" button and the cookie is saved. Repeat the same steps to add the xs cookie with all of the same information, except the value, which would be the xs value you have.

After adding these 2 cookies, just go to facebook.com, refresh the page and... Boom!! you will see you are logged in as that user whose cookie information you stole. Here is my facebook page after i injected those cookies:

 


                                                          Video Demonstration:




Note: This tutorial is only for Educational Purposes, I did not take any responsibility of any misuse, you will be solely responsible for any misuse that you do. Hacking email accounts is criminal activity and is punishable under cyber crime and you may get upto 40 years of imprisonment, if got caught in doing so.

Friday, May 10, 2013

6 WAYS TO HACK AND DEFACE A WEBSITE


METHODS OF HACKING WEBSITE:



  1. SQL INJECTION
  2. CROSS SITE SCRIPTING
  3. REMOTE FILE INCLUSION
  4. LOCAL FILE INCLUSION
  5. DDOS ATTACK
  6. EXPLOITING VULNERABILITY.




1. SQL INJECTION
FIRST OF ALL WHAT IS SQL INJECTION? SQL INJECTION IS A TYPE OF SECURITY EXPLOIT OR LOOPHOLE IN WHICH A ATTACKER "INJECTS" SQL CODE THROUGH A WEB FORM OR MANIPULATE THE URL'S BASED ON SQL PARAMETERS. IT EXPLOITS WEB APPLICATIONS THAT USE CLIENT SUPPLIED SQL QUERIES.
THE PRIMARY FORM OF SQL INJECTION CONSISTS OF DIRECT INSERTION OF CODE INTO USER-INPUT VARIABLES THAT ARE CONCATENATED WITH SQL COMMANDS AND EXECUTED. A LESS DIRECT ATTACK INJECTS MALICIOUS CODE INTO STRINGS THAT ARE DESTINED FOR STORAGE IN A TABLE OR AS METADATA. WHEN THE STORED STRINGS ARE SUBSEQUENTLY CONCATENATED INTO A DYNAMIC SQL COMMAND, THE MALICIOUS CODE IS EXECUTED.


2. CROSS SITE SCRIPTING
CROSS SITE SCRIPTING (XSS) OCCURS WHEN A USER INPUTS MALICIOUS DATA INTO A WEBSITE, WHICH CAUSES THE APPLICATION TO DO SOMETHING IT WASN’T INTENDED TO DO. XSS ATTACKS ARE VERY POPULAR AND SOME OF THE BIGGEST WEBSITES HAVE BEEN AFFECTED BY THEM INCLUDING THE FBI, CNN, EBAY, APPLE, MICROSFT, AND AOL.
SOME WEBSITE FEATURES COMMONLY VULNERABLE TO XSS ATTACKS ARE:
• SEARCH ENGINES
• LOGIN FORMS
• COMMENT FIELDS

CROSS-SITE SCRIPTING HOLES ARE WEB APPLICATION VULNERABILITIES THAT ALLOW ATTACKERS TO BYPASS CLIENT-SIDE SECURITY MECHANISMS NORMALLY IMPOSED ON WEB CONTENT BY MODERN BROWSERS. BY FINDING WAYS OF INJECTING MALICIOUS SCRIPTS INTO WEB PAGES, AN ATTACKER CAN GAIN ELEVATED ACCESS PRIVILEGES TO SENSITIVE PAGE CONTENT, SESSION COOKIES, AND A VARIETY OF OTHER INFORMATION MAINTAINED BY THE BROWSER ON BEHALF OF THE USER. CROSS-SITE SCRIPTING ATTACKS ARE THEREFORE A SPECIAL CASE OF CODE INJECTION.

I WILL EXPLAIN THIS IN DETAIL IN LATER HACKING CLASSES. SO KEEP READING..


3. REMOTE FILE INCLUSION
REMOTE FILE INCLUSION IS THE MOST OFTEN FOUND VULNERABILITY ON THE WEBSITE.
REMOTE FILE INCLUSION (RFI) OCCURS WHEN A REMOTE FILE, USUALLY A SHELL (A GRAPHICAL INTERFACE FOR BROWSING REMOTE FILES AND RUNNING YOUR OWN CODE ON A SERVER), IS INCLUDED INTO A WEBSITE WHICH ALLOWS THE HACKER TO EXECUTE SERVER SIDE COMMANDS AS THE CURRENT LOGGED ON USER, AND HAVE ACCESS TO FILES ON THE SERVER. WITH THIS POWER THE HACKER CAN CONTINUE ON TO USE LOCAL
EXPLOITS TO ESCALATE HIS PRIVILEGES AND TAKE OVER THE WHOLE SYSTEM.
RFI CAN LEAD TO FOLLOWING SERIOUS THINGS ON WEBSITE :
SKIP DISCOVERS FUTURING FUTURES WEBSITE DESIGN
CODE EXECUTION ON THE WEB SERVER
CODE EXECUTION ON THE CLIENT-SIDE SUCH AS JAVASCRIPT WHICH CAN LEAD TO OTHER ATTACKS SUCH AS CROSS SITE SCRIPTING (XSS).
DENIAL OF SERVICE (DOS)
DATA THEFT/MANIPULATION


4. LOCAL FILE INCLUSION
LOCAL FILE INCLUSION (LFI) IS WHEN YOU HAVE THE ABILITY TO BROWSE THROUGH THE SERVER BY MEANS OF DIRECTORY TRANSVERSAL. ONE OF THE MOST COMMON USES OF LFI IS TO DISCOVER THE /ETC/PASSWD FILE. THIS FILE CONTAINS THE USER INFORMATION OF A LINUX SYSTEM. HACKERS FIND SITES VULNERABLE TO LFI THE SAME WAY I DISCUSSED FOR RFI’S.
LET’S SAY A HACKER FOUND A VULNERABLE SITE, WWW.TARGET-SITE.COM/INDEX.PHP?P=ABOUT, BY MEANS OF DIRECTORY TRANSVERSAL HE WOULD TRY TO BROWSE TO THE /ETC/PASSWD FILE:

WWW.TARGET-SITE.COM/INDEX.PHP?P= ../../../../../../../ETC/PASSWD


I WILL EXPLAIN IT IN DETAIL WITH PRACTICAL WEBSITES EXAMPLE IN LATTER SEQUENTIAL CLASSES ON WEBSITE HACKING.


5. DDOS ATTACK
SIMPLY CALLED DISTRIBUTED DENIAL OF SERVICE ATTACK. A DENIAL-OF-SERVICE ATTACK (DOS ATTACK) OR DISTRIBUTED DENIAL-OF-SERVICE ATTACK (DDOS ATTACK) IS AN ATTEMPT TO MAKE A COMPUTER RESOURCE UNAVAILABLE TO ITS INTENDED USERS. ALTHOUGH THE MEANS TO CARRY OUT, MOTIVES FOR, AND TARGETS OF A DOS ATTACK MAY VARY, IT GENERALLY CONSISTS OF THE CONCERTED EFFORTS OF A PERSON OR PEOPLE TO PREVENT AN INTERNET SITE OR SERVICE FROM FUNCTIONING EFFICIENTLY OR AT ALL, TEMPORARILY OR INDEFINITELY. IN DDOS ATTACK WE CONSUMES THE BANDWIDTH AND RESOURCES OF ANY WEBSITE AND MAKE IT UNAVAILABLE TO ITS LEGITIMATE USERS.

6.EXPLOTING VULNERABILITY
ITS NOT A NEW CATEGORY IT COMPRISES OF ABOVE FIVE CATEGORIES BUT I MENTIONED IT SEPARATELY BECAUSE THERE ARE SEVERAL EXPLOITS WHICH CANNOT BE COVERED IN THE ABOVE FIVE CATEGORIES. SO I WILL EXPLAIN THEM INDIVIDUALLY WITH EXAMPLES. THE BASIC IDEA BEHIND THIS IS THAT FIND THE VULNERABILITY IN THE WEBSITE AND EXPLOIT IT TO GET THE ADMIN OR MODERATOR PRIVILEGES SO THAT YOU CAN MANIPULATE THE THINGS EASILY.

How to get FREE Youtube Subscribers


1. Go Here
2. Create an account (free)
3. Login
4. Go to “Get Youtube Subs” under “Account Manager” and add your Youtube USERNAME
5. Go to “Youtube Subscribers” under “Earn Points”
6. Start to subscribe to other people, you will get points for doing so and you can use those points to get yourself Youtube subscribers

Download bot for this:
Now, the good thing about this is that you can bot this. I have placed an iMacros script for Firefox that will subscribe and earn points for you automatically, download the script in the thread on leakforums.

How to use the script:
1. Download iMacros addon for Firefox.
2. Download the script in the thread on leakforums.
3. Place the script "likenationYTSubs.js" in Documents/iMacros/Macros
4. Login on likenation.com and go to "Youtube Subscribers"
5. Click on the iMacros icon in firefox and double click on "likenationYTSubs.js" and set loop to 9999, click on OK.
6. Enjoy your points and use them to get youtube subs, likes and facebook likes.

Facebook OAuth Attack




Facebook OAuth is used to communicate between Applications & Facebook users, to grant additional permissions to your favorite apps. To make this possible, users have to 'allow or accept' the application request so that app can access your account information with required permissions.

As a normal Facebook user we always think that it is better than entering your Facebook credentials, we can just allow specific permissions to an app in order to make it work with your account.

Today whitehat Hacker 'Nir Goldshlager' reported 'The Hacker News' that he discovered a very critical vulnerability in Facebook's OAuth system, that allowed him to get full control over any Facebook account easily even without 'allow or accept' options.

For this purpose he hunt the flaw in a very mannered way i.e
Step 1) Understanding the OAuth URL
Step 2) Finding a way to use custom parameters in URL
Step 3) Bypassing OAuth 'Allow' button request at user end

1.) Understanding the OAuth URL

The Facebook OAuth dialog URL is something like shown below:

https://www.facebook.com/dialog/oauth/?app_id=YOUR_APP_ID&next=YOUR_REDIRECT_URL&state=YOUR_STATE_VALUE&scope=COMMA_SEPARATED_LIST_OF_PERMISSION_NAMES


Where app_id is the application ID and next parameter must contains the URL of the respective app domain only. For example app_id=2389801228 belongs to 'Texas Holdem Poker' app, So the 'next' parameter will allow only zynga.com domain (i.e next=http://zynga.com), otherwise Facebook will block that action.

2.) Finding a way to use custom parameters in URL
Goldshlager found that Facebook was allowing him to use facebook's sub domain in next parameter in the URL ie. https://beta.facebook.com/#xxx!/messages/. But '#xxx!' was not working for all browsers. After fuzzing the URL characters, he found that %23~! and %23%09! worked for all browsers.

This finding was enough to redirect user to any file or folder at Facebook domain.
Then he developed a simple Facebook application (i.e touch.facebook.com/apps/testestestte) ,which  was just to redirecting users to remote site (i.e. files.nirgoldshlager.com) with access token, where a log file was ready to store all access tokens.

3.) Bypassing OAuth 'Allow' button request at user end
Till now attacker was able to redirect user to a fake app, which was passing victim's access tokens to a 3rd party domain where attacker was logging access tokens. But the main issue was still there i.e without user interaction, app will not work. That means, one have to click 'allow' button as shown below.







So, to bypass this, he discovered that there are many built-in Facebook applications i.e 'Facebook Messenger app' that can access full permissions (read inbox, outbox, manage pages, manage ads,access to private photos, videos, etc.) from the victim's account without user interaction i.e no need to click 'allow' button.

i.e Sample Final URL :

https://www.facebook.com/connect/uiserver.php?app_id=220764691281998&next=https%3A%2F%2Ftouch.facebook.com%2F%23~!%2Fapps%2Ftestestestte%2F&display=page&fbconnect=1&method=permissions.request&response_type=token
This way attacker is now able to grab access tokens (with full permissions) of any Facebook account by just making his victims to visit a modified OAuth URL (without user interaction). This access_token will be never expired, It will expired only after the victim change his Facebook password
As a responsible bug hunter, Nir Goldshlager reported this flaw to Facebook security team few months back and now it is fixed. He was rewarded many times in bug bounty program. In January he also reported a password reset vulnerability in Facebook Employees Secure Files Transfer service


Note: This tutorial is only for Educational Purposes, I did not take any responsibility of any misuse, you will be solely responsible for any misuse that you do. Hacking email accounts is criminal activity and is punishable under cyber crime and you may get upto 40 years of imprisonment, if got caught in doing so.