Sn1per by 1N3CrowdShield
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
## CHANGELOG:
|
||||
* v2.5a - Added auto-updates to check and download new versions
|
||||
* v2.5a - Fixed issue with install.sh to resolve pip aha error
|
||||
* v2.5a - Added libxml2-utils to install.sh to meet dependencies
|
||||
* v2.5 - Added HTML report generation via sniper 'loot' command
|
||||
* v2.5 - Added automatic NMap searchsploit integration to find exploits
|
||||
* v2.5 - Added various improvements to Sn1per discovery scan mode
|
||||
|
||||
@@ -36,8 +36,8 @@ cp -Rf $PWD/* $INSTALL_DIR
|
||||
cd $INSTALL_DIR
|
||||
|
||||
echo -e "$OKORANGE + -- --=[Installing package dependencies...$RESET"
|
||||
apt-get install ruby rubygems python dos2unix zenmap sslyze arachni rpcbind uniscan xprobe2 cutycapt unicornscan waffit host whois dirb dnsrecon curl nmap php php-curl hydra iceweasel wpscan sqlmap nbtscan enum4linux cisco-torch metasploit-framework theharvester dnsenum nikto smtp-user-enum whatweb sslscan amap
|
||||
pip install dnspython colorama tldextract urllib3 ipaddress aha
|
||||
apt-get install ruby rubygems python dos2unix zenmap sslyze arachni aha libxml2-utils rpcbind uniscan xprobe2 cutycapt unicornscan waffit host whois dirb dnsrecon curl nmap php php-curl hydra iceweasel wpscan sqlmap nbtscan enum4linux cisco-torch metasploit-framework theharvester dnsenum nikto smtp-user-enum whatweb sslscan amap
|
||||
pip install dnspython colorama tldextract urllib3 ipaddress
|
||||
|
||||
echo -e "$OKORANGE + -- --=[Installing gem dependencies...$RESET"
|
||||
gem install rake
|
||||
|
||||
27
sniper
27
sniper
@@ -81,7 +81,7 @@
|
||||
## SAMPLE REPORT:
|
||||
# https://gist.github.com/1N3/8214ec2da2c91691bcbc
|
||||
|
||||
VER="2.5"
|
||||
VER="2.5a"
|
||||
TARGET="$1"
|
||||
MODE="$2"
|
||||
OPT1="$3"
|
||||
@@ -120,8 +120,30 @@ FULLNMAPSCAN="1"
|
||||
# DEFAULT IS "1" (ENABLED)
|
||||
GOOHAK="1"
|
||||
|
||||
# ENABLE AUTO UPDATES
|
||||
# DEFAULT IS "1" (ENABLED)
|
||||
ENABLE_AUTO_UPDATES="1"
|
||||
|
||||
cd $INSTALL_DIR
|
||||
|
||||
function check_update {
|
||||
if [ "$ENABLE_AUTO_UPDATES" = "1" ]; then
|
||||
echo -e "$OKBLUE + -- --=[Checking for updates...$RESET"
|
||||
LATEST_VER="$(curl -s https://crowdshield.com/.injectx/sniper_ver.txt)"
|
||||
if [ "$LATEST_VER" != "$VER" ]; then
|
||||
echo -e "$OKRED + -- --=[Sn1per $LATEST_VER is available to download... Do you want to update? (y or n)$RESET"
|
||||
read ans
|
||||
if [ "$ans" = "y" ]; then
|
||||
rm -Rf /tmp/Sn1per/ 2>/dev/null
|
||||
git clone https://github.com/1N3/Sn1per /tmp/Sn1per/
|
||||
bash /tmp/Sn1per/install.sh
|
||||
rm -Rf /tmp/Sn1per/ 2>/dev/null
|
||||
exit
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
function init {
|
||||
mkdir -p $LOOT_DIR 2> /dev/null
|
||||
mkdir $LOOT_DIR/domains 2> /dev/null
|
||||
@@ -260,6 +282,9 @@ fi
|
||||
# INITILIZE()
|
||||
init
|
||||
|
||||
# CHECK FOR UPDATES
|
||||
check_update
|
||||
|
||||
if [ "$MODE" = "report" ]; then
|
||||
sniper $TARGET | tee $LOOT_DIR/sniper-$TARGET-`date +%Y%m%d%H%M`.txt 2>&1
|
||||
exit
|
||||
|
||||
Reference in New Issue
Block a user