This commit is contained in:
@xer0dayz 2025-09-28 14:27:40 -04:00
commit cb4e7ceef1
7 changed files with 173 additions and 134 deletions

24
.github/workflows/semgrep.yml vendored Normal file
View File

@ -0,0 +1,24 @@
on:
workflow_dispatch: {}
pull_request: {}
push:
branches:
- main
- master
paths:
- .github/workflows/semgrep.yml
schedule:
# random HH:MM to avoid a load spike on GitHub Actions at 00:00
- cron: 2 23 * * *
name: Semgrep
jobs:
semgrep:
name: semgrep/ci
runs-on: ubuntu-20.04
env:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
container:
image: returntocorp/semgrep
steps:
- uses: actions/checkout@v3
- run: semgrep ci

View File

@ -48,13 +48,8 @@ Sn1per is a next-generation information gathering tool that provides automated,
### News ### News
- #### [Sn1per Enterprise v20231025 Released!](https://sn1persecurity.com/wordpress/sn1per-enterprise-v20231025-released/) - #### [🔐 Sn1per Enterprise v20250522 Released Next-Level Offensive Security & Vulnerability Scanning](https://sn1persecurity.com/wordpress/sn1per-enterprise-v20250522-released/)
- #### [Automated Penetration Testing Guide - Your Ultimate Resource](https://sn1persecurity.com/wordpress/penetration-testing-guide/) - #### [Sn1per SE v10.8 Now Available New Features, Tools & Enhancements!](https://sn1persecurity.com/wordpress/sn1per-scan-engine-v10-8-released/)
- #### [Dark Web Monitoring: Securing Your External Attack Surface](https://sn1persecurity.com/wordpress/dark-web-monitoring-securing-your-external-attack-surface/)
- #### [Sn1per Scan Engine v10.4 Released!](https://sn1persecurity.com/wordpress/sn1per-scan-engine-v10-4-released/)
- #### [Sn1per: The Next Generation of Tools for Security Professionals](https://sn1persecurity.com/wordpress/sn1per-the-next-generation-of-tools-for-security-professionals/)
- #### [5 Ways Sn1per Can Automate Your Security Workflow](https://sn1persecurity.com/wordpress/5-ways-sn1per-can-automate-your-security-workflow/)
- #### [External Attack Surface Management with Sn1per](https://sn1persecurity.com/wordpress/external-attack-surface-management-with-sn1per/)
- #### [Sn1per Enterprise Released!](https://sn1persecurity.com/wordpress/sn1per-enterprise-released/) - #### [Sn1per Enterprise Released!](https://sn1persecurity.com/wordpress/sn1per-enterprise-released/)
- #### [Sn1per Professional v10.0 Released!](https://sn1persecurity.com/wordpress/sn1per-professional-v10-released/) - #### [Sn1per Professional v10.0 Released!](https://sn1persecurity.com/wordpress/sn1per-professional-v10-released/)
@ -92,7 +87,7 @@ To install Sn1per using an AWS EC2 instance:
1. Run the container 1. Run the container
```bash ```bash
sudo docker run -it sn1per-kali-linux /bin/bash sudo docker run --privileged -it sn1per-kali-linux /bin/bash
``` ```
### BlackArch-based Sn1per ### BlackArch-based Sn1per
@ -106,7 +101,7 @@ To install Sn1per using an AWS EC2 instance:
1. Run the container 1. Run the container
```bash ```bash
sudo docker run -it sn1per-blackarch /bin/bash sudo docker run --privileged -it sn1per-blackarch /bin/bash
``` ```
## Usage ## Usage
@ -211,7 +206,7 @@ sniper -u|--update
- **DISCOVER:** Parses all hosts on a subnet/CIDR (ie. 192.168.0.0/16) and initiates a sniper scan against each host. Useful for internal network scans. - **DISCOVER:** Parses all hosts on a subnet/CIDR (ie. 192.168.0.0/16) and initiates a sniper scan against each host. Useful for internal network scans.
- **PORT:** Scans a specific port for vulnerabilities. Reporting is not currently available in this mode. - **PORT:** Scans a specific port for vulnerabilities. Reporting is not currently available in this mode.
- **FULLPORTONLY:** Performs a full detailed port scan and saves results to XML. - **FULLPORTONLY:** Performs a full detailed port scan and saves results to XML.
- **MASSPORTSCAN:** Runs a "fullportonly" scan on mutiple targets specified via the "-f" switch. - **MASSPORTSCAN:** Runs a "fullportonly" scan on multiple targets specified via the "-f" switch.
- **WEB:** Adds full automatic web application scans to the results (port 80/tcp & 443/tcp only). Ideal for web applications but may increase scan time significantly. - **WEB:** Adds full automatic web application scans to the results (port 80/tcp & 443/tcp only). Ideal for web applications but may increase scan time significantly.
- **MASSWEB:** Runs "web" mode scans on multiple targets specified via the "-f" switch. - **MASSWEB:** Runs "web" mode scans on multiple targets specified via the "-f" switch.
- **WEBPORTHTTP:** Launches a full HTTP web application scan against a specific host and port. - **WEBPORTHTTP:** Launches a full HTTP web application scan against a specific host and port.

