Login Register




The stories and information posted here are artistic works of fiction and falsehood. Only a fool would take anything posted here as fact.


[MITM]FaceBook Cookie Stealing On Linux filter_list
Author
Message
[MITM]FaceBook Cookie Stealing On Linux #1
Here is how to access someone's facebook on your network

Facebook send a cookie to the person loggin in 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, here they are:

______________________________________________________________________________________

Gather your tools:

[*] Add grease monkey to firefox

[*] Install the greasemonkey cookie injector script from here
Spoiler:
Copy and past the javascript and save it as Snipa@HackCommunity.user.js
Spoiler: image
[Image: decff8a639.jpg]
To install the script just drag and drop it in your firefox page
Spoiler: image
[Image: f3cec884cc.png]
A box will pop up to install the script just click install
Spoiler: image
[Image: 5bb2e89ff4.png]
(note that greasemonkey should be enabled and you need to restart firefox in order to work)


[*] Install ettercap
Spoiler:
[Image: e15cjwg.png]



[*] Install SSLstrip
Spoiler:
[Image: qEZwZsY.png]



[*] Install dsniff
Spoiler:
[Image: AIqLtuX.png]



[*] Install wireshark
Spoiler:
[Image: TlEc3fF.png]

______________________________________________________________________________________


Explanation:

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
Spoiler:
[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
Spoiler:
[Image: Saa5Pwm.png]




[*] Start SSLstrip
Spoiler:
[Image: qhxunnF.png]




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



[Image: Incty61.png]




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




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




[*] When he login, you will see this, just copy the printable text only, like i did
Spoiler:
[Image: owxX84b.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-
Spoiler:
[Image: 1BvVcI7.png]




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



______________________________________________________________________________________


Note : This is a Man In The Middle Attack (MITM) example, done on my personal facebook account, on my network, HackCommunity don't take resposability due to what you do with informations you got from this tutorial.
[Image: fa00a00749.jpg]

Staff will never ever ask you for your personal information.
We know everything about you anyway.

Bonus

Reply





Messages In This Thread
[MITM]FaceBook Cookie Stealing On Linux - by Snipa - 05-03-2013, 10:08 PM