2021-09-01 09:13:56 -05:00
|
|
|
#!/bin/sh -ex
|
2021-03-08 17:33:32 -06:00
|
|
|
|
|
|
|
|
if [ ! -f "msfconsole" ]; then
|
|
|
|
|
echo "Missing 'msfconsole' the tool should only be run from the root of the repository.'"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
DOCKER_EXEC=`which docker`
|
|
|
|
|
|
|
|
|
|
if [ -z "$DOCKER_EXEC" ]; then
|
|
|
|
|
echo "Docker is required to run this tool."
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
IMG='metasploitframework/metasploit-framework:latest'
|
|
|
|
|
|
|
|
|
|
docker run --rm=true --tty \
|
|
|
|
|
--volume=`pwd`:/r7-source \
|
|
|
|
|
--workdir=/r7-source ${IMG} \
|
2021-09-01 09:13:56 -05:00
|
|
|
/bin/sh -c ./tools/automation/cache/build_new_cache.sh
|