View File

@ -70,16 +70,25 @@ if [[ $UBUNTU_CHECK == "DISTRIB_ID=Ubuntu" ]]; then
apt install golang apt install golang
fi fi
echo -e "$OKBLUE[*]$RESET Installing base dependencies...$RESET"
apt install -y sudo gpg curl
echo -e "$OKBLUE[*]$RESET Updating repositories... $OKBLUE[$RESET${OKGREEN}OK${RESET}$OKBLUE]$RESET"
curl -fsSL https://archive.kali.org/archive-key.asc | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/kali.gpg --yes
echo -e "$OKBLUE[*]$RESET Installing package dependencies...$RESET" echo -e "$OKBLUE[*]$RESET Installing package dependencies...$RESET"
apt update apt update
apt install -y python3-paramiko
apt install -y nfs-common apt install -y nfs-common
apt install -y nodejs apt install -y nodejs
apt install -y wafw00f apt install -y wafw00f
apt install -y xdg-utils apt install -y xdg-utils
apt install -y ruby apt install -y ruby
apt install -y rubygems apt install -y rubygems
apt install -y python apt install -y python2
apt install -y python3
apt install -y python3-paramiko
apt purge -y python3-pip
apt install -y python3-pip
apt install -y dos2unix apt install -y dos2unix
apt install -y aha apt install -y aha
apt install -y libxml2-utils apt install -y libxml2-utils
@ -90,8 +99,8 @@ apt install -y whois
apt install -y dnsrecon apt install -y dnsrecon
apt install -y curl apt install -y curl
apt install -y nmap apt install -y nmap
apt install -y php7.4 apt install -y php8.2
apt install -y php7.4-curl apt install -y php8.2-curl
apt install -y hydra apt install -y hydra
apt install -y sqlmap apt install -y sqlmap
apt install -y nbtscan apt install -y nbtscan
@ -104,9 +113,6 @@ apt install -y adb
apt install -y xsltproc apt install -y xsltproc
apt install -y ldapscripts apt install -y ldapscripts
apt install -y libssl-dev 2> /dev/null apt install -y libssl-dev 2> /dev/null
apt install -y python-pip 2> /dev/null
apt purge -y python3-pip
apt install -y python3-pip
apt install -y xmlstarlet apt install -y xmlstarlet
apt install -y net-tools apt install -y net-tools
apt install -y p7zip-full apt install -y p7zip-full
@ -119,13 +125,15 @@ apt install -y urlcrazy
apt install -y iputils-ping apt install -y iputils-ping
apt install -y enum4linux apt install -y enum4linux
apt install -y dnsutils apt install -y dnsutils
apt install -y wtmpdb
echo -e "$OKBLUE[*]$RESET Installing Metasploit...$RESET" echo -e "$OKBLUE[*]$RESET Installing Metasploit...$RESET"
rm -f /usr/share/keyrings/metasploit-framework.gpg 2> /dev/null
curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > /tmp/msfinstall curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > /tmp/msfinstall
chmod 755 /tmp/msfinstall chmod 755 /tmp/msfinstall
/tmp/msfinstall /tmp/msfinstall
pip3 install dnspython colorama tldextract urllib3 ipaddress requests pip3 install dnspython colorama tldextract urllib3 ipaddress requests --break-system-packages
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
echo -e "$OKBLUE[*]$RESET Installing gem dependencies...$RESET" echo -e "$OKBLUE[*]$RESET Installing gem dependencies...$RESET"
@ -140,7 +148,7 @@ echo -e "$OKBLUE[*]$RESET Setting up Ruby...$RESET"
dpkg-reconfigure ruby dpkg-reconfigure ruby
echo -e "$OKBLUE[*]$RESET Upgrading Pip...$RESET" echo -e "$OKBLUE[*]$RESET Upgrading Pip...$RESET"
python3 -m pip install --upgrade pip python3 -m pip install --upgrade pip --break-system-packages
echo -e "$OKBLUE[*]$RESET Cleaning up old extensions...$RESET" echo -e "$OKBLUE[*]$RESET Cleaning up old extensions...$RESET"
rm -Rf $PLUGINS_DIR 2> /dev/null rm -Rf $PLUGINS_DIR 2> /dev/null
@ -202,13 +210,13 @@ wget https://github.com/maurosoria/dirsearch/archive/refs/tags/v0.4.2.tar.gz
tar -zxvf v0.4.2.tar.gz tar -zxvf v0.4.2.tar.gz
mv dirsearch-0.4.2/ dirsearch/ mv dirsearch-0.4.2/ dirsearch/
cd dirsearch/ cd dirsearch/
pip3 install -r requirements.txt pip3 install -r requirements.txt --break-system-packages
cd $PLUGINS_DIR cd $PLUGINS_DIR
# SECRETFINDER INSTALLER # SECRETFINDER INSTALLER
echo -e "$OKBLUE[*]$RESET Installing SecretFinder...$RESET" echo -e "$OKBLUE[*]$RESET Installing SecretFinder...$RESET"
git clone https://github.com/m4ll0k/SecretFinder.git secretfinder git clone https://github.com/m4ll0k/SecretFinder.git secretfinder
pip install -r $PLUGINS_DIR/secretfinder/requirements.txt pip install -r $PLUGINS_DIR/secretfinder/requirements.txt --break-system-packages
# LINKFINDER INSTALLER # LINKFINDER INSTALLER
echo -e "$OKBLUE[*]$RESET Installing LinkFinder...$RESET" echo -e "$OKBLUE[*]$RESET Installing LinkFinder...$RESET"
@ -220,25 +228,25 @@ cd ..
# GITGRABER INSTALLER # GITGRABER INSTALLER
echo -e "$OKBLUE[*]$RESET Installing GitGrabber...$RESET" echo -e "$OKBLUE[*]$RESET Installing GitGrabber...$RESET"
git clone https://github.com/hisxo/gitGraber.git git clone https://github.com/hisxo/gitGraber.git
pip3 install -r $PLUGINS_DIR/gitGraber/requirements.txt 2> /dev/null pip3 install -r $PLUGINS_DIR/gitGraber/requirements.txt --break-system-packages 2> /dev/null
# CENSYS-SUBDOMAIN-FINDER INSTALLER # CENSYS-SUBDOMAIN-FINDER INSTALLER
echo -e "$OKBLUE[*]$RESET Installing Censys-Subdomain-Finder...$RESET" echo -e "$OKBLUE[*]$RESET Installing Censys-Subdomain-Finder...$RESET"
git clone https://github.com/christophetd/censys-subdomain-finder.git git clone https://github.com/christophetd/censys-subdomain-finder.git
pip3 install -r $PLUGINS_DIR/censys-subdomain-finder/requirements.txt pip3 install -r $PLUGINS_DIR/censys-subdomain-finder/requirements.txt --break-system-packages
# DNSCAN INSTALLER # DNSCAN INSTALLER
echo -e "$OKBLUE[*]$RESET Installing DNScan...$RESET" echo -e "$OKBLUE[*]$RESET Installing DNScan...$RESET"
git clone https://github.com/rbsec/dnscan.git git clone https://github.com/rbsec/dnscan.git
pip3 install -r $PLUGINS_DIR/dnscan/requirements.txt pip3 install -r $PLUGINS_DIR/dnscan/requirements.txt --break-system-packages
# ALTDNS INSTALLER # ALTDNS INSTALLER
echo -e "$OKBLUE[*]$RESET Installing AltDNS...$RESET" echo -e "$OKBLUE[*]$RESET Installing AltDNS...$RESET"
git clone https://github.com/infosec-au/altdns.git git clone https://github.com/infosec-au/altdns.git
cd altdns cd altdns
pip3 install -r requirements.txt pip3 install -r requirements.txt --break-system-packages
python3 setup.py install python3 setup.py install
pip3 install py-altdns pip3 install py-altdns --break-system-packages
cd .. cd ..
# MASSDNS INSTALLER # MASSDNS INSTALLER
@ -252,7 +260,7 @@ cd ..
echo -e "$OKBLUE[*]$RESET Installing DNSGen...$RESET" echo -e "$OKBLUE[*]$RESET Installing DNSGen...$RESET"
git clone https://github.com/ProjectAnte/dnsgen git clone https://github.com/ProjectAnte/dnsgen
cd dnsgen cd dnsgen
pip3 install -r requirements.txt pip3 install -r requirements.txt --break-system-packages
python3 setup.py install python3 setup.py install
cd .. cd ..
@ -265,7 +273,8 @@ nuclei
# INSTALL WEBTECH # INSTALL WEBTECH
echo -e "$OKBLUE[*]$RESET Installing WebTech...$RESET" echo -e "$OKBLUE[*]$RESET Installing WebTech...$RESET"
pip3 install -U webtech pip3 install -U webtech --break-system-packages
mkdir -p /root/.local/share/webtech
# INSTALL SUBJACK # INSTALL SUBJACK
echo -e "$OKBLUE[*]$RESET Installing SubJack...$RESET" echo -e "$OKBLUE[*]$RESET Installing SubJack...$RESET"
@ -323,6 +332,10 @@ echo -e "$OKBLUE[*]$RESET Installing Vulners...$RESET"
cd /usr/share/nmap/scripts/ cd /usr/share/nmap/scripts/
rm -f /usr/share/nmap/scripts/vulners.nse rm -f /usr/share/nmap/scripts/vulners.nse
wget https://raw.githubusercontent.com/vulnersCom/nmap-vulners/master/vulners.nse wget https://raw.githubusercontent.com/vulnersCom/nmap-vulners/master/vulners.nse
# ensure readable permissions
sudo chmod 644 /usr/share/nmap/scripts/vulners.nse
# update Nmap's script DB so --script-help and autocompletion see it
sudo nmap --script-updatedb
# GOBUSTER INSTALLER # GOBUSTER INSTALLER
echo -e "$OKBLUE[*]$RESET Installing GoBuster...$RESET" echo -e "$OKBLUE[*]$RESET Installing GoBuster...$RESET"
@ -341,11 +354,11 @@ cd ..
# H8MAIL INSTALLER # H8MAIL INSTALLER
echo -e "$OKBLUE[*]$RESET Installing H8Mail...$RESET" echo -e "$OKBLUE[*]$RESET Installing H8Mail...$RESET"
pip3 install h8mail 2> /dev/null pip3 install h8mail --break-system-packages 2> /dev/null
# CMSMAP INSTALLER # CMSMAP INSTALLER
echo -e "$OKBLUE[*]$RESET Installing CMSMap...$RESET" echo -e "$OKBLUE[*]$RESET Installing CMSMap...$RESET"
cd $PLUGINS_DIR/CMSmap/ && pip3 install . && python3 setup.py install cd $PLUGINS_DIR/CMSmap/ && pip3 install . --break-system-packages && python3 setup.py install
cd $PLUGINS_DIR cd $PLUGINS_DIR
@ -447,5 +460,8 @@ mkdir -p /usr/share/sniper/loot/workspaces/ 2> /dev/null
ln -fs /usr/share/sniper/loot/workspaces/ /home/kali/Desktop/workspaces 2> /dev/null ln -fs /usr/share/sniper/loot/workspaces/ /home/kali/Desktop/workspaces 2> /dev/null
ln -fs /usr/share/sniper/loot/workspaces/ /root/Desktop/workspaces 2> /dev/null ln -fs /usr/share/sniper/loot/workspaces/ /root/Desktop/workspaces 2> /dev/null
echo -e "$OKBLUE[*]$RESET Cleaning up installation files... $RESET"
rm -Rf /tmp/arachni* /tmp/gobuster* /tmp/msfinstall /tmp/openssl.cnf 2> /dev/null
echo -e "$OKRED[>]$RESET Done! $RESET" echo -e "$OKRED[>]$RESET Done! $RESET"
echo -e "$OKRED[>]$RESET To run, type 'sniper'! $RESET" echo -e "$OKRED[>]$RESET To run, type 'sniper'! $RESET"

