Mirror of metasploit
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

msfvenom-dev 819B

1234567891011121314151617181920212223242526
  1. #! /bin/bash
  2. if [[ -z "$MSF_PATH" ]]; then
  3. path=`dirname $0`
  4. # check for ./docker/msfconsole.rc
  5. if [[ ! -f $path/../msfconsole.rc ]] ; then
  6. # we are not inside the project
  7. realpath --version > /dev/null 2>&1 || { echo >&2 "I couldn't find where metasploit is. Set \$MSF_PATH or execute this from the project root"; exit 1 ;}
  8. # determine script path
  9. pushd $(dirname $(realpath $0)) > /dev/null
  10. path=$(pwd)
  11. popd > /dev/null
  12. fi
  13. MSF_PATH=$(dirname $(dirname $path))
  14. fi
  15. cd $MSF_PATH
  16. if [[ -n "$MSF_BUILD" ]]; then
  17. docker-compose -f $MSF_PATH/docker-compose.yml -f $MSF_PATH/docker/docker-compose.development.override.yml build
  18. fi
  19. docker-compose -f $MSF_PATH/docker-compose.yml -f $MSF_PATH/docker/docker-compose.development.override.yml run --rm --service-ports ms ./msfvenom "$@"