Skip to content

Commit

Permalink
fixed syntax errors in sh file
Browse files Browse the repository at this point in the history
  • Loading branch information
Arsen A. Gutsal committed Jan 18, 2017
1 parent b35eedd commit a38da1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sniper
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function loot {
rm -f $LOOT_DIR/.fuse_* 2> /dev/null
echo -e "$OKORANGE + -- --=[Starting Metasploit service...$RESET"
/etc/init.d/metasploit start 2> /dev/null
if [ -z $DISABLE_POSTGRESQL ]; then /etc/init.d/postgresql start 2> /dev/null
if [ -z $DISABLE_POSTGRESQL ]; then /etc/init.d/postgresql start 2> /dev/null; fi
echo -e "$OKORANGE + -- --=[Importing NMap XML files into Metasploit...$RESET"
msfconsole -x "workspace -a $WORKSPACE; workspace $WORKSPACE; db_import $LOOT_DIR/nmap/nmap*.xml; hosts; services; exit;"
echo -e "$OKORANGE + -- --=[Copying loot to workspace: $WORKSPACE...$RESET"
Expand Down Expand Up @@ -667,7 +667,7 @@ else
nmap -sU -T5 -p U:$OPT1 --open $TARGET
fi

if [ -z $DISABLE_POSTGRESQL ]; then service postgresql start
if [ -z $DISABLE_POSTGRESQL ]; then service postgresql start; fi

echo ""
echo -e "$OKGREEN + -- ----------------------------=[Running Intrusive Scans]=----------------- -- +$RESET"
Expand Down

0 comments on commit a38da1e

Please sign in to comment.