View File

@ -511,7 +511,7 @@ else
echo -e "$OKRED RUNNING SMB ENUMERATION $RESET" echo -e "$OKRED RUNNING SMB ENUMERATION $RESET"
echo -e "${OKGREEN}====================================================================================${RESET}•x${OKGREEN}[`date +"%Y-%m-%d](%H:%M)"`${RESET}x•" echo -e "${OKGREEN}====================================================================================${RESET}•x${OKGREEN}[`date +"%Y-%m-%d](%H:%M)"`${RESET}x•"
enum4linux $TARGET | tee $LOOT_DIR/output/enum4linux-$TARGET-port139.txt enum4linux $TARGET | tee $LOOT_DIR/output/enum4linux-$TARGET-port139.txt
python3 $SAMRDUMP $TARGET | tee $LOOT_DIR/output/samrdump-$TARGET-port139.txt python3 /usr/share/doc/python3-impacket/examples/samrdump.py $TARGET | tee $LOOT_DIR/output/samrdump-$TARGET-port139.txt
nbtscan $TARGET | tee $LOOT_DIR/output/nbtscan-$TARGET-port139.txt nbtscan $TARGET | tee $LOOT_DIR/output/nbtscan-$TARGET-port139.txt
fi fi
if [[ "$NMAP_SCRIPTS" = "1" ]]; then if [[ "$NMAP_SCRIPTS" = "1" ]]; then
@ -616,7 +616,7 @@ else
echo -e "$OKRED ENUMERATING SMB/NETBIOS $RESET" echo -e "$OKRED ENUMERATING SMB/NETBIOS $RESET"
echo -e "${OKGREEN}====================================================================================${RESET}•x${OKGREEN}[`date +"%Y-%m-%d](%H:%M)"`${RESET}x•" echo -e "${OKGREEN}====================================================================================${RESET}•x${OKGREEN}[`date +"%Y-%m-%d](%H:%M)"`${RESET}x•"
enum4linux $TARGET | tee $LOOT_DIR/output/enum4linux-$TARGET-port445.txt enum4linux $TARGET | tee $LOOT_DIR/output/enum4linux-$TARGET-port445.txt
python3 $SAMRDUMP $TARGET | tee $LOOT_DIR/output/samrdump-$TARGET-port445.txt python3 /usr/share/doc/python3-impacket/examples/samrdump.py $TARGET | tee $LOOT_DIR/output/samrdump-$TARGET-port445.txt
nbtscan $TARGET | tee $LOOT_DIR/output/nbtscan-$TARGET-port445.txt nbtscan $TARGET | tee $LOOT_DIR/output/nbtscan-$TARGET-port445.txt
fi fi
if [[ "$NMAP_SCRIPTS" = "1" ]]; then if [[ "$NMAP_SCRIPTS" = "1" ]]; then

