volatility icon indicating copy to clipboard operation
volatility copied to clipboard

Crypto.Hash module import error

Open sankethj opened this issue 4 years ago • 25 comments

root@kali:~/Desktop/tryhackme/vol_for# python /root/volatility/vol.py -f victim.raw --profile=Win7SP1x64 shellbags Volatility Foundation Volatility Framework 2.6.1 *** Failed to import volatility.plugins.registry.shutdown (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.getservicesids (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.timeliner (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.malware.apihooks (NameError: name 'distorm3' is not defined) *** Failed to import volatility.plugins.malware.servicediff (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.registry.userassist (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.getsids (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.registry.shellbags (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.evtlogs (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.tcaudit (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.registry.dumpregistry (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.registry.lsadump (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.malware.threads (NameError: name 'distorm3' is not defined) *** Failed to import volatility.plugins.mac.apihooks_kernel (ImportError: No module named distorm3) *** Failed to import volatility.plugins.registry.amcache (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.mac.check_syscall_shadow (ImportError: No module named distorm3) *** Failed to import volatility.plugins.malware.svcscan (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.registry.auditpol (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.ssdt (NameError: name 'distorm3' is not defined) *** Failed to import volatility.plugins.registry.registryapi (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.mac.apihooks (ImportError: No module named distorm3) *** Failed to import volatility.plugins.envars (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.registry.shimcache (ImportError: No module named Crypto.Hash) ERROR : volatility.debug : You must specify something to do (try -h)

root@kali:~/Desktop/tryhackme/vol_for# pip install pycrypto Requirement already satisfied: pycrypto in /usr/lib/python3/dist-packages (2.6.1)

I also reinstalled modules but still same error goes.

sankethj avatar Dec 26 '20 15:12 sankethj

Same.

0x0ff avatar Jan 25 '21 12:01 0x0ff

Check this. https://jaseit.com/forensics/how-to-install-volatility-2-6in-kali-2020-4/

zin-htet-aung avatar Jan 28 '21 11:01 zin-htet-aung

$ git clone https://github.com/gdabah/distorm.git cd distorm3 python setup.py build sudo python setup.py build install

sudo apt-get install yara -y wge thttps://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.6.1.tar.gz tar -xvzf pycrypto-2.6.1.tar.gz cd pycrypto-2.6.1 python setup.py build sudo python setup.py build install

innxrmxst avatar Apr 09 '21 16:04 innxrmxst

$ git clone https://github.com/gdabah/distorm.git cd distorm3 python setup.py build sudo python setup.py build install

sudo apt-get install yara -y wge thttps://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.6.1.tar.gz tar -xvzf pycrypto-2.6.1.tar.gz cd pycrypto-2.6.1 python setup.py build sudo python setup.py build install

Thanks for your solution. Now with your solution "(ImportError: No module named Crypto.Hash)" had solved. but this error not solved yet

kali@kali:~/volatility$ sudo python vol.py install Volatility Foundation Volatility Framework 2.6.1 *** Failed to import volatility.plugins.malware.apihooks (NameError: name 'distorm3' is not defined) *** Failed to import volatility.plugins.malware.threads (NameError: name 'distorm3' is not defined) *** Failed to import volatility.plugins.mac.apihooks_kernel (ImportError: No module named distorm3) *** Failed to import volatility.plugins.mac.check_syscall_shadow (ImportError: No module named distorm3) *** Failed to import volatility.plugins.ssdt (NameError: name 'distorm3' is not defined) *** Failed to import volatility.plugins.mac.apihooks (ImportError: No module named distorm3) ERROR : volatility.debug : You must specify something to do (try -h)

What should I do to run volatility without any problems?

Sayman369 avatar Apr 11 '21 00:04 Sayman369

$ git clone https://github.com/gdabah/distorm.git cd distorm3 python setup.py build sudo python setup.py build install sudo apt-get install yara -y wge thttps://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.6.1.tar.gz tar -xvzf pycrypto-2.6.1.tar.gz cd pycrypto-2.6.1 python setup.py build sudo python setup.py build install

