BadUsb Beetle Bad
An innocent looking USB which acts as a keyboard allowing the execution of (malicious) commands. Well known amongst many is the USB Rubber Ducky but in this post, it will be about BadUSB Beetle Bad.
Compiler used: Duckuino compiler
Hello world
I started with Hello World to get a kick-start of Bad beetle
Explanation of the commands: Line 1: is the keyboard library Line 4 - 8: to declare typeKey into the scope Line 13: Start Keyboard Line 16: is where the payload start Line 17 - 22: activate Windows + r key to run notepad Line 23 - 25: print "Hello World" Line 27 - 33: closes notepad program without saving Line 37: Stop the Keyboard function Line 41 - 42: Does the compiling job to end the command The delay command provides a delay/pause before executing the next step. This is quite useful as it can prevent the commands from running altogether, messing up the whole flow. The delay value varies among machines and a few commands may get missed out and ignored for short delay intervals. Delays should not be set for too long too.
Click here to retrieve the source file
Part II
The goal is to take a full screen capture of the current desktop wallpaper and change it to one without the icons.
The above works by:
Minimise all programs that were opened to capture the current wallpaper. Make the capture as convincing as possible
Access snipping tool, which will be the windows program used for this screen capture
In snipping tool program, the tab - 'new' will actually perform the full-screen capture
Save and close the snipping tool program after the capture is done
Proceed to look for the saved capture file and set it as wallpaper
Hide the desktop icons icons will still be visible but they cannot be clicked
End the command.
Click here to retrieve the source file
END
コメント