View File

@ -229,7 +229,7 @@ if [[ "$MODE" = "stealth" ]]; then
echo -e "${OKGREEN}====================================================================================${RESET}•x${OKGREEN}[`date +"%Y-%m-%d](%H:%M)"`${RESET}x•" echo -e "${OKGREEN}====================================================================================${RESET}•x${OKGREEN}[`date +"%Y-%m-%d](%H:%M)"`${RESET}x•"
echo -e "$OKRED FETCHING GUA URLS $RESET" echo -e "$OKRED FETCHING GUA URLS $RESET"
echo -e "${OKGREEN}====================================================================================${RESET}•x${OKGREEN}[`date +"%Y-%m-%d](%H:%M)"`${RESET}x•" echo -e "${OKGREEN}====================================================================================${RESET}•x${OKGREEN}[`date +"%Y-%m-%d](%H:%M)"`${RESET}x•"
gau -subs $TARGET | tee $LOOT_DIR/web/gua-$TARGET.txt 2> /dev/null | head -n 250 gau --subs $TARGET | tee $LOOT_DIR/web/gua-$TARGET.txt 2> /dev/null | head -n 250
fi fi
if [[ "$BLACKWIDOW" == "1" ]]; then if [[ "$BLACKWIDOW" == "1" ]]; then
echo -e "${OKGREEN}====================================================================================${RESET}•x${OKGREEN}[`date +"%Y-%m-%d](%H:%M)"`${RESET}x•" echo -e "${OKGREEN}====================================================================================${RESET}•x${OKGREEN}[`date +"%Y-%m-%d](%H:%M)"`${RESET}x•"
@ -387,7 +387,7 @@ if [[ "$MODE" = "stealth" ]]; then
echo -e "${OKGREEN}====================================================================================${RESET}•x${OKGREEN}[`date +"%Y-%m-%d](%H:%M)"`${RESET}x•" echo -e "${OKGREEN}====================================================================================${RESET}•x${OKGREEN}[`date +"%Y-%m-%d](%H:%M)"`${RESET}x•"
echo -e "$OKRED FETCHING GUA URLS $RESET" echo -e "$OKRED FETCHING GUA URLS $RESET"
echo -e "${OKGREEN}====================================================================================${RESET}•x${OKGREEN}[`date +"%Y-%m-%d](%H:%M)"`${RESET}x•" echo -e "${OKGREEN}====================================================================================${RESET}•x${OKGREEN}[`date +"%Y-%m-%d](%H:%M)"`${RESET}x•"
gau -subs $TARGET | tee $LOOT_DIR/web/gua-$TARGET.txt 2> /dev/null | head -n 250 gau --subs $TARGET | tee $LOOT_DIR/web/gua-$TARGET.txt 2> /dev/null | head -n 250
fi fi
if [[ "$BLACKWIDOW" == "1" ]]; then if [[ "$BLACKWIDOW" == "1" ]]; then
echo -e "${OKGREEN}====================================================================================${RESET}•x${OKGREEN}[`date +"%Y-%m-%d](%H:%M)"`${RESET}x•" echo -e "${OKGREEN}====================================================================================${RESET}•x${OKGREEN}[`date +"%Y-%m-%d](%H:%M)"`${RESET}x•"
@ -528,4 +528,4 @@ if [[ "$MODE" = "stealth" ]]; then
loot loot
fi fi
exit exit
fi fi

