Update payload install location to ~/scripts/payloads/

This commit is contained in:
rpriven 2025-11-07 14:32:40 -07:00
parent a2fa5c3ae9
commit 1413c05860
Signed by: djedi
GPG key ID: D04DED574622EF45
3 changed files with 4 additions and 4 deletions

View file

@ -143,7 +143,7 @@ wfuzz, arjun, scrapy, tld, requests, fuzzywuzzy
**RustScan** - Fast port scanner
- Includes alias setup for shell
### Useful Scripts (downloaded to ~/scripts)
### Useful Scripts (downloaded to ~/scripts/payloads)
- **linpeas.sh** - Linux privilege escalation
- **jaws-enum.ps1** - Windows enumeration

View file

@ -130,7 +130,7 @@ DOCKER_TOOLS = {
},
}
# Useful Scripts - Downloaded to ~/scripts
# Useful Scripts - Downloaded to ~/scripts/payloads
USEFUL_SCRIPTS = {
"linpeas.sh": "https://github.com/carlospolop/PEASS-ng/releases/latest/download/linpeas.sh",
"jaws-enum.ps1": "https://github.com/411Hall/JAWS/raw/master/jaws-enum.ps1",

View file

@ -446,9 +446,9 @@ def download_useful_scripts(
if logger:
logger.info(f"Downloading scripts: {', '.join(scripts.keys())}")
# Create scripts directory in user's home (not /root!)
# Create scripts/payloads directory in user's home (not /root!)
home = get_home_dir()
scripts_dir = os.path.join(home, 'scripts')
scripts_dir = os.path.join(home, 'scripts', 'payloads')
ensure_directory(scripts_dir)
success_count = 0