Posts

Showing posts from July, 2021

Hak5 Cloud C2 on a Raspberry Pi

Setting up the Raspberry Pi (RPi) itself isn't covered here, a default installation of Raspberry Pi OS Lite will do the job. This setup will work on a LAN only, i.e. no external access to the C2 instance from the internet. To get that working, port openings and stuff is needed but that isn't covered here. If needed, run the following to get information about which C2 version to run on the RPi: cat /proc/cpuinfo Note! You need a license key from Hak5 in order to activate/validate the installation (the community edition is free, but still needs a license key). The RPi also needs to have a working connection to the internet since the C2 license is validated at service start, and during runtime as well. Download the C2 zip file to the RPi and unzip it wget https://c2.hak5.org/download/community -O c2.zip unzip c2.zip Start the server manually to verify that it works: ./c2-3.1.2_armv7_linux -hostname <ip address> (or whatever version that was downloaded) When the C2 instance h

KeyCroc and specific chars

 Just some words regarding the Key Croc having issues with special chars, both when it comes to QUACK them as well as trigger MATCH strings. (For those just stumbling on this text; you need to have been a part of the Hak5 Discord discussions about the matter to be able to place it into context) Running the following logged in using ssh on the Croc, it is obvious that the Croc thinks that there are no Swedish chars available to match even if you have told the Croc to use "se" as language. Some samples... root@croc:/usr/local/croc/bin# QUACK STRING "å" Traceback (most recent call last):   File "/usr/local/croc/bin/QUACK", line 281, in <module>     run_script(input_line, language)   File "/usr/local/croc/bin/QUACK", line 250, in run_script     context = run_ducky_line(context, line, lang_file)   File "/usr/local/croc/bin/QUACK", line 165, in run_ducky_line     elements = lang_file[char].split(","); KeyError: u'\xe5'