Wednesday, 30 April 2014

Facebook Cookie Stealing (Ubuntu)

FaceBook Cookie Stealing using ubuntu

FaceBook Cookie Stealing using ubuntu 
HEy friends I installed Ubuntu in virtual box...so i found that facebook cookie can be steal....
so this help you to access someone's facebook on your network

Facebook send a cookie to the person login in  order to keep him signed in
so our job is to get that cookie and use it to bypass login so we can use that facebook account without user/pass.

Since im doing it from ubuntu, i need to install all the tools needed
1.Add grease monkey to firefox


2. Install the greasemonkey cookie injector script from here

3. Install ettercap

[Image: e15cjwg.png]

4. Install SSLstrip
[Image: qEZwZsY.png]

5. Install dsniff

[Image: AIqLtuX.png]

5.Install wireshark
[Image: TlEc3fF.png]



To get the cookie , we need to see the traffic on our network, this is why we need wireshark
One problem oppose, we want to see data send to/from a certain ip address , this mean you need the local ip of your target ; in this case its 192.168.1.104
Now we capture the cookie, and use it to login to facebook, this is done with greasemonkey



The attack:

Enable ip forwarding to be able to resend data that we get

[Image: Ioyk0ey.png]



Code:

to enable ip forward:
sudo sysctl -w net.ipv4.ip_forward=1
to check if done corretly:
cat /proc/sys/net/ipv4/ip_forward


 Enable ip tables to redirect the target from port 80 to 1000 for SSLstrip to work
[Image: Saa5Pwm.png]


Start SSLstrip
[Image: qhxunnF.png]


 ARPspoofing to position ourselfs between the router and the client (target)
[Image: uzXIry6.png]




[Image: Incty61.png]


Start wireshark and select an interface to start seeing the traffic
[Image: aZvaHIA.png]


 Type this in the filter, and wait for the target to login on facebook
[Image: CrEjaF0.png]


When he login, you will see this, just copy the printable text only, like i did
[Image: fo0al4c.png]


[*] Now inject the cookie in your webbrowser, go to facebook, and press ALT+C to see this input box, and past there
-grease monkey-
[Image: 1BvVcI7.png]


You can now refresh facebook, and there you go, you are logged in
[Image: GCdyiyp.png]
Source Ubunto trutials

No comments:

Post a Comment