Featured post

DDos Attack With Kali Linux [Websploit]

Hello Guys This is me Hackers Creed and Today We are going To learn  about how to create and Dos attack against Webserver with the help of ...

26 Jan 2016

How To Hack Facebook With Session Hijacking [over same network]

What is Facebook Authentication cookies
the  cookie which facebook uses to authenticate it's users is called"Datr", If an
attacker can get hold of your authentication cookies, All he needs to do is to inject those cookies in his browser and he will gain access to your account. This is how a facebook authentication cookie looks like:Cookie:
datr=1276721606-b7f94f977295759399293c5b0767618dc02111ede159a827030fc;
How To Steal Facebook Session Cookies And Hijack An Account?
An attacker can use variety of methodsin order to steal your facebook authentication cookies depending upon the network he is on, If an attacker is on a hub based network he would just sniff traffic with any packet sniffer and gain access to victims account.If an attacker is on a Switch based network he would use an ARP Poisoning request to capture authentication cookies,
If an attacker is on a wireless network he just neerds to use a simple tool called firesheep in order to capture authentication cookie and gain access to victims account.
In the example below I will be explaining how an attacker can captureyour authentication cookies and hack your facebook account with wireshark.
Step 1 -First of all download wireshark from the official website and install it.
Step 2 -Next open up wireshark click on analyze and then click on interfaces.
Step 3 -Next choose the appropriate interface and click on start.
Step 4 -Continue sniffing for around 10minutes.
Step 5 -After 10minutes stop the packet sniffing by going to the capture menu and clicking on Stop.
Step 6 -Next set the filter tohttp.cookiecontains “datr”at top left, This filter will search for all the http cookies with the name datr, And datr as we know is the name of the facebook authentication cookie.
Step 7 -Next right click on it and gotoCopy - Bytes - Printable Text only.
Step8 : Now you have to download a grease monkey addon for Firefox and then download an cookie injector script for grease monkey
[you can check this on google how to install greas monkey in Firefox]
Step 9-PressAlt Cto bring up the cookie injector, Simply paste in the cookie value into it.
Step 10 -Now refresh your page and viola you are logged in to the victims facebook account.
Note:
This Attack will only work if victim is on a http:// connection and even on https:// if end to end encryption is enabled.

No comments:

Post a Comment