Hi guys, I am back. And as I promised I will be bringing you a way to hack someone's facebook. You can use it for any other thing as well, not just facebook. Let's get started.
Step 1: Importing and Persistence
So if you have seen my bind shell program you will understand the persistence part
pythoncom & pyHook - for the keylogger functionality. pyHook allows us to hook the keyboard and mouse.
win32gui - is a Windows module for creating and doing other stuff with windows gui
mechanize - is so you can simulate browser functionality
subprocess - so we can execute command line commands...lol
Step 2: Sending the Keystrokes
This part I won't really explain because it is the same as my anonymous email sending program. Just check that one out for this part of the explanation if you are confused. :D
The last part though just makes sure the email has been sent successfully and then deletes the logs(evidence)....
Step 3: The Main Configuration
the fbkmain function is where the keylogger functionality is..it creates a file and then hook the keyboard and stuff....
Also first of all, it checks if the opened window to see if it is facebook and then it starts logging...
Step 4: The Keylogging
This is the function called when we hook the keyboard...it checks what key was pressed and saves it in our log file...and checks if the length of the file is 500 characters or more...then it sends the contents of the file to our email address....you can add more email addresses if you want just in case....
And now the stop function is just so it doesn't run forever and send us logs everytime...lol...so after 30 mins it closes itself...
Now the Deploy!! Muhahaha!!!
Okay, so our victim might not have all these fancy modules and python installed, so we are gonna use pyinstaller to convert it to an exe so we can easily run it on their computer
python pyinstaller.py --onefile --noconsole --ico=anyimage.ico keylogger.py
--onefile - to make it just a single executable
--noconsole - to prevent a console window from popping up
--ico - .ico image to make it more convincing
Conclusion
Thanks for taking the time to read this tutorial... I hope you enjoyed it. And I will see you next time. And I also don't take responsibility for all the stuff you do with this. It is completely up to you.
Here is the code(The pastebin paste was removed. So this is the updated link) : https://ghostbin.com/paste/nfwg2
Happy hacking!!
Wuzi out!!! :D
Comments
No Comments Exist
Be the first, drop a comment!