Thanks for your solution. Now with your solution "(ImportError: No module named Crypto.Hash)" had solved. but this error not solved yet

kali@kali:~/volatility$ sudo python vol.py install Volatility Foundation Volatility Framework 2.6.1 *** Failed to import volatility.plugins.malware.apihooks (NameError: name 'distorm3' is not defined) *** Failed to import volatility.plugins.malware.threads (NameError: name 'distorm3' is not defined) *** Failed to import volatility.plugins.mac.apihooks_kernel (ImportError: No module named distorm3) *** Failed to import volatility.plugins.mac.check_syscall_shadow (ImportError: No module named distorm3) *** Failed to import volatility.plugins.ssdt (NameError: name 'distorm3' is not defined) *** Failed to import volatility.plugins.mac.apihooks (ImportError: No module named distorm3) ERROR : volatility.debug : You must specify something to do (try -h)

What should I do to run volatility without any problems?

This worked perfectly for me. Had to install the compiler for python.

joncut99 avatar Apr 13 '21 20:04 joncut99

$ git clone https://github.com/gdabah/distorm.git cd distorm3 python setup.py build sudo python setup.py build install sudo apt-get install yara -y wge thttps://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.6.1.tar.gz tar -xvzf pycrypto-2.6.1.tar.gz cd pycrypto-2.6.1 python setup.py build sudo python setup.py build install

Thanks for your solution. Now with your solution "(ImportError: No module named Crypto.Hash)" had solved. but this error not solved yet kali@kali:~/volatility$ sudo python vol.py install Volatility Foundation Volatility Framework 2.6.1 *** Failed to import volatility.plugins.malware.apihooks (NameError: name 'distorm3' is not defined) *** Failed to import volatility.plugins.malware.threads (NameError: name 'distorm3' is not defined) *** Failed to import volatility.plugins.mac.apihooks_kernel (ImportError: No module named distorm3) *** Failed to import volatility.plugins.mac.check_syscall_shadow (ImportError: No module named distorm3) *** Failed to import volatility.plugins.ssdt (NameError: name 'distorm3' is not defined) *** Failed to import volatility.plugins.mac.apihooks (ImportError: No module named distorm3) ERROR : volatility.debug : You must specify something to do (try -h) What should I do to run volatility without any problems?

This worked perfectly for me. Had to install the compiler for python.

This happend when I try install distorm

kali@kali:~/pyPackages/distorm$ python setup.py build Traceback (most recent call last): File "setup.py", line 6, in from setuptools import Extension, setup ImportError: No module named setuptools kali@kali:~/pyPackages/distorm$ sudo python setup.py build install Traceback (most recent call last): File "setup.py", line 6, in from setuptools import Extension, setup ImportError: No module named setuptools

I have already downloaded setuptools

Sayman369 avatar Apr 16 '21 00:04 Sayman369

$ git clone https://github.com/gdabah/distorm.git cd distorm3 python setup.py build sudo python setup.py build install

sudo apt-get install yara -y wge thttps://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.6.1.tar.gz tar -xvzf pycrypto-2.6.1.tar.gz cd pycrypto-2.6.1 python setup.py build sudo python setup.py build install

Thanks, buddy!

notjustanyben avatar Apr 18 '21 01:04 notjustanyben

$ git clone https://github.com/gdabah/distorm.git cd distorm3 python setup.py build sudo python setup.py build install

sudo apt-get install yara -y wge thttps://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.6.1.tar.gz tar -xvzf pycrypto-2.6.1.tar.gz cd pycrypto-2.6.1 python setup.py build sudo python setup.py build install

ss

Hi I'm trying to install volatility for testing memory image but the setup was giving errors. When I tried your method I got this. Please advise on how to proceed. Thanks :)

hack-phoenix avatar Apr 20 '21 06:04 hack-phoenix

@hack-phoenix use python3 not python2

sg-incognito avatar May 03 '21 14:05 sg-incognito

You may need to install an older version of distorm3 for python 2

markasoftware avatar Jul 04 '21 22:07 markasoftware

Hi, I just found the solution yesterday. So try to run this in the terminal

