Made some changes based on audibleblink's suggestions/comments

This commit is contained in:
Mathew Fleisch 2017-03-15 08:29:28 -07:00
parent d094d2c6e0
commit a30bd97954
2 changed files with 5 additions and 8 deletions

View File

@ -6,13 +6,10 @@ Version: 1.0
## Description
Clones the bashbunny-payloads repository and also will update an existing repository.
If you modify your payloads from the library folder, they will be overwritten.
For now, I recommend either renaming modifiied payloads
or storing them in your own forked repo and using your link/branch in the payload.
## Configuration
Configured for *nix by default. Swap RNDIS_ETHERNET with ECM_ETHERNET on Windows
Configured for nix by default. Swap RNDIS_ETHERNET with ECM_ETHERNET on Windows
## Requirements

View File

@ -47,22 +47,22 @@ fi
export GIT_SSL_NO_VERIFY=1
if [ -d ".git" ]; then
# Get the newest payloads
git pull origin $git_branch >> /tmp/git 2>> /tmp/git
git pull origin $git_branch &>> /tmp/git
LED G 200
exit 1
else
# Move the existing payloads directory, in case hackers be hackin'
mv payloads payloads-orig
# Initialize Repository
git init >> /tmp/git 2>> /tmp/git
git init &>> /tmp/git
# Let's pick the hak5 github repo
git remote add origin $git_repo >> /tmp/git 2>> /tmp/git
git remote add origin $git_repo &>> /tmp/git
# Instead of cloning the whole repo,
git config core.sparsecheckout true
# isolate the payloads directory
echo "payloads" >> .git/info/sparse-checkout
# "git clone"
git pull origin $git_branch >> /tmp/git 2>> /tmp/git
git pull origin $git_branch &>> /tmp/git
# Ignore any existing directories or files, so git status is pretty
LED R B