Skip to content

Commit

Permalink
Version 1.2 (#2)
Browse files Browse the repository at this point in the history
* Update README with new pre-requisites and make the script capable of adding volatility to path if using zsh

* Update installer version
  • Loading branch information
Anthares101 committed Apr 2, 2021
1 parent 7e2254a commit 2c78b47
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<img alt="GitHub" src="https://img.shields.io/badge/version-v1.1-blue"> <img alt="GitHub" src="https://img.shields.io/github/license/anthares101/kali_volatility_installer">
<img alt="GitHub" src="https://img.shields.io/badge/version-v1.2-blue"> <img alt="GitHub" src="https://img.shields.io/github/license/anthares101/kali_volatility_installer">

# Kali Volatility installer

Expand All @@ -7,17 +7,21 @@ If you researched a bit, the Volatility releases are not up to date and if you w

## Disclaimer

I tested this script in Kali Linux only, it should work in all Linux distributions with Bash but you know, it is not tested ^^. Also, this script will append this line: `PATH="$HOME/volatility:$PATH"` to your `.bashrc` in order to add Volatility to your path so if you dont use Bash as your main shell you will need to add that line to the correct file (For example, if you use `zsh` add the line to your `.zshrc` file).
I tested this script in Kali Linux only, it should work in all Linux distributions with Bash but you know, it is not tested ^^. Also, this script will append this line: `PATH="$HOME/volatility:$PATH"` to your `.bashrc` and `.zshrc` in order to add Volatility to your path so if you dont use Bash or Zsh as your main shell you will need to add that line to the correct file.

# The problem for Kali Users

If you use Kali Linux, you may have noticed that you cant use `pip2` and if you use `pip` it will install the dependencies for Python 3. Volatility is affected by this because right now, it only works with Python 2 (I know they are working in a Python 3 version but is not done yet) and you need to install some dependencies with pip, which is not available, so can be a bit tricky getting the last Volatility version to work properly.

## Prerequisites

- Install `python-dev` with `sudo apt install python-dev` before executing this installer. I decided to let this step to you because you need `sudo` for it and executing a hole
script with it can be scary you know.
- Install `python-dev` with `sudo apt install python-dev` before executing this installer
- Make sure you have `python2` installed in your system. You can install it with `sudo apt install python2`
- Install pip for python 2 in your system. If `sudo apt install python-pip` is not working for you, you can try the next steps:
- `wget https://bootstrap.pypa.io/pip/2.7/get-pip.py`
- `python get-pip.py`
- Add the line `PATH="$HOME/.local/bin:$PATH"` to `.zshrc` or `.bashrc` file
- Once you hace pip for Python 2 installed run: `pip install --upgrade setuptools`

## Solution

Expand Down
3 changes: 3 additions & 0 deletions install_volatility.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ echo -ne "Add volatility to path...\t\t\t"
echo $PATH | grep -q "$HOME/volatility"
if [ $? -ne 0 ]; then
echo "PATH=\"\$HOME/volatility:\$PATH\"" >> "${HOME}/.bashrc"
if [ -f "${HOME}/.zshrc" ]; then
echo "PATH=\"\$HOME/volatility:\$PATH\"" >> "${HOME}/.zshrc"
fi
fi
printCommandResult

Expand Down

0 comments on commit 2c78b47

Please sign in to comment.