This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# Example: ./unravel.sh myrepo | |
REPO=$1 | |
BRANCH="master" | |
count=0 | |
pushd $REPO | |
for commit in $(git rev-list $BRANCH | tail -r) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# If this the first time this is run, please run the following command manually: | |
# docker run --name kali -u 0 --mount type=bind,source=$PWD,target=/host -it kalilinux/kali /bin/bash | |
docker rm kali 1>/dev/null 2>/dev/null | |
docker run --name kali -u 0 --mount type=bind,source=$PWD,target=/host -it infidel/kali /bin/bash | |
echo "Committing changes..." | |
docker commit kali infidel/kali:latest 1>/dev/null | |
docker stop kali 1>/dev/null |