You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
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
Trying 0.0.0
Traceback (most recent call last):
File "/home/noraj/CTF/tools/stegoVeritas/stegoveritas.py", line 70, in <module>
modules.image.run(fArray,args)
File "/home/noraj/CTF/tools/stegoVeritas/modules/image/__init__.py", line 98, in run
autoAnalysis(f,args)
File "/home/noraj/CTF/tools/stegoVeritas/modules/image/__init__.py", line 37, in autoAnalysis
modules.image.imageLSB.auto(f,args)
File "/home/noraj/CTF/tools/stegoVeritas/modules/image/imageLSB.py", line 143, in auto
testOutput(o,args)
File "/home/noraj/CTF/tools/stegoVeritas/modules/image/imageLSB.py", line 23, in testOutput
m = magic.from_buffer(b,mime=True)
AttributeError: module 'magic' has no attribute 'from_buffer'
All dependencies installed, sorry I cant share the pic.
I'm currently re-factoring the code base for this tool that will, among other things, fix the dependency issues.
In the mean time, two things to check. First, be sure you're running it with python3. And secondly, you need to install python-magic:
Yeah I was using python3 and I have python-magic installed.
PS : If you pay attention it is not an ImportError but an AttributeError, meaning the module 'magic' is imported correctly but that in this version of the lib
from_buffer
is not available. I already tried to look at
https://github.com/ahupp/python-magic
to see if in a version change,
from_buffer
was removed but they have no changelog.
On Fri, Feb 1, 2019, 3:54 AM Alexandre ZANNI ***@***.*** wrote:
Yeah I was using python3 and I have python-magic installed.
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<
#10 (comment)
>,
or mute the thread
<
https://github.com/notifications/unsubscribe-auth/AHR34LKSLnCSVxTU99CHz39cGfGh0mJVks5vJADDgaJpZM4adcnA
>
Doesn't look like you have python-magic installed. For instance, in my installs pip freeze has the following:
python-magic==0.4.15
Here with python-magic
package:
https://www.archlinux.org/packages/community/any/python-magic/
python-magic = file-magic
But that's the wrong dependency !! In fact we need python-python-magic
from blackarch repo !
And yes this time we have python-magic==0.4.15
but this is totally conflicting with the official python-magic
from arch repo:
sudo pacman -S python-python-magic
resolving dependencies...
looking for conflicting packages...
Packages (1) python-python-magic-0.4.15-1
Total Download Size: 0,01 MiB
Total Installed Size: 0,05 MiB
:: Proceed with installation? [Y/n] y
:: Retrieving packages...
python-python-magic-0.4.15-1-any 9,0 KiB 0,00B/s 00:00 [#############################################################################] 100%
(1/1) checking keys in keyring [#############################################################################] 100%
(1/1) checking package integrity [#############################################################################] 100%
(1/1) loading package files [#############################################################################] 100%
(1/1) checking for file conflicts [#############################################################################] 100%
error: failed to commit transaction (conflicting files)
python-python-magic: /usr/lib/python3.7/site-packages/__pycache__/magic.cpython-37.opt-1.pyc exists in filesystem (owned by python-magic)
python-python-magic: /usr/lib/python3.7/site-packages/__pycache__/magic.cpython-37.pyc exists in filesystem (owned by python-magic)
python-python-magic: /usr/lib/python3.7/site-packages/magic.py exists in filesystem (owned by python-magic)
Errors occurred, no packages were upgraded.
python-magic is installed like this and python-python-magic like this.
This is really a problem for packaging when two lib have exactly the same name and are doing nearly the same thing. Like libtorrent and libtorrent. So we need a disambiguation notice on the readme.
Plus this is really a problem to rely on a library that conflicts with others. I know you'll tell me that you said pip3 install python-magic
but installing package with pip is the worst idea ever. One would want to keep is system clean and only install distro package in order to avoid conflict between python distro package and pip python package on the filesystem. pip should be only use in a virtualenv.
Agree with the virtualenv, which is how I run it locally. I've pushed out the re-factored version which is a python package instead of git clone. Two methods for install:
$ pip3 install stegoveritas
$ stegoveritas_install_deps
And if you're still having dependency issues, I'd suggest running the Docker version:
$ sudo docker run -it --rm bannsec/stegoveritas
install this 1 python-magic-bin==0.4.14
I'm trying with this solution and doesn't work, get this:
ERROR: Could not find a version that satisfies the requirement python-magic-bin==0.4.14 (from versions: none)
ERROR: No matching distribution found for python-magic-bin==0.4.14