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

Update README.md and install-tools.sh #73

Open
wants to merge 7 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ The majority of OSINT tools no longer come pre-packaged with the VM. There is an

**Domains**
* [Domainfy (OSRFramework)](https://github.com/i3visio/osrframework)
* [Pdlist](https://github.com/gnebbia/pdlist)
* [Sublist3r](https://github.com/aboul3la/Sublist3r)

**Downloaders**
Expand Down Expand Up @@ -108,6 +109,7 @@ The majority of OSINT tools no longer come pre-packaged with the VM. There is an
* [Sherlock](https://github.com/sherlock-project/sherlock)
* [Shodan](https://cli.shodan.io/)
* [Joplin](https://joplinapp.org/help/)
* [VS Code](https://code.visualstudio.com/docs)

## Configuration Settings
**Firefox**
Expand All @@ -118,6 +120,6 @@ The majority of OSINT tools no longer come pre-packaged with the VM. There is an
* Preload OSINT Bookmarks

## Contributing
Are you interested in the VM development? Join us on [Discord](https://discord.com/invite/tracelabs) in #osint-vm channel.
Are you interested in the VM development? Join us on [Discord](https://discord.com/invite/Rn8z2QNAD9) in #osint-vm channel.

PRs are welcome. We ask that you PR in to the Dev branch.
37 changes: 31 additions & 6 deletions overlays/tl-overlays/etc/skel/Desktop/install-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@ if [ -f "$tor_browser_dir/start-tor-browser.desktop" ]; then
fi
}



install_phoneinfoga() {
# Download and execute the PhoneInfoga installation script
bash <(curl -sSL https://raw.githubusercontent.com/sundowndev/phoneinfoga/master/support/scripts/install) || { echo "Failed to download and execute PhoneInfoga install script"; add_to_error_log "Failed to download and execute PhoneInfoga install script"; return 1; }
Expand Down Expand Up @@ -157,10 +155,36 @@ install_sn0int() {
sudo apt install sn0int -y || { echo "Failed to install sn0int"; add_to_error_log "Failed to install sn0int"; }
}

# Function to install pdlist
install_pdlist() {
sudo apt update -y || { echo "Failed to update package for pdlist"; add_to_error_log "Failed to update package for pdlist"; }
sudo apt install -y python3-venv || { echo "Failed to install python3-venv"; add_to_error_log "Failed to install python3-venv"; }
mkdir -p ~/packages/pdlist && cd ~/packages/pdlist || { echo "Failed to navigate to pdlist directory"; add_to_error_log "Failed to navigate to pdlist directory"; }
python3 -m venv pdlist-env || { echo "Failed to create vitual enviornment"; add_to_error_log "Failed to create vitual enviornment"; }
source pdlist-env/bin/activate || { echo "Failed to activate vitual enviornment"; add_to_error_log "Failed to activate vitual enviornment"; }
git clone https://github.com/gnebbia/pdlist || { echo "Failed to add pdlist to sources list"; add_to_error_log "Failed to add pdlist to sources list"; }
cd pdlist || { echo "Failed to navigate to pdlist directory"; add_to_error_log "Failed to navigate to pdlist directory"; }
pip install setuptools || { echo "Failed to install setuptools"; add_to_error_log "Failed to install setuptools"; }
pip install -r requirements.txt || { echo "Failed to install dependencies"; add_to_error_log "Failed to install dependencies"; }
python setup.py install || { echo "Failed to install pdlist"; add_to_error_log "Failed to install pdlist"; }
deactivate || { echo "Failed to deactivate vitual enviornment"; add_to_error_log "Failed to deactivate vitual enviornment"; }
echo '#!/bin/bash\nsource ~/packages/pdlist/pdlist-env/bin/activate' > ~/packages/pdlist/activate-pdlist-env.sh || { echo "Failed to create activate-pdlist-env.sh"; add_to_error_log "Failed to create activate-pdlist-env.sh"; }
chmod +x ~/packages/pdlist/activate-pdlist-env.sh || { echo "Failed to set execute permission for activate-pdlist-env.sh"; add_to_error_log "Failed to set execute permission for activate-pdlist-env.sh"; }
sudo ln -s ~/packages/pdlist/activate-pdlist-env.sh /usr/local/bin/pdlist-tool || { echo "Failed to create symlink for activate-pdlist-env.sh"; add_to_error_log "Failed to create symlink for activate-pdlist-env.sh"; }
}




# Function to install vscode
install_vscode(){
sudo apt update -y || { echo "Failed to update package for vscode"; add_to_error_log "Failed to update package for vscode"; }
sudo apt install -y libglib2.0-bin || { echo "Failed to install libglib2.0-bin"; add_to_error_log "Failed to install libglib2.0-bin"; }
sudo apt install -y software-properties-common apt-transport-https || { echo "Failed to install packages"; add_to_error_log "Failed to install packages"; }
mkdir -p ~/packages/vsocde/ && cd ~/packages/vsocde/ || { echo "Failed to navigate to vscode directory"; add_to_error_log "Failed to navigate to vscode directory"; }
wget -qO - https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg || { echo "Failed to dearmor vscode PGP"; add_to_error_log "Failed to dearmor vscode PGP"; }
sudo install -o osint -g osint -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/ || { echo "Failed to install vscode PGP to trusted.pgp.d"; add_to_error_log "Failed to install vscode PGP to trusted.pgp.d"; }
sudo sh -c "echo 'deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/vscode stable main' > /etc/apt/sources.list.d/vscode.list" || { echo "Failed to add apt vscode repository"; add_to_error_log "Failed to add apt vscode repository"; }
sudo apt update -y || { echo "Failed to update package for vscode"; add_to_error_log "Failed to update package for vscode"; }
sudo apt install -y code || { echo "Failed to install vscode"; add_to_error_log "Failed to install vscode"; }
}

# Function to update TJ Null Joplin Notebook
update_tj_null_joplin_notebook() {
Expand All @@ -184,7 +208,8 @@ install_tor_browser
install_phoneinfoga
install_python_packages
install_sn0int
install_pdlist
install_vscode
update_tj_null_joplin_notebook

display_log_contents

Loading