Skip to content
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
23 changes: 23 additions & 0 deletions key.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

# SkeletonKey wrapper script
# This script activates the virtual environment and runs SkeletonKey

SKELETON_DIR="$HOME/.SkeletonKey"

# Check if SkeletonKey directory exists
if [ ! -d "$SKELETON_DIR" ]; then
echo "Error: SkeletonKey not found at $SKELETON_DIR"
exit 1
fi

# Check if virtual environment exists
if [ ! -d "$SKELETON_DIR/venv" ]; then
echo "Error: Virtual environment not found. Please reinstall SkeletonKey."
exit 1
fi

# Activate virtual environment and run SkeletonKey
cd "$SKELETON_DIR"
source venv/bin/activate
python main.py "$@"
11 changes: 10 additions & 1 deletion mods/bits.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,16 @@
# Variables
username = getpass.getuser() # Get username
header = Fore.RED + f'{username}' + Fore.WHITE + '@' + Fore.RED + 'SkeletonKey $ ' + Fore.RESET # header for user input
local_path = f'/home/{username}/.SkeletonKey' if username != 'root' else '/root/.SkeletonKey' # local path to skelkey

# Cross-platform path detection
if os.name == 'posix': # Unix-like systems (Linux, macOS)
if sys.platform == 'darwin': # macOS
local_path = f'/Users/{username}/.SkeletonKey' if username != 'root' else '/var/root/.SkeletonKey'
else: # Linux and other Unix systems
local_path = f'/home/{username}/.SkeletonKey' if username != 'root' else '/root/.SkeletonKey'
else: # Windows
local_path = f'C:\\Users\\{username}\\.SkeletonKey'

cipher = f'{local_path}/ciphers/' # local path to ciphers

# Colors
Expand Down