Skip to content
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

No module named hexdump #6

Closed
ankit0183 opened this issue Sep 7, 2020 · 6 comments
Closed

No module named hexdump #6

ankit0183 opened this issue Sep 7, 2020 · 6 comments

Comments

@ankit0183
Copy link

after install of hex dump still showing the same error
"Traceback (most recent call last):
File "SirepRAT.py", line 47, in
import hexdump
ImportError: No module named hexdump
"

@dorazouri
Copy link
Member

after install of hex dump still showing the same error
"Traceback (most recent call last):
File "SirepRAT.py", line 47, in
import hexdump
ImportError: No module named hexdump
"

This is an external module, and as @J020203 had mentioned - pip install should do.
If it doesn't, I'd make sure you are running SirepRAT.py with the same python version of your pip as it is common to have multiple python installations. Other possible reasons might involve your PATH system variable, which you could inspect using print sys.path

@dorazouri
Copy link
Member

SirepRAT was built for python2 and will not work with python3.

pip.exe is a utility for package management for python. It is located under the PYTHON_INSTALLATION_DIR\Scripts directory.
The thing is, if you have multiple python installations on the same machine, there's a potential confusion, i.e. you install a package with the pip executable of python3, but then run your script using python2 (where the desired package is not installed).

I'm suggesting this might be the case here, and would recommend you trying to run pip with an explicit path, e.g. C:\**Python27**\Scripts\pip.exe install hexdump. Then, you should run the script using the same python version, e.g.: C:\**Python27**\python.exe SirepRAT.py.

This is just a guess but hope it helps.
Otherwise - there are countless troubleshooting articles for this general ImportError message, some involve modifying the PATH system variable.

Closing issue as this is out of the scope of this repository.

@Dxter95
Copy link

Dxter95 commented Sep 11, 2020

after running the SireRat.py they give this error
from common.mappings import SIREP_COMMANDS, RESULT_TYPE_TO_RESULT
File "/home/kali/HTB/Omni/SirepRAT/common/mappings.py", line 65, in
ResultRecordType.SystemInformation.value: results.SystemInformationResult,
AttributeError: 'int' object has no attribute 'value'

@dorazouri
Copy link
Member

dorazouri commented Sep 11, 2020

after running the SireRat.py they give this error
from common.mappings import SIREP_COMMANDS, RESULT_TYPE_TO_RESULT
File "/home/kali/HTB/Omni/SirepRAT/common/mappings.py", line 65, in
ResultRecordType.SystemInformation.value: results.SystemInformationResult,
AttributeError: 'int' object has no attribute 'value'

Please see solution in previous issue:
#2

@Dxter95
Copy link

Dxter95 commented Sep 11, 2020

i see it and fix it thank you

@dorazouri
Copy link
Member

@Dxter95 SirepRAT v2 is now committed and supports python3, for better experience with Kali! See latest code and release.

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

3 participants