- Access to the Target Machine: Ensure you have SSH access to the target machine.
- Correct Credentials: Update your scripts with the correct SSH credentials.
- Local Machine Setup: Ensure that your local machine has
scp
andssh
installed.
Your local project should have the following structure:
session_protector/
│
├── actions/
│ ├── allow_connection.sh
│ ├── kill_connection.sh
│ └── reset_creds.sh
├── garbage/
│ ├── scooby_snacks.conf
│ └── scooby_snacks.conf.enc
├── gui/
│ └── popup.py
├── monitor/
│ ├── main.sh
│ └── monitor_connections.sh
└── deploy.sh
-
Open
deploy.sh
: Make suredeploy.sh
is located in the root of thesession_protector
directory. -
Update the SSH Credentials: Replace the placeholder with your actual SSH credentials for the target machine:
TARGET_MACHINE="username@target_ip_address" # <---- replace with target credentials.
- Encryption: The
deploy.sh
script will encryptscooby_snacks.conf
before transferring files to the target machine. - Target Directory: Files will be transferred to
/var/tmp/.cache
on the target machine. - Stealth Execution: The script runs
main.sh
in the background without generating noticeable logs.
-
Navigate to
session_protector
:cd /path/to/session_protector
-
Make
deploy.sh
Executable:chmod +x deploy.sh
-
Run the Script: Execute the script to encrypt your configuration, deploy everything to the target machine, and start the session protection:
./deploy.sh
- File Encryption: The
scooby_snacks.conf
file is encrypted intoscooby_snacks.conf.enc
using AES-256-CBC encryption. - File Transfer: The entire
session_protector
directory, including the encrypted configuration file, is transferred to/var/tmp/.cache
on the target machine. - Dependency Installation: Necessary packages and libraries are installed quietly on the target machine.
- Script Execution:
main.sh
is executed in the background, starting your session protection.
After deployment, you may want to check if everything is running smoothly:
-
SSH into the Target Machine:
ssh username@target_ip_address # <---- Replace with actual credentials. Refer to deploy.sh
-
Check Processes: Ensure
main.sh
is running in the background:ps aux | grep main.sh
If needed, you can stop the scripts or make adjustments:
-
To Stop the Script: Kill the process associated with
main.sh
:pkill -f main.sh
-
To Make Adjustments: Edit the necessary files in
/var/tmp/.cache
and restartmain.sh
:./monitor/main.sh &
If you need to cover your tracks:
-
Remove All Files:
rm -rf /var/tmp/.cache
-
Clear Bash History:
history -c