1. pip install --upgrade setuptools
2. sudo apt-get install python2-dev
3. pip2 install pycrypto && pip install distorm3

I you're already done with the crypto.hash, then on the line 3, try to run the pip2 install distorm3. But if your pip2 giving you output error: invalid command 'egg_info'. Then try to download the pip2 using this

1. curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output /tmp/get-pip.py
2. sudo python2 /tmp/get-pip.py

After that try to re-run the first 3 command to install pycrypto and distorm3

ArjunaAcchaDipa avatar Nov 13 '21 18:11 ArjunaAcchaDipa

i have same issue

Volatility Foundation Volatility Framework 2.6.1 *** Failed to import volatility.plugins.registry.shutdown (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.getservicesids (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.timeliner (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.malware.apihooks (NameError: name 'distorm3' is not defined) *** Failed to import volatility.plugins.malware.servicediff (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.registry.userassist (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.getsids (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.registry.shellbags (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.evtlogs (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.registry.shimcache (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.tcaudit (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.registry.dumpregistry (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.registry.lsadump (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.malware.threads (NameError: name 'distorm3' is not defined) *** Failed to import volatility.plugins.mac.apihooks_kernel (ImportError: No module named distorm3) *** Failed to import volatility.plugins.registry.amcache (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.mac.check_syscall_shadow (ImportError: No module named distorm3) *** Failed to import volatility.plugins.malware.svcscan (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.registry.auditpol (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.ssdt (NameError: name 'distorm3' is not defined) *** Failed to import volatility.plugins.registry.registryapi (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.mac.apihooks (ImportError: No module named distorm3) *** Failed to import volatility.plugins.envars (ImportError: No module named Crypto.Hash)

resteex0 avatar Nov 15 '21 14:11 resteex0

i have same issue

Volatility Foundation Volatility Framework 2.6.1 *** Failed to import volatility.plugins.registry.shutdown (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.getservicesids (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.timeliner (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.malware.apihooks (NameError: name 'distorm3' is not defined) *** Failed to import volatility.plugins.malware.servicediff (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.registry.userassist (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.getsids (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.registry.shellbags (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.evtlogs (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.registry.shimcache (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.tcaudit (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.registry.dumpregistry (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.registry.lsadump (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.malware.threads (NameError: name 'distorm3' is not defined) *** Failed to import volatility.plugins.mac.apihooks_kernel (ImportError: No module named distorm3) *** Failed to import volatility.plugins.registry.amcache (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.mac.check_syscall_shadow (ImportError: No module named distorm3) *** Failed to import volatility.plugins.malware.svcscan (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.registry.auditpol (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.ssdt (NameError: name 'distorm3' is not defined) *** Failed to import volatility.plugins.registry.registryapi (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.mac.apihooks (ImportError: No module named distorm3) *** Failed to import volatility.plugins.envars (ImportError: No module named Crypto.Hash)

Have you tried any of the solutions here?

ArjunaAcchaDipa avatar Nov 15 '21 15:11 ArjunaAcchaDipa

I have the same issue but with a windows machine. C:\Users\Stephen\Downloads\volatility-master\volatility-master>C:\Python27\vol.py .\git clone https://github.com/volatilityfoundation/volatility.git Volatility Foundation Volatility Framework 2.6.1 *** Failed to import volatility.plugins.registry.shutdown (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.getservicesids (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.timeliner (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.malware.apihooks (NameError: name 'distorm3' is not defined) *** Failed to import volatility.plugins.malware.servicediff (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.registry.userassist (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.getsids (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.registry.shellbags (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.evtlogs (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.tcaudit (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.registry.dumpregistry (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.registry.lsadump (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.malware.threads (NameError: name 'distorm3' is not defined) *** Failed to import volatility.plugins.mac.apihooks_kernel (ImportError: No module named distorm3) *** Failed to import volatility.plugins.registry.amcache (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.mac.check_syscall_shadow (ImportError: No module named distorm3) *** Failed to import volatility.plugins.malware.svcscan (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.registry.auditpol (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.ssdt (NameError: name 'distorm3' is not defined) *** Failed to import volatility.plugins.registry.registryapi (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.mac.apihooks (ImportError: No module named distorm3) *** Failed to import volatility.plugins.envars (ImportError: No module named Crypto.Hash) *** Failed to import volatility.plugins.registry.shimcache (ImportError: No module named Crypto.Hash) ERROR : volatility.debug : You must specify something to do (try -h)

How do i fix this please?

Stevefourier avatar Nov 16 '21 15:11 Stevefourier

This works for me to fix all the errors

Install system dependencies

sudo apt install -y build-essential git libdistorm3-dev yara libraw1394-11 libcapstone-dev capstone-tool tzdata

Install pip for Python 2

sudo apt install -y python2 python2.7-dev libpython2-dev
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
sudo python2 get-pip.py
sudo python2 -m pip install -U setuptools wheel

Install Volatility 2 and its Python dependencies

python2 -m pip install -U distorm3 yara pycrypto pillow openpyxl ujson pytz ipython capstone
sudo python2 -m pip install yara
sudo ln -s /usr/local/lib/python2.7/dist-packages/usr/lib/libyara.so /usr/lib/libyara.so
python2 -m pip install -U git+https://github.com/volatilityfoundation/volatility.git

from: https://seanthegeek.net/1172/how-to-install-volatility-2-and-volatility-3-on-debian-ubuntu-or-kali-linux/

secure-77 avatar Dec 04 '21 11:12 secure-77

Hi, I just found the solution yesterday. So try to run this in the terminal

1. pip install --upgrade setuptools
2. sudo apt-get install python2-dev
3. pip2 install pycrypto && pip install distorm3

I you're already done with the crypto.hash, then on the line 3, try to run the pip2 install distorm3. But if your pip2 giving you output error: invalid command 'egg_info'. Then try to download the pip2 using this

1. curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output /tmp/get-pip.py
2. sudo python2 /tmp/get-pip.py

After that try to re-run the first 3 command to install pycrypto and distorm3

thank you <3

phamleduy04 avatar Apr 02 '22 17:04 phamleduy04

This works for me to fix all the errors

Install system dependencies

sudo apt install -y build-essential git libdistorm3-dev yara libraw1394-11 libcapstone-dev capstone-tool tzdata

Install pip for Python 2

sudo apt install -y python2 python2.7-dev libpython2-dev
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
sudo python2 get-pip.py
sudo python2 -m pip install -U setuptools wheel

Install Volatility 2 and its Python dependencies

python2 -m pip install -U distorm3 yara pycrypto pillow openpyxl ujson pytz ipython capstone
sudo python2 -m pip install yara
sudo ln -s /usr/local/lib/python2.7/dist-packages/usr/lib/libyara.so /usr/lib/libyara.so
python2 -m pip install -U git+https://github.com/volatilityfoundation/volatility.git

from: https://seanthegeek.net/1172/how-to-install-volatility-2-and-volatility-3-on-debian-ubuntu-or-kali-linux/

Thank you :) its worked for me too

XKaguya avatar Aug 21 '22 04:08 XKaguya

Hi, I just found the solution yesterday. So try to run this in the terminal

1. pip install --upgrade setuptools
2. sudo apt-get install python2-dev
3. pip2 install pycrypto && pip install distorm3

I you're already done with the crypto.hash, then on the line 3, try to run the pip2 install distorm3. But if your pip2 giving you output error: invalid command 'egg_info'. Then try to download the pip2 using this

1. curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output /tmp/get-pip.py
2. sudo python2 /tmp/get-pip.py

After that try to re-run the first 3 command to install pycrypto and distorm3

thank you <3

thanks

cell13 avatar Aug 30 '22 02:08 cell13

This works for me to fix all the errors

Install system dependencies

sudo apt install -y build-essential git libdistorm3-dev yara libraw1394-11 libcapstone-dev capstone-tool tzdata

Install pip for Python 2

sudo apt install -y python2 python2.7-dev libpython2-dev
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
sudo python2 get-pip.py
sudo python2 -m pip install -U setuptools wheel

Install Volatility 2 and its Python dependencies

python2 -m pip install -U distorm3 yara pycrypto pillow openpyxl ujson pytz ipython capstone
sudo python2 -m pip install yara
sudo ln -s /usr/local/lib/python2.7/dist-packages/usr/lib/libyara.so /usr/lib/libyara.so
python2 -m pip install -U git+https://github.com/volatilityfoundation/volatility.git

from: https://seanthegeek.net/1172/how-to-install-volatility-2-and-volatility-3-on-debian-ubuntu-or-kali-linux/

Worked for me!

felpostorm avatar Mar 05 '23 06:03 felpostorm

thank you got it working thanks to you both: ArjunaAcchaDipa & secure-77 !!!!!!

arm72 avatar Mar 14 '23 17:03 arm72

This works for me to fix all the errors

Install system dependencies

sudo apt install -y build-essential git libdistorm3-dev yara libraw1394-11 libcapstone-dev capstone-tool tzdata

Install pip for Python 2

sudo apt install -y python2 python2.7-dev libpython2-dev
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
sudo python2 get-pip.py
sudo python2 -m pip install -U setuptools wheel

Install Volatility 2 and its Python dependencies

python2 -m pip install -U distorm3 yara pycrypto pillow openpyxl ujson pytz ipython capstone
sudo python2 -m pip install yara
sudo ln -s /usr/local/lib/python2.7/dist-packages/usr/lib/libyara.so /usr/lib/libyara.so
python2 -m pip install -U git+https://github.com/volatilityfoundation/volatility.git

from: https://seanthegeek.net/1172/how-to-install-volatility-2-and-volatility-3-on-debian-ubuntu-or-kali-linux/

listen to me! you! are! my! god!!!

Clementi11 avatar May 05 '23 07:05 Clementi11

Hey.

After consolidating all those solutions above, I built an error-free docker image to resolve all issues.

You can find the image on docker hub : oste/volatility2

Simply run:

docker run --rm oste/volatility2 volatility -h

If you care to build the image yourself, you can use the attached Dockerfile.

FROM ubuntu:22.10

RUN apt-get update \
    && DEBIAN_FRONTEND=noninteractive apt-get install -y git curl nano vim python2.7 wget pcregrep libpcre++-dev python2-dev build-essential libdistorm3-dev yara libraw1394-11 libcapstone-dev capstone-tool tzdata \
    && curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py \
    && python2 get-pip.py \
    && pip2 install pycrypto distorm3 \
    && echo 'alias volatility="python2 /opt/volatility/vol.py"' >> /root/.bashrc \
    && git clone https://github.com/volatilityfoundation/volatility.git /opt/volatility

WORKDIR /opt/volatility

ENTRYPOINT ["python2", "vol.py"]

Enjoy 😉

05t3 avatar Jul 20 '23 20:07 05t3

Hey.

After consolidating all those solutions above, I built an error-free docker image to resolve all issues.

You can find the image on docker hub : oste/volatility2

Simply run:

docker run --rm oste/volatility2 volatility -h

If you care to build the image yourself, you can use the attached Dockerfile.

FROM ubuntu:22.10

RUN apt-get update \
    && DEBIAN_FRONTEND=noninteractive apt-get install -y git curl nano vim python2.7 wget pcregrep libpcre++-dev python2-dev build-essential libdistorm3-dev yara libraw1394-11 libcapstone-dev capstone-tool tzdata \
    && curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py \
    && python2 get-pip.py \
    && pip2 install pycrypto distorm3 \
    && echo 'alias volatility="python2 /opt/volatility/vol.py"' >> /root/.bashrc \
    && git clone https://github.com/volatilityfoundation/volatility.git /opt/volatility

WORKDIR /opt/volatility

ENTRYPOINT ["python2", "vol.py"]

Enjoy 😉

let me look it around

epaphrasmakoko avatar Apr 01 '24 12:04 epaphrasmakoko

pycryptodome might be a better choice

Randark-JMT avatar Apr 03 '24 12:04 Randark-JMT