Improve spelling in index.md

pull/15/head
Matthias Braun 2020-09-08 14:39:27 +02:00 committed by GitHub
parent 8d47432c85
commit 52eeafb617
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 34 additions and 36 deletions

View File

@ -1,6 +1,6 @@
# Bash Bunny Basics # Bash Bunny Basics
The Bash Bunny by Hak5 is the worlds most advanced USB attack platform. It delivers penetration testing attacks and IT automation tasks in seconds by emulating combinations of trusted USB devices like gigabit Ethernet, serial, flash storage and keyboards. With it, computers are tricked into divulging data, exfiltrating documents, installing backdoors and many more exploits. The Bash Bunny by Hak5 is the world's most advanced USB attack platform. It delivers penetration testing attacks and IT automation tasks in seconds by emulating combinations of trusted USB devices like Gigabit Ethernet, serial, flash storage and keyboards. With it, computers are tricked into divulging data, exfiltrating documents, installing backdoors and many more exploits.
## Contributing to the Wiki ## Contributing to the Wiki
@ -11,18 +11,18 @@ All changes to the wiki can be contributed on [GitHub](https://github.com/hak5/b
### Markdown ### Markdown
- Markdown Basics: https://help.github.com/articles/markdown-basics/ - Markdown Basics: https://help.github.com/articles/markdown-basics/
- Markdown Syntax: http://daringfireball.net/projects/markdown/syntax - Markdown Syntax: https://daringfireball.net/projects/markdown/syntax
- Table Generator: http://www.tablesgenerator.com/markdown_tables - Table Generator: https://www.tablesgenerator.com/markdown_tables
## Where to get payloads ## Where to Get Payloads
Many payloads are hosted from the centralized library on the Hak5 git repository at [github.com/hak5/bashbunny-payloads](https://github.com/hak5/bashbunny-payloads). Payloads from this repository are contributed from the Bash Bunny community. As with any script downloaded from the Internet, you are advised to proceed with caution. Similarly, many community developed tools exist for working with the Bash Bunny, such as [BunnyToolkit.com](https://bunnytoolkit.com/). Many payloads are hosted from the centralized library on the Hak5 Git repository at [github.com/hak5/bashbunny-payloads](https://github.com/hak5/bashbunny-payloads). Payloads from this repository are contributed from the Bash Bunny community. As with any script downloaded from the Internet, you are advised to proceed with caution. Similarly, many community developed tools exist for working with the Bash Bunny, such as [BunnyToolkit.com](https://bunnytoolkit.com/).
**WARNING:** Community payloads come with absolutely no warranty. You are solely responsible for the outcome of their execution. **WARNING:** Community payloads come with absolutely no warranty. You are solely responsible for the outcome of their execution.
## Switch Positions ## Switch Positions
In Switch Position 3 (closest to the USB plug) the Bash Bunny will boot into _arming mode_, enabling both Serial and Mass Stoage. From this dedicated mode, Bash Bunny payloads may be managed via Mass Storage and the Linux shell can be accessed by the Serial console. In switch position 3 (closest to the USB plug) the Bash Bunny will boot into _arming mode_, enabling both Serial and Mass Storage. From this dedicated mode, Bash Bunny payloads may be managed via Mass Storage and the Linux shell can be accessed by the Serial console.
![Bash Bunny Switch Diagram](images/bb_diagram1.png) ![Bash Bunny Switch Diagram](images/bb_diagram1.png)
@ -31,13 +31,13 @@ In Switch Position 3 (closest to the USB plug) the Bash Bunny will boot into _ar
![Bash Bunny Directory Diagram](images/bb_diagram2.png) ![Bash Bunny Directory Diagram](images/bb_diagram2.png)
* /_docs_ - home to documentation. * /_docs_ - home to documentation.
* /_languages_ - install additional HID Keyboard layouts/languages. * /_languages_ - install additional HID keyboard layouts/languages.
* /_loot_ - used by payloads to store logs and other data * /_loot_ - used by payloads to store logs and other data.
* /_tools_ - used to install additional deb packages and other tools. * /_tools_ - used to install additional deb packages and other tools.
* /_payloads_ - home to active payloads, library and extensions * /_payloads_ - home to active payloads, library and extensions.
* /_payloads_/_switch1_ and _/payloads_/_switch2_ - home to payload.txt and accompanying files which will be executed on boot when the bash bunny switch is in the corresponding position. * /_payloads_/_switch1_ and _/payloads_/_switch2_ - home to payload.txt and accompanying files which will be executed on boot when the bash bunny switch is in the corresponding position.
* /_payloads_/_library_ - home to the payloads library which can be downloaded from the [Bash Bunny Payload git repository](https://github.com/hak5/bashbunny-payloads "Bash Bunny Payload git repository") * /_payloads_/_library_ - home to the payloads library which can be downloaded from the [Bash Bunny Payload Git repository](https://github.com/hak5/bashbunny-payloads "Bash Bunny Payload Git repository").
* /_payloads_/_library_/_extensions_ - home to Bunny Script extensions * /_payloads_/_library_/_extensions_ - home to Bunny Script extensions.
## Default Settings ## Default Settings
@ -58,7 +58,7 @@ In Switch Position 3 (closest to the USB plug) the Bash Bunny will boot into _ar
## Tools ## Tools
While many tools can be installed to the Bash Bunny as you would any typical Debian based Linux computer, such as *apt-get*, *git clone*, a dedicated tools folder from the mass storage partition simplifies the process. Accessible from arming mode, tools in either .deb format or entire directories can be easily copied to /tools on the root of the mass storage partition. Then on the next boot of the Bash Bunny in Arming mode, these tools will be installed - indicated by LED SETUP (Solid Magenta light). While many tools can be installed to the Bash Bunny as you would any typical Debian based Linux computer, such as *apt-get*, *git clone*, a dedicated tools folder from the mass storage partition simplifies the process. Accessible from arming mode, tools in either .deb format or entire directories can be easily copied to /tools on the root of the mass storage partition. Then on the next boot of the Bash Bunny in arming mode, these tools will be installed - indicated by LED SETUP (Solid Magenta light).
On boot into arming mode, any .deb file placed in the tools folder will be installed with dpkg. Then any remaining file or directory will be moved to /tools on the root file system. On boot into arming mode, any .deb file placed in the tools folder will be installed with dpkg. Then any remaining file or directory will be moved to /tools on the root file system.
@ -94,7 +94,7 @@ The Bash Bunny features a dedicated serial console from its _arming mode_. From
## Connecting to to the Bash Bunny Serial Console from Windows ## Connecting to to the Bash Bunny Serial Console from Windows
Find the COM# from Device Manager > Ports (COM & LPT) and look for USB Serial Device (COM#). Example: COM3 Find the COM# from Device Manager > Ports (COM & LPT) and look for USB Serial Device (COM#). Example: COM3
Alternatively, run the following powershell command to list ports: Alternatively, run the following PowerShell command to list ports:
``` ```
[System.IO.Ports.SerialPort]::getportnames() [System.IO.Ports.SerialPort]::getportnames()
``` ```
@ -103,7 +103,7 @@ Alternatively, run the following powershell command to list ports:
Open PuTTY and select Serial. Enter COM# for serial line and 115200 for Speed. Click Open. Open PuTTY and select Serial. Enter COM# for serial line and 115200 for Speed. Click Open.
[Download PuTTY](http://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html "Download PuTTY") [Download PuTTY](https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html "Download PuTTY")
## Connecting to the Linux Bash Bunny Console from Linux/Mac ## Connecting to the Linux Bash Bunny Console from Linux/Mac
@ -111,7 +111,7 @@ Open PuTTY and select Serial. Enter COM# for serial line and 115200 for Speed. C
``` ```
ls /dev/tty*" or "dmesg | grep tty ls /dev/tty*" or "dmesg | grep tty
``` ```
> Usually on a Linux host, the Bash Bunny will register as either /dev/ttyUSB0 or /dev/ttyACM0. On an OSX/macOS host, the Bash Bunny will register as /dev/tty.usbmodemch000001. > Usually on a Linux host, the Bash Bunny will register as either /dev/ttyUSB0 or /dev/ttyACM0. On an macOS host, the Bash Bunny will register as /dev/tty.usbmodemch000001.
2. Next, connect to the serial device using screen, minicom or your terminal emulator of choice. 2. Next, connect to the serial device using screen, minicom or your terminal emulator of choice.
> If screen is not installed it can usually be found from your distributions package manager. > If screen is not installed it can usually be found from your distributions package manager.
@ -124,24 +124,22 @@ sudo screen /dev/ttyACM0 115200
``` ```
> Disconnect with keyboard combo: CTRL+a followed by CTRL+\ > Disconnect with keyboard combo: CTRL+a followed by CTRL+\
--- ---
# Getting the Bash Bunny Online # Getting the Bash Bunny Online
Getting the Bash Bunny online can be convenient for a number of reasons, such as installing software with apt or git. Similar to the WiFi Pineapple, the host computers Internet connection can be shared with the Bash Bunny. Begin by setting the Bash Bunny to Ethernet mode. For Windows hosts, you'll want to boot the bash bunny with a payload.txt containing ATTACKMODE RNDIS_ETHERNET On a Linux host you'll most likely want ATTACKMODE ECM_ETHERNET. With the Bash Bunny booted and registering on your host computer as an Ethernet device, you can now share its Internet connection. Getting the Bash Bunny online can be convenient for a number of reasons, such as installing software with APT or Git. Similar to the WiFi Pineapple, the host computer's Internet connection can be shared with the Bash Bunny. Begin by setting the Bash Bunny to Ethernet mode. For Windows hosts, you'll want to boot the Bash Bunny with a payload.txt containing ATTACKMODE RNDIS_ETHERNET. On a Linux host, you'll most likely want ATTACKMODE ECM_ETHERNET. With the Bash Bunny booted and registering on your host computer as an Ethernet device, you can now share its Internet connection.
## Sharing an Internet Connection with the Bash Bunny from Windows ## Sharing an Internet Connection with the Bash Bunny from Windows
1. Configure a payload.txt for ATTACKMODE RNDIS_ETHERNET 1. Configure a payload.txt for ATTACKMODE RNDIS_ETHERNET.
2. Boot Bash Bunny from RNDIS_ETHERNET configured payload on the host Windows PC 2. Boot Bash Bunny from RNDIS_ETHERNET configured payload on the host Windows PC.
3. Open Control Panel > Network Connections (Start > Run > "ncpa.cpl" > Enter) 3. Open Control Panel > Network Connections (Start > Run > "ncpa.cpl" > Enter).
4. Identify Bash Bunny interface. Device name: "USB Ethernet/RNDIS Gadget" 4. Identify Bash Bunny interface. Device name: "USB Ethernet/RNDIS Gadget".
5. Right-click Internet interface (e.g. Wi-Fi) and click Properties. 5. Right-click Internet interface (e.g. Wi-Fi) and click Properties.
6. From the Sharing tab, check "Allow other network users to connect through this computer's Internet connection", select the Bash Bunny from the Home networking connection list (e.g. Ethernet 2) and click OK. 6. From the Sharing tab, check "Allow other network users to connect through this computer's Internet connection", select the Bash Bunny from the Home networking connection list (e.g. Ethernet 2) and click OK.
7. Right-click Bash Bunny interface (e.g. Ethenet 2) and click Properties. 7. Right-click Bash Bunny interface (e.g. Ethenet 2) and click Properties.
8. Select TCP/IPv4 and click Properties. 8. Select TCP/IPv4 and click Properties.
9. Set the IP address to 172.16.64.64. Leave Subnet mask as 255.255.255.0 and click OK on both properties windows. Internet Connection Sharing is complete 9. Set the IP address to 172.16.64.64. Leave Subnet mask as 255.255.255.0 and click OK on both properties windows. Internet Connection Sharing is complete.
## Sharing an Internet Connection with the Bash Bunny from Linux ## Sharing an Internet Connection with the Bash Bunny from Linux
@ -155,18 +153,18 @@ wget bashbunny.com/bb.sh
sudo bash ./bb.sh sudo bash ./bb.sh
~~~~ ~~~~
## Sharing an Internet Connection with the Bash Bunny from OSX ## Sharing an Internet Connection with the Bash Bunny from macOS
1. Configure a payload.txt for ATTACKMODE ECM_ETHERNET STORAGE 1. Configure a payload.txt for ATTACKMODE ECM_ETHERNET STORAGE
2. Boot Bash Bunny from ECM_ETHERNET configured payload 2. Boot Bash Bunny from ECM_ETHERNET configured payload
3. Open a terminal on the OSX host. Install Macports if you don't have it installed already. http://macports.org 3. Open a terminal on the macOS host. Install [MacPorts](https://macports.org) if you don't have it installed already.
4. Install and set up Squid on the OSX host: 4. Install and set up Squid on the macOS host:
~~~ ~~~
sudo port install squid sudo port install squid
sudo squid -z sudo squid -z
sudo squid sudo squid
~~~ ~~~
5. You will now have an open (!!) proxy running on all interfaces of your host. If you are not in a trusted environment, limit the interface in the squid.conf file. 5. You will now have an open (!!) proxy running on all interfaces of your host. If you are not in a trusted environment, limit the interface in the squid.conf file.
6. SSH to the bash bunny 6. SSH to the Bash Bunny
~~~ ~~~
ssh root@172.16.64.1 ssh root@172.16.64.1
~~~ ~~~
@ -174,7 +172,7 @@ ssh root@172.16.64.1
~~~ ~~~
export http_proxy=http://172.16.64.10:3128 <-- change the IP address to match the host IP if needed export http_proxy=http://172.16.64.10:3128 <-- change the IP address to match the host IP if needed
~~~ ~~~
8. Your bash bunny should now be on-line. 8. Your Bash Bunny should now be online.
~~~ ~~~
apt-get update; apt-get upgrade apt-get update; apt-get upgrade
~~~ ~~~
@ -193,8 +191,8 @@ apt-get update; apt-get upgrade
## Firmware Recovery ## Firmware Recovery
1. Set the Bash Bunny switch to position 3 (arming mode) 1. Set the Bash Bunny switch to position 3 (arming mode)
2. Plug the Bash Bunny into a USB power source. The LED will momentarily light green. As soon as the LED goes off, unplug the Bash Bunny. 2. Plug the Bash Bunny into a USB power source. The LED will momentarily light green. As soon as the LED goes off, unplug the Bash Bunny.
3. Repeat the previous step twice more (for a total of 3 times) 3. Repeat the previous step two more times (for a total of 3 times)
4. Plug the Bash Bunny into a USB power source and leave for 4 minutes. The LED will light RED to indicate recovery. When the light returns to BLUE blinking, the Bash Bunny has recovered. 4. Plug the Bash Bunny into a USB power source and leave it there for 4 minutes. The LED will light RED to indicate recovery. When the light returns to BLUE blinking, the Bash Bunny has recovered.
**DO NOT UNPLUG THE BASH BUNNY DURING RECOVERY** **DO NOT UNPLUG THE BASH BUNNY DURING RECOVERY**