From 6a20a9a574f66ea958f3c3de5dab99d625e8cbda Mon Sep 17 00:00:00 2001 From: root Date: Sun, 19 Jan 2020 18:33:06 -0700 Subject: [PATCH] Sn1per Community Edition by @xer0dayz --- CHANGELOG.md | 1 + modes/normal.sh | 2 +- sniper | 14 ++------------ sniper.conf | 2 +- 4 files changed, 5 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 03c6d26..66d629b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ * v8.1 - Removed NMap vulscan script due to F+ results * v8.1 - Fixed issue with CRT.SH sub-domain retrieval * v8.1 - Fixed "[: ==: unary operator expected" in all code +* v8.1 - Updated Sn1per Professional autoload settings * v8.1 - Updated web brute force wordlists * v8.1 - Removed null and debug errors from passive spider API output * v8.1 - Updated Commoncrawl index repo diff --git a/modes/normal.sh b/modes/normal.sh index fc806cc..935806e 100644 --- a/modes/normal.sh +++ b/modes/normal.sh @@ -1407,6 +1407,6 @@ mv $LOOT_DIR/scans/running-$TARGET-normal.txt $LOOT_DIR/scans/finished-$TARGET-n if [[ "$SLACK_NOTIFICATIONS" == "1" ]]; then /bin/bash "$INSTALL_DIR/bin/slack.sh" "[xerosecurity.com] •?((¯°·._.• Finished Sn1per scan: $TARGET [normal] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" fi -if [[ "$LOOT" = "1" ] && [ -z "$NOLOOT" ]]; then +if [[ "$LOOT" = "1" ]] && [[ -z "$NOLOOT" ]]; then loot fi \ No newline at end of file diff --git a/sniper b/sniper index 9e142c0..79499f0 100755 --- a/sniper +++ b/sniper @@ -494,23 +494,13 @@ function loot { PRE_NAME=$(echo $WORKSPACE | sed "s/\./-/g") sed -i "s/notepad/notepad-$PRE_NAME/g" "$LOOT_DIR/notes/notepad.html" 2> /dev/null fi - if [[ "$SN1PER_AUTOLOAD" = "1" ]]; then + if [[ "$SN1PER_AUTOLOAD" = "1" ]] && [[ ! -f "$INSTALL_DIR/pro/settings.php" ]]; then echo -e "$OKORANGE + -- --=[ Loading Sn1per Professional...$RESET" source $INSTALL_DIR/pro.sh $BROWSER $LOOT_DIR/sniper-report.html 2> /dev/null > /dev/null & - elif [[ "$SN1PER_AUTOLOAD" = "0" ]]; then + else echo -e "$OKORANGE + -- --=[ Generating Sn1per Professional reports...$RESET" source $INSTALL_DIR/pro.sh - else - echo -e "$OKORANGE + -- --=[ Do you want to load Sn1per Professional (y or n)? $RESET" - read ANS - if [[ "$ANS" == "y" ]]; then - echo -e "$OKORANGE + -- --=[ Loading Sn1per Professional...$RESET" - source $INSTALL_DIR/pro.sh - $BROWSER $LOOT_DIR/sniper-report.html 2> /dev/null > /dev/null & - else - echo -e "$OKORANGE + -- --=[ Skipping report generation. $RESET" - fi fi else echo -e "$OKRED + -- --=[ Sn1per Professional is not installed. To download Sn1per Professional, go to https://xerosecurity.com. $RESET" diff --git a/sniper.conf b/sniper.conf index 2822ed5..e88287d 100644 --- a/sniper.conf +++ b/sniper.conf @@ -22,7 +22,7 @@ LOOT="1" # SN1PER PROFESSIONAL SETTINGS SNIPER_PRO_CONSOLE_OUTPUT="0" -SN1PER_AUTOLOAD="0" +SN1PER_AUTOLOAD="1" MAX_HOSTS="2000" # DEFAULT BROWSER