View File

@ -130,8 +130,8 @@ if [[ "$MODE" = "webscan" ]]; then
echo -e "${OKGREEN}====================================================================================${RESET}•x${OKGREEN}[`date +"%Y-%m-%d](%H:%M)"`${RESET}x•" echo -e "${OKGREEN}====================================================================================${RESET}•x${OKGREEN}[`date +"%Y-%m-%d](%H:%M)"`${RESET}x•"
echo -e "$OKRED RUNNING NUCLEI SCAN $RESET" echo -e "$OKRED RUNNING NUCLEI SCAN $RESET"
echo -e "${OKGREEN}====================================================================================${RESET}•x${OKGREEN}[`date +"%Y-%m-%d](%H:%M)"`${RESET}x•" echo -e "${OKGREEN}====================================================================================${RESET}•x${OKGREEN}[`date +"%Y-%m-%d](%H:%M)"`${RESET}x•"
nuclei -silent -t /usr/share/sniper/plugins/nuclei-templates/ -c $THREADS -target http://$TARGET -o $LOOT_DIR/web/nuclei-http-${TARGET}-port80.txt nuclei -silent -t /root/nuclei-templates/ -c $THREADS -target http://$TARGET -o $LOOT_DIR/web/nuclei-http-${TARGET}-port80.txt
nuclei -silent -t /usr/share/sniper/plugins/nuclei-templates/ -c $THREADS -target https://$TARGET -o $LOOT_DIR/web/nuclei-https-${TARGET}-port443.txt nuclei -silent -t /root/nuclei-templates/ -c $THREADS -target https://$TARGET -o $LOOT_DIR/web/nuclei-https-${TARGET}-port443.txt
fi fi
if [[ "$SC0PE_VULNERABLITY_SCANNER" == "1" ]]; then if [[ "$SC0PE_VULNERABLITY_SCANNER" == "1" ]]; then
echo -e "${OKGREEN}====================================================================================${RESET}•x${OKGREEN}[`date +"%Y-%m-%d](%H:%M)"`${RESET}x•" echo -e "${OKGREEN}====================================================================================${RESET}•x${OKGREEN}[`date +"%Y-%m-%d](%H:%M)"`${RESET}x•"
@ -162,4 +162,4 @@ if [[ "$MODE" = "webscan" ]]; then
fi fi
loot loot
exit exit
fi fi

196
sniper
View File

@ -46,101 +46,105 @@ DISTRO=$(cat /etc/*-release | grep DISTRIB_ID= | cut -d'=' -f2)
function help { function help {
logo logo
echo "" local star
echo -e "$OKBLUE[*]$RESET NORMAL MODE" printf -v star "$OKBLUE[*]$RESET"
echo ' sniper -t <TARGET>' cat <<EOHELP
echo ""
echo -e "$OKBLUE[*]$RESET SPECIFY CUSTOM CONFIG FILE" $star NORMAL MODE
echo ' sniper -c /full/path/to/sniper.conf -t <TARGET> -m <MODE> -w <WORKSPACE>' sniper -t <TARGET>
echo ""
echo -e "$OKBLUE[*]$RESET NORMAL MODE + OSINT + RECON" $star SPECIFY CUSTOM CONFIG FILE
echo ' sniper -t <TARGET> -o -re' sniper -c /full/path/to/sniper.conf -t <TARGET> -m <MODE> -w <WORKSPACE>
echo ""
echo -e "$OKBLUE[*]$RESET STEALTH MODE + OSINT + RECON" $star NORMAL MODE + OSINT + RECON
echo ' sniper -t <TARGET> -m stealth -o -re' sniper -t <TARGET> -o -re
echo ""
echo -e "$OKBLUE[*]$RESET DISCOVER MODE" $star STEALTH MODE + OSINT + RECON
echo ' sniper -t <CIDR> -m discover -w <WORSPACE_ALIAS>' sniper -t <TARGET> -m stealth -o -re
echo ""
echo -e "$OKBLUE[*]$RESET SCAN ONLY SPECIFIC PORT" $star DISCOVER MODE
echo ' sniper -t <TARGET> -m port -p <portnum>' sniper -t <CIDR> -m discover -w <WORSPACE_ALIAS>
echo ""
echo -e "$OKBLUE[*]$RESET FULLPORTONLY SCAN MODE" $star SCAN ONLY SPECIFIC PORT
echo ' sniper -t <TARGET> -fp' sniper -t <TARGET> -m port -p <portnum>
echo ""
echo -e "$OKBLUE[*]$RESET WEB MODE - PORT 80 + 443 ONLY!" $star FULLPORTONLY SCAN MODE
echo ' sniper -t <TARGET> -m web' sniper -t <TARGET> -fp
echo ""
echo -e "$OKBLUE[*]$RESET HTTP WEB PORT MODE" $star WEB MODE - PORT 80 + 443 ONLY!
echo ' sniper -t <TARGET> -m webporthttp -p <port>' sniper -t <TARGET> -m web
echo ""
echo -e "$OKBLUE[*]$RESET HTTPS WEB PORT MODE" $star HTTP WEB PORT MODE
echo ' sniper -t <TARGET> -m webporthttps -p <port>' sniper -t <TARGET> -m webporthttp -p <port>
echo ""
echo -e "$OKBLUE[*]$RESET HTTP WEBSCAN MODE" $star HTTPS WEB PORT MODE
echo ' sniper -t <TARGET> -m webscan ' sniper -t <TARGET> -m webporthttps -p <port>
echo ""
echo -e "$OKBLUE[*]$RESET ENABLE BRUTEFORCE" $star HTTP WEBSCAN MODE
echo ' sniper -t <TARGET> -b' sniper -t <TARGET> -m webscan
echo ""
echo -e "$OKBLUE[*]$RESET AIRSTRIKE MODE" $star ENABLE BRUTEFORCE
echo ' sniper -f targets.txt -m airstrike' sniper -t <TARGET> -b
echo ""
echo -e "$OKBLUE[*]$RESET NUKE MODE WITH TARGET LIST, BRUTEFORCE ENABLED, FULLPORTSCAN ENABLED, OSINT ENABLED, RECON ENABLED, WORKSPACE & LOOT ENABLED" $star AIRSTRIKE MODE
echo ' sniper -f targets.txt -m nuke -w <WORKSPACE_ALIAS>' sniper -f targets.txt -m airstrike
echo ""
echo -e "$OKBLUE[*]$RESET MASS PORT SCAN MODE" $star NUKE MODE WITH TARGET LIST, BRUTEFORCE ENABLED, FULLPORTSCAN ENABLED, OSINT ENABLED, RECON ENABLED, WORKSPACE & LOOT ENABLED
echo ' sniper -f targets.txt -m massportscan -w <WORKSPACE_ALIAS>' sniper -f targets.txt -m nuke -w <WORKSPACE_ALIAS>
echo ""
echo -e "$OKBLUE[*]$RESET MASS WEB SCAN MODE" $star MASS PORT SCAN MODE
echo ' sniper -f targets.txt -m massweb -w <WORKSPACE_ALIAS>' sniper -f targets.txt -m massportscan -w <WORKSPACE_ALIAS>
echo ""
echo -e "$OKBLUE[*]$RESET MASS WEBSCAN SCAN MODE" $star MASS WEB SCAN MODE
echo ' sniper -f targets.txt -m masswebscan -w <WORKSPACE_ALIAS>' sniper -f targets.txt -m massweb -w <WORKSPACE_ALIAS>
echo ""
echo -e "$OKBLUE[*]$RESET MASS VULN SCAN MODE" $star MASS WEBSCAN SCAN MODE
echo ' sniper -f targets.txt -m massvulnscan -w <WORKSPACE_ALIAS>' sniper -f targets.txt -m masswebscan -w <WORKSPACE_ALIAS>
echo ""
echo -e "$OKBLUE[*]$RESET PORT SCAN MODE" $star MASS VULN SCAN MODE
echo ' sniper -t <TARGET> -m port -p <PORT_NUM>' sniper -f targets.txt -m massvulnscan -w <WORKSPACE_ALIAS>
echo ""
echo -e "$OKBLUE[*]$RESET LIST WORKSPACES" $star PORT SCAN MODE
echo ' sniper --list' sniper -t <TARGET> -m port -p <PORT_NUM>
echo ""
echo -e "$OKBLUE[*]$RESET DELETE WORKSPACE" $star LIST WORKSPACES
echo ' sniper -w <WORKSPACE_ALIAS> -d' sniper --list
echo ""
echo -e "$OKBLUE[*]$RESET DELETE HOST FROM WORKSPACE" $star DELETE WORKSPACE
echo ' sniper -w <WORKSPACE_ALIAS> -t <TARGET> -dh' sniper -w <WORKSPACE_ALIAS> -d
echo ""
echo -e "$OKBLUE[*]$RESET DELETE TASKS FROM WORKSPACE" $star DELETE HOST FROM WORKSPACE
echo ' sniper -w <WORKSPACE_ALIAS> -t <TARGET> -dt' sniper -w <WORKSPACE_ALIAS> -t <TARGET> -dh
echo ""
echo -e "$OKBLUE[*]$RESET GET SNIPER SCAN STATUS" $star DELETE TASKS FROM WORKSPACE
echo ' sniper --status' sniper -w <WORKSPACE_ALIAS> -t <TARGET> -dt
echo ""
echo -e "$OKBLUE[*]$RESET LOOT REIMPORT FUNCTION" $star GET SNIPER SCAN STATUS
echo ' sniper -w <WORKSPACE_ALIAS> --reimport' sniper --status
echo ""
echo -e "$OKBLUE[*]$RESET LOOT REIMPORTALL FUNCTION" $star LOOT REIMPORT FUNCTION
echo ' sniper -w <WORKSPACE_ALIAS> --reimportall' sniper -w <WORKSPACE_ALIAS> --reimport
echo ""
echo -e "$OKBLUE[*]$RESET LOOT REIMPORT FUNCTION" $star LOOT REIMPORTALL FUNCTION
echo ' sniper -w <WORKSPACE_ALIAS> --reload' sniper -w <WORKSPACE_ALIAS> --reimportall
echo ""
echo -e "$OKBLUE[*]$RESET LOOT EXPORT FUNCTION" $star LOOT REIMPORT FUNCTION
echo ' sniper -w <WORKSPACE_ALIAS> --export' sniper -w <WORKSPACE_ALIAS> --reload
echo ""
echo -e "$OKBLUE[*]$RESET SCHEDULED SCANS" $star LOOT EXPORT FUNCTION
echo ' sniper -w <WORKSPACE_ALIAS> -s daily|weekly|monthly' sniper -w <WORKSPACE_ALIAS> --export
echo ""
echo -e "$OKBLUE[*]$RESET USE A CUSTOM CONFIG" $star SCHEDULED SCANS
echo ' sniper -c /path/to/sniper.conf -t <TARGET> -w <WORKSPACE_ALIAS>' sniper -w <WORKSPACE_ALIAS> -s daily|weekly|monthly
echo ""
echo -e "$OKBLUE[*]$RESET UPDATE SNIPER" $star USE A CUSTOM CONFIG
echo ' sniper -u|--update' sniper -c /path/to/sniper.conf -t <TARGET> -w <WORKSPACE_ALIAS>
echo ""
echo "" $star UPDATE SNIPER
sniper -u|--update
EOHELP
exit exit
} }
@ -590,7 +594,7 @@ function loot {
echo -e "$OKBLUE[$RESET${OKRED}i${RESET}$OKBLUE]$RESET $RESET" echo -e "$OKBLUE[$RESET${OKRED}i${RESET}$OKBLUE]$RESET $RESET"
echo -e "$OKBLUE[$RESET${OKRED}i${RESET}$OKBLUE]$RESET 💡 Don't miss out on important updates by using the Community version. $RESET" echo -e "$OKBLUE[$RESET${OKRED}i${RESET}$OKBLUE]$RESET 💡 Don't miss out on important updates by using the Community version. $RESET"
echo -e "$OKBLUE[$RESET${OKRED}i${RESET}$OKBLUE]$RESET $RESET" echo -e "$OKBLUE[$RESET${OKRED}i${RESET}$OKBLUE]$RESET $RESET"
echo -e "$OKBLUE[$RESET${OKRED}i${RESET}$OKBLUE]$RESET 🔝 The latest Professional version ( ${OKRED}10.5 ${RESET}) offers unparalleled features, including: $RESET" echo -e "$OKBLUE[$RESET${OKRED}i${RESET}$OKBLUE]$RESET 🔝 The latest Professional version ( ${OKRED}10.8 ${RESET}) offers unparalleled features, including: $RESET"
echo -e "$OKBLUE[$RESET${OKRED}i${RESET}$OKBLUE]$RESET $RESET" echo -e "$OKBLUE[$RESET${OKRED}i${RESET}$OKBLUE]$RESET $RESET"
echo -e "$OKBLUE[$RESET${OKRED}i${RESET}$OKBLUE]$RESET 💻 Sleek Web UI $RESET" echo -e "$OKBLUE[$RESET${OKRED}i${RESET}$OKBLUE]$RESET 💻 Sleek Web UI $RESET"
echo -e "$OKBLUE[$RESET${OKRED}i${RESET}$OKBLUE]$RESET 🛠️ Extensive add-ons $RESET" echo -e "$OKBLUE[$RESET${OKRED}i${RESET}$OKBLUE]$RESET 🛠️ Extensive add-ons $RESET"