GuidoBartoli / sherloq

An open-source digital image forensic toolset
GNU General Public License v3.0
2.63k stars 243 forks source link

How to use Sherloq? #85

Open AndreaPGITA opened 4 months ago

AndreaPGITA commented 4 months ago

I followed the procedure step by step, but I can't start Sherloq. I'm working on Trace Lab virtual machine. Can you recommend an optimal working environment for using sherloq? When I launch the command "~/.bashrc", I have this error:

<Command 'shopt' not found, did you mean: command 'shout' from deb libshout-tools Try: sudo apt install Command 'shopt' not found, did you mean: command 'shout' from deb libshout-tools Try: sudo apt install Command 'shopt' not found, did you mean: command 'shout' from deb libshout-tools Try: sudo apt install Command 'shopt' not found, did you mean: command 'shout' from deb libshout-tools Try: sudo apt install complete: command not found complete: command not found complete: command not found complete: command not found complete: command not found complete: command not found complete: command not found complete: command not found complete: command not found _comp_dequote__initialize:unset:2: no such hash table element: /usr/share/bash-completion/bash_completion:615: parse error near `&' virtualenvwrapper.user_scripts creating /home/osint/.virtualenvs/premkproject virtualenvwrapper.user_scripts creating /home/osint/.virtualenvs/postmkproject virtualenvwrapper.user_scripts creating /home/osint/.virtualenvs/initialize virtualenvwrapper.user_scripts creating /home/osint/.virtualenvs/premkvirtualenv virtualenvwrapper.user_scripts creating /home/osint/.virtualenvs/postmkvirtualenv virtualenvwrapper.user_scripts creating /home/osint/.virtualenvs/prermvirtualenv virtualenvwrapper.user_scripts creating /home/osint/.virtualenvs/postrmvirtualenv virtualenvwrapper.user_scripts creating /home/osint/.virtualenvs/predeactivate virtualenvwrapper.user_scripts creating /home/osint/.virtualenvs/postdeactivate virtualenvwrapper.user_scripts creating /home/osint/.virtualenvs/preactivate virtualenvwrapper.user_scripts creating /home/osint/.virtualenvs/postactivate virtualenvwrapper.user_scripts creating /home/osint/.virtualenvs/get_env_details

[\e]0;\u@\h: \w\a][\033[;32m]┌──([\033[1;34m]\u㉿\h[\033[;32m])-[[\033[0;1m]\w[\033[;32m]]\n[\033[;32m]└─[\033[1;34m]$[\033[0m]

GuidoBartoli commented 3 months ago

Are you referring to this OSINT VM?

If so, I honestly do not have experience on the Linux distribution provided with these Operating System and I do not know if it is Ubuntu based or not, since Sherloq has only been tested on that. Can you provide some more information about the underlying distribution?

When I launch the command "~/.bashrc", I have this error:

~/.bashrc is not a command, it is the shell script executed every time you open a bash terminal on the machine. If you are referring to the $ source ~/.bashrc step in the Installation, this is needed to enable python virtual environments in the current shell if you just installed virtualenvwrapper, but if you just open a new one, this is automatically executed from then on.

However, I added instructions in the README to use the Python built-in venv alternative to virtualenvwrapper, so maybe it's simpler that way.

AndreaPGITA commented 3 months ago

Are you referring to this OSINT VM?

If so, I honestly do not have experience on the Linux distribution provided with these Operating System and I do not know if it is Ubuntu based or not, since Sherloq has only been tested on that. Can you provide some more information about the underlying distribution?

When I launch the command "~/.bashrc", I have this error:

~/.bashrc is not a command, it is the shell script executed every time you open a bash terminal on the machine. If you are referring to the $ source ~/.bashrc step in the Installation, this is needed to enable python virtual environments in the current shell if you just installed virtualenvwrapper, but if you just open a new one, this is automatically executed from then on.

However, I added instructions in the README to use the Python built-in venv alternative to virtualenvwrapper, so maybe it's simpler that way.

Thanks GuidoBartoli, I read the new readme file, I created a virtual machine with "VirtualBox" and as S.O. I chose Ubuntu 22.04. I later updated python3 and installed pip3 and git. I followed the procedure in the readme file with Virtual Environment, but when I run the "pip install -r requirements.txt" command I get errors because it doesn't find the specific versions of some packages. of the packages that gave me this error, modify the requirements.txt file, I installed the latest versions. launching "python sherloq.py" gives me an error in the core

GuidoBartoli commented 3 months ago

I followed the procedure in the readme file with Virtual Environment, but when I run the "pip install -r requirements.txt" command I get errors because it doesn't find the specific versions of some packages.

Can you please report the error messages you are receiving?