mirror of
https://github.com/hak5/bashbunny-payloads.git
synced 2025-10-29 16:58:25 +00:00
Made some changes based on audibleblink's suggestions/comments
This commit is contained in:
parent
d094d2c6e0
commit
a30bd97954
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user