Skip to content

Commit

Permalink
Add --system-site-packages for pipx install
Browse files Browse the repository at this point in the history
  • Loading branch information
qu35t-code committed Feb 22, 2024
1 parent 7a75d73 commit 80fbfa8
Show file tree
Hide file tree
Showing 16 changed files with 83 additions and 82 deletions.
3 changes: 2 additions & 1 deletion sources/assets/python/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ pycryptodomex
ldap3
blinker
future
ldapdomaindump
ldapdomaindump
impacket
68 changes: 34 additions & 34 deletions sources/install/package_ad.sh

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions sources/install/package_c2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ source package_ad.sh
function install_pwncat() {
# CODE-CHECK-WHITELIST=add-aliases
colorecho "Installing pwncat"
pipx install pwncat-cs
pipx install --system-site-packages pwncat-cs
# Because Blowfish has been deprecated, downgrade cryptography version - https://github.com/paramiko/paramiko/issues/2038
pipx inject pwncat-cs cryptography==36.0.2
add-history pwncat
Expand Down Expand Up @@ -43,7 +43,7 @@ function install_metasploit() {
function install_routersploit() {
# CODE-CHECK-WHITELIST=add-history
colorecho "Installing RouterSploit"
pipx install routersploit
pipx install --system-site-packages routersploit
pipx inject routersploit colorama
add-aliases routersploit
add-test-command "routersploit --help"
Expand Down
6 changes: 3 additions & 3 deletions sources/install/package_cloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function install_awscli() {
function install_scout() {
# CODE-CHECK-WHITELIST=add-aliases
colorecho "Installing ScoutSuite"
pipx install scoutsuite
pipx install --system-site-packages scoutsuite
add-history scout
add-test-command "scout --help"
add-to-list "scout,https://github.com/nccgroup/ScoutSuite,Scout Suite is an open source multi-cloud security-auditing tool which enables security posture assessment of cloud environments."
Expand All @@ -62,7 +62,7 @@ function install_scout() {
function install_cloudsplaining() {
# CODE-CHECK-WHITELIST=add-aliases
colorecho "Installing Cloudsplaining"
pipx install cloudsplaining
pipx install --system-site-packages cloudsplaining
add-history cloudsplaining
add-test-command "cloudsplaining --help"
add-to-list "cloudsplaining,https://github.com/salesforce/cloudsplaining,AWS IAM Security Assessment tool that identifies violations of least privilege and generates a risk-prioritized report."
Expand All @@ -81,7 +81,7 @@ function install_cloudsploit() {
function install_prowler() {
# CODE-CHECK-WHITELIST=add-aliases
colorecho "Installing Prowler"
pipx install prowler
pipx install --system-site-packages prowler
add-history prowler
add-test-command "prowler -h"
add-to-list "prowler,https://github.com/prowler-cloud/prowler,Perform Cloud Security best practices assessments / audits / incident response / compliance / continuous monitoring / hardening and forensics readiness."
Expand Down
2 changes: 1 addition & 1 deletion sources/install/package_code_analysis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function install_brakeman() {
function install_semgrep() {
# CODE-CHECK-WHITELIST=add-aliases
colorecho "Installing semgrep"
pipx install semgrep
pipx install --system-site-packages semgrep
add-history semgrep
add-test-command "semgrep --help"
add-to-list "semgrep,https://github.com/returntocorp/semgrep/,Static analysis tool that supports multiple languages and can find a variety of vulnerabilities and coding errors."
Expand Down
4 changes: 2 additions & 2 deletions sources/install/package_cracking.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function install_john() {
function install_name-that-hash() {
# CODE-CHECK-WHITELIST=add-aliases
colorecho "Installing Name-That-Hash"
pipx install name-that-hash
pipx install --system-site-packages name-that-hash
add-history name-that-hash
add-test-command "nth --help"
add-to-list "name-that-hash,https://github.com/HashPals/Name-That-Hash,Online tool for identifying hashes."
Expand All @@ -60,7 +60,7 @@ function install_haiti() {
function install_geowordlists() {
# CODE-CHECK-WHITELIST=add-aliases
colorecho "Installing GeoWordlists"
pipx install git+https://github.com/p0dalirius/GeoWordlists
pipx install --system-site-packages git+https://github.com/p0dalirius/GeoWordlists
add-history geowordlists
add-test-command "geowordlists --help"
add-to-list "geowordlists,https://github.com/p0dalirius/GeoWordlists,tool to generate wordlists of passwords containing cities at a defined distance around the client city."
Expand Down
2 changes: 1 addition & 1 deletion sources/install/package_forensic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function install_volatility2() {
function install_volatility3() {
colorecho "Installing volatility3"
git -C /opt/tools/ clone --depth 1 https://github.com/volatilityfoundation/volatility3
pipx install /opt/tools/volatility3
pipx install --system-site-packages /opt/tools/volatility3
# volatility's setup.py installs requirements from requirements-minimal.txt. Some reqs from requirements.txt are missing, injecting now
pipx inject volatility3 yara-python capstone pycryptodome
add-aliases volatility3
Expand Down
12 changes: 6 additions & 6 deletions sources/install/package_misc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function install_goshs() {
function install_shellerator() {
# CODE-CHECK-WHITELIST=add-aliases
colorecho "Installing shellerator"
pipx install git+https://github.com/ShutdownRepo/shellerator
pipx install --system-site-packages git+https://github.com/ShutdownRepo/shellerator
add-history shellerator
add-test-command "shellerator --help"
add-to-list "shellerator,https://github.com/ShutdownRepo/Shellerator,a simple command-line tool for generating shellcode"
Expand All @@ -43,15 +43,15 @@ function install_shellerator() {
function install_uberfile() {
# CODE-CHECK-WHITELIST=add-aliases
colorecho "Installing uberfile"
pipx install git+https://github.com/ShutdownRepo/uberfile
pipx install --system-site-packages git+https://github.com/ShutdownRepo/uberfile
add-history uberfile
add-test-command "uberfile --help"
add-to-list "uberfile,https://github.com/ShutdownRepo/Uberfile,Uberfile is a simple command-line tool aimed to help pentesters quickly generate file downloader one-liners in multiple contexts (wget / curl / powershell / certutil...). This project code is based on my other similar project for one-liner reverseshell generation Shellerator."
}

function install_arsenal() {
colorecho "Installing arsenal"
pipx install git+https://github.com/Orange-Cyberdefense/arsenal
pipx install --system-site-packages git+https://github.com/Orange-Cyberdefense/arsenal
add-aliases arsenal
add-history arsenal
add-test-command "arsenal --version"
Expand All @@ -61,7 +61,7 @@ function install_arsenal() {
function install_whatportis() {
# CODE-CHECK-WHITELIST=add-aliases
colorecho "Installing whatportis"
pipx install whatportis
pipx install --system-site-packages whatportis
# TODO : FIX : "port": port[1] if port[1] else "---",list index out of range - cli.py
# echo y | whatportis --update
add-history whatportis
Expand Down Expand Up @@ -131,7 +131,7 @@ function install_ngrok() {
function install_objectwalker() {
# CODE-CHECK-WHITELIST=add-aliases
colorecho "Installing objectwalker"
pipx install git+https://github.com/p0dalirius/objectwalker
pipx install --system-site-packages git+https://github.com/p0dalirius/objectwalker
add-history objectwalker
add-test-command "objectwalker --help"
add-to-list "objectwalker,https://github.com/p0dalirius/objectwalker,A python module to explore the object tree to extract paths to interesting objects in memory."
Expand All @@ -153,7 +153,7 @@ function install_tig() {
function install_yt-dlp() {
# CODE-CHECK-WHITELIST=add-aliases,add-history
colorecho "Installing yt-dlp"
pipx install git+https://github.com/yt-dlp/yt-dlp
pipx install --system-site-packages git+https://github.com/yt-dlp/yt-dlp
add-test-command "yt-dlp --help"
add-to-list "yt-dlp,https://github.com/yt-dlp/yt-dlp,A youtube-dl fork with additional features and fixes"
}
Expand Down
6 changes: 3 additions & 3 deletions sources/install/package_mobile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function install_dex2jar() {
function install_frida() {
# CODE-CHECK-WHITELIST=add-aliases
colorecho "Installing frida"
pipx install frida-tools
pipx install --system-site-packages frida-tools
add-history frida
add-test-command "frida --version"
add-to-list "frida,https://github.com/frida/frida,Dynamic instrumentation toolkit"
Expand All @@ -77,7 +77,7 @@ function install_frida() {
function install_objection() {
# CODE-CHECK-WHITELIST=add-aliases
colorecho "Installing objection"
pipx install git+https://github.com/sensepost/objection
pipx install --system-site-packages git+https://github.com/sensepost/objection
add-history objection
add-test-command "objection --help"
add-to-list "objection,https://github.com/sensepost/objection,Runtime mobile exploration"
Expand All @@ -86,7 +86,7 @@ function install_objection() {
function install_androguard() {
# CODE-CHECK-WHITELIST=add-aliases
colorecho "Installing androguard"
pipx install androguard
pipx install --system-site-packages androguard
add-history androguard
add-test-command "androguard --version"
add-to-list "androguard,https://github.com/androguard/androguard,Reverse engineering and analysis of Android applications"
Expand Down
10 changes: 5 additions & 5 deletions sources/install/package_network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function install_autorecon() {
git -C /opt/tools clone --depth 1 https://gitlab.com/kalilinux/packages/tnscmd10g.git
ln -sv /opt/tools/tnscmd10g/tnscmd10g /usr/bin/tnscmd10g
fapt dnsrecon wkhtmltopdf
pipx install git+https://github.com/Tib3rius/AutoRecon
pipx install --system-site-packages git+https://github.com/Tib3rius/AutoRecon
add-history autorecon
# test below cannot work because test runner cannot have a valid display
# add-test-command "autorecon --version"
Expand All @@ -135,7 +135,7 @@ function install_dnschef() {
function install_divideandscan() {
# CODE-CHECK-WHITELIST=add-aliases
colorecho "Installing DivideAndScan"
pipx install git+https://github.com/snovvcrash/DivideAndScan
pipx install --system-site-packages git+https://github.com/snovvcrash/DivideAndScan
add-history divideandscan
add-test-command "divideandscan --help"
add-to-list "divideandscan,https://github.com/snovvcrash/divideandscan,Advanced subdomain scanner"
Expand All @@ -155,7 +155,7 @@ function install_chisel() {
function install_sshuttle() {
# CODE-CHECK-WHITELIST=add-aliases
colorecho "Installing sshtuttle"
pipx install git+https://github.com/sshuttle/sshuttle.git
pipx install --system-site-packages git+https://github.com/sshuttle/sshuttle.git
add-history sshuttle
add-test-command "sshuttle --version"
add-to-list "sshuttle,https://github.com/sshuttle/sshuttle,Transparent proxy server that tunnels traffic through an SSH server"
Expand All @@ -179,7 +179,7 @@ function install_eaphammer() {
function install_fierce() {
# CODE-CHECK-WHITELIST=add-aliases
colorecho "Installing fierce"
pipx install git+https://github.com/mschwager/fierce
pipx install --system-site-packages git+https://github.com/mschwager/fierce
add-history fierce
add-test-command "fierce --help"
add-to-list "fierce,https://github.com/mschwager/fierce,A DNS reconnaissance tool for locating non-contiguous IP space"
Expand Down Expand Up @@ -267,7 +267,7 @@ function install_legba() {
function install_ssh-audit() {
# CODE-CHECK-WHITELIST=add-aliases
colorecho "Installing ssh-audit"
pipx install git+https://github.com/jtesta/ssh-audit
pipx install --system-site-packages git+https://github.com/jtesta/ssh-audit
add-history ssh-audit
add-test-command "ssh-audit --help"
add-to-list "ssh-audit,https://github.com/jtesta/ssh-audit,ssh-audit is a tool to test SSH server configuration for best practices."
Expand Down
22 changes: 11 additions & 11 deletions sources/install/package_osint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function install_osint_apt_tools() {
function install_youtubedl() {
# CODE-CHECK-WHITELIST=add-aliases
colorecho "Installing youtube-dl"
pipx install youtube-dl
pipx install --system-site-packages youtube-dl
add-history youtube-dl
add-test-command "youtube-dl --version"
add-to-list "youtubedl,https://github.com/ytdl-org/youtube-dl,Download videos from YouTube and other sites."
Expand All @@ -46,7 +46,7 @@ function install_youtubedl() {
function install_sublist3r() {
# CODE-CHECK-WHITELIST=add-aliases
colorecho "Installing Sublist3r"
pipx install git+https://github.com/aboul3la/Sublist3r
pipx install --system-site-packages git+https://github.com/aboul3la/Sublist3r
add-history sublist3r
add-test-command "sublist3r --help"
add-to-list "sublist3r,https://github.com/aboul3la/Sublist3r,a Python tool designed to enumerate subdomains of websites."
Expand Down Expand Up @@ -95,7 +95,7 @@ function install_findomain() {
function install_holehe() {
# CODE-CHECK-WHITELIST=add-aliases
colorecho "Installing holehe"
pipx install holehe
pipx install --system-site-packages holehe
add-history holehe
add-test-command "holehe --help"
add-to-list "holehe,https://github.com/megadose/holehe,mail osint tool finding out if it is used on websites."
Expand Down Expand Up @@ -135,7 +135,7 @@ function install_theharvester() {
function install_h8mail() {
# CODE-CHECK-WHITELIST=add-aliases
colorecho "Installing h8mail"
pipx install h8mail
pipx install --system-site-packages h8mail
add-history h8mail
add-test-command "h8mail --help"
add-to-list "h8mail,https://github.com/khast3x/h8mail,Email OSINT and breach hunting."
Expand Down Expand Up @@ -211,7 +211,7 @@ function install_phoneinfoga() {
function install_maigret() {
# CODE-CHECK-WHITELIST=add-aliases
colorecho "Installing maigret"
pipx install git+https://github.com/soxoj/maigret.git
pipx install --system-site-packages git+https://github.com/soxoj/maigret.git
add-history maigret
add-test-command "maigret --help"
add-to-list "maigret,https://github.com/soxoj/maigret,Collects information about a target email (or domain) from Google and Bing search results"
Expand All @@ -234,7 +234,7 @@ function install_linkedin2username() {
function install_toutatis() {
# CODE-CHECK-WHITELIST=add-aliases
colorecho "Installing toutatis"
pipx install git+https://github.com/megadose/toutatis
pipx install --system-site-packages git+https://github.com/megadose/toutatis
add-history toutatis
add-test-command "toutatis --help"
add-to-list "toutatis,https://github.com/megadose/Toutatis,Toutatis is a tool that allows you to extract information from instagrams accounts such as e-mails / phone numbers and more."
Expand Down Expand Up @@ -348,7 +348,7 @@ function install_finalrecon() {
function install_osrframework() {
# CODE-CHECK-WHITELIST=add-aliases
colorecho "Installing osrframework"
pipx install osrframework
pipx install --system-site-packages osrframework
pipx inject osrframework 'urllib3<2'
pipx inject osrframework 'pip==21.2'
add-history osrframework
Expand Down Expand Up @@ -407,7 +407,7 @@ function install_gron() {
function install_ignorant() {
# CODE-CHECK-WHITELIST=add-aliases
colorecho "Installing ignorant"
pipx install git+https://github.com/megadose/ignorant
pipx install --system-site-packages git+https://github.com/megadose/ignorant
add-history ignorant
add-test-command "ignorant --help"
add-to-list "ignorant,https://github.com/megadose/ignorant,holehe but for phone numbers."
Expand All @@ -420,7 +420,7 @@ function install_trevorspray() {
cd /opt/tools/TREVORspray || exit
# https://github.com/blacklanternsecurity/TREVORspray/pull/27
sed -i "s/1.0.5/1.0.4/" pyproject.toml
pipx install .
pipx install --system-site-packages .
add-history trevorspray
add-test-command "trevorspray --help"
add-to-list "trevorspray,https://github.com/blacklanternsecurity/TREVORspray,TREVORspray is a modular password sprayer with threading SSH proxying loot modules / and more"
Expand All @@ -430,7 +430,7 @@ function install_gitfive() {
# CODE-CHECK-WHITELIST=add-aliases,add-history
# GitFive only works with Python 3.10+.
colorecho "Installing GitFive"
pipx install git+https://github.com/mxrch/GitFive
pipx install --system-site-packages git+https://github.com/mxrch/GitFive
add-test-command "gitfive --help"
add-to-list "GitFive,https://github.com/mxrch/GitFive,GitFive is an OSINT tool to investigate GitHub profiles."
}
Expand Down Expand Up @@ -509,7 +509,7 @@ function install_sherlock() {
function install_censys() {
# CODE-CHECK-WHITELIST=add-aliases
colorecho "Installing Censys"
pipx install censys
pipx install --system-site-packages censys
add-history censys
add-test-command "censys --help"
add-to-list "Censys,https://github.com/censys/censys-python,An easy-to-use and lightweight API wrapper for Censys APIs"
Expand Down
2 changes: 1 addition & 1 deletion sources/install/package_sdr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function install_mousejack() {
function install_jackit() {
# CODE-CHECK-WHITELIST=add-aliases
colorecho "Installing jackit"
pipx install git+https://github.com/insecurityofthings/jackit
pipx install --system-site-packages git+https://github.com/insecurityofthings/jackit
add-history jackit
add-test-command "jackit --help"
add-to-list "jackit,https://github.com/insecurityofthings/jackit,Exploit to take over a wireless mouse and keyboard"
Expand Down
2 changes: 1 addition & 1 deletion sources/install/package_steganography.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function install_zsteg() {
function install_stegolsb() {
# CODE-CHECK-WHITELIST=add-aliases
colorecho "Installing stegolsb"
pipx install stego-lsb
pipx install --system-site-packages stego-lsb
add-history stegolsb
add-test-command "stegolsb --version"
add-to-list "stegolsb,https://github.com/KyTn/STEGOLSB,Steganography tool to hide data in BMP images using least significant bit algorithm"
Expand Down
2 changes: 1 addition & 1 deletion sources/install/package_voip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ source common.sh
function install_sipvicious() {
# CODE-CHECK-WHITELIST=add-aliases
colorecho "Installing SIPVicious"
pipx install git+https://github.com/enablesecurity/sipvicious.git
pipx install --system-site-packages git+https://github.com/enablesecurity/sipvicious.git
add-history sipvicious_svcrack
add-test-command "sipvicious_svcrack --version"
add-to-list "sipvicious,https://github.com/enablesecurity/sipvicious,Enumeration and MITM tool for SIP devices"
Expand Down
Loading

0 comments on commit 80fbfa8

Please sign in to comment.