Skip to content

error( #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
xxx7468833t opened this issue Oct 29, 2021 · 9 comments
Open

error( #6

xxx7468833t opened this issue Oct 29, 2021 · 9 comments

Comments

@xxx7468833t
Copy link

hay man, i'm doing all like u write but got an error about pyxhook, but i install it.

$ python keylogger.py
Traceback (most recent call last):
File "keylogger.py", line 5, in
import pyxhook
ImportError: No module named pyxhook

use kali

@Sirius-Black4
Copy link
Owner

Sirius-Black4 commented Oct 29, 2021

Yes, this means the module 'pyxhook' is missing. pyxhook is a library that allows you to listen for keyboard events and is necessary for this program to work.
The following steps is required to be followed to get module pyxhook.
Open terminal and type pip install pyxhook (if it dosnt work download this module manually like i did).
Link to get pyxhook manually is - https://github.com/JeffHoogland/pyxhook .

@Sirius-Black4
Copy link
Owner

Follow the steps here. There are 3 modules required for it to work.
All 3 modules are mentioned here - https://github.com/Sirius-Black4/keylogger#setup
They are pyxhook, os, and smtplib. Depending on your linux version run the command to install these 3 modules. To install them you can use 'pip'. pip is the package manager for the Python coding language. It can be installed on a Linux system and then used on the command line to download and install Python packages and their requisite dependencies. To get pip on Kali you can follow the instructions here - https://linuxconfig.org/how-to-install-pip-on-kali-linux .
On the console type pip install pyxhook pip install os and pip install smtplib .
Now all your modules are installed and you can execute the keylogger successfully.
If you run into problems on the send_email.py it is usually because you haven't filled in the contents of your email and other stuff.

@Sirius-Black4 Sirius-Black4 pinned this issue Oct 29, 2021
@Sirius-Black4 Sirius-Black4 unpinned this issue Oct 29, 2021
@xxx7468833t
Copy link
Author

when i trying pip install os and pip install smtplib i got this

┌──(root💀xxx)-[/opt]
└─# pip install os
ERROR: Could not find a version that satisfies the requirement os
ERROR: No matching distribution found for os

┌──(root💀xxx)-[/opt]
└─# pip install smtplib 1 ⨯
ERROR: Could not find a version that satisfies the requirement smtplib
ERROR: No matching distribution found for smtplib

@xxx7468833t
Copy link
Author

can't find any answer in google( could u help me please

@Sirius-Black4
Copy link
Owner

Sirius-Black4 commented Oct 30, 2021

Does pip install pyxhook work?
pip install os and pip install smtplib gives the same error to me also, but pip install pyxhook works for me.
This not a major issue, i thin the problem is that smtplib and os modules are already built-in python. so running pip install os and pip install smtplib isnt necessary. If you can install pyxhook that more than enough.
image

@xxx7468833t
Copy link
Author

i've dot answer like this

┌──(root💀xxx)-[/opt]
└─# pip install pyxhook
Requirement already satisfied: pyxhook in /usr/local/lib/python3.9/dist-packages (1.0.0)
Requirement already satisfied: python-xlib in /usr/local/lib/python3.9/dist-packages (from pyxhook) (0.31)
Requirement already satisfied: six>=1.10.0 in /usr/lib/python3/dist-packages (from python-xlib->pyxhook) (1.16.0)

@xxx7468833t
Copy link
Author

──(root💀xxx)-[/opt]
└─# cd keylogger-python

┌──(root💀xxx)-[/opt/keylogger-python]
└─# python keylogger.py
Traceback (most recent call last):
File "keylogger.py", line 5, in
import pyxhook
ImportError: No module named pyxhook

@Sirius-Black4
Copy link
Owner

Sirius-Black4 commented Oct 31, 2021

Try putting this zip file in the same folder as keylogger.py and make sure to extract the zip file.
pyxhook.zip
(Hope it helps).

@xxx7468833t
Copy link
Author

now i've got same error and got new

┌──(root💀xxx)-[/opt/keylogger-python]
└─# ls
keylogger.py LICENSE pyxhook.py README.md send_email.py

┌──(root💀xxx)-[/opt/keylogger-python]
└─# python keylogger.py
Traceback (most recent call last):
File "keylogger.py", line 5, in
import pyxhook
File "/opt/keylogger-python/pyxhook.py", line 42, in
from Xlib import X, XK, display
ImportError: No module named Xlib

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants