Skip to content

Instantly share code, notes, and snippets.

@thehappydinoa
Last active March 2, 2018 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thehappydinoa/02051a331829e38bd1a77f24c54583da to your computer and use it in GitHub Desktop.
Save thehappydinoa/02051a331829e38bd1a77f24c54583da to your computer and use it in GitHub Desktop.
#!/bin/bash
MSFRPC_USERNAME="$1"
MSFRPC_PASSWD="$2"
if [[ "$3" = */* ]]; then
MSFRPC_PATH="$3"
else
MSFRPC_PATH=$(which msfrpcd)
fi
MSFRPC_ARGS="-U $MSFRPC_USERNAME -P $MSFRPC_PASSWD -S -a 127.0.0.1"
sh $MSFRPC_PATH $MSFRPC_ARGS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment