Featured image of post Claude Code CLI: Diagnostics & User Support and Permissions

Claude Code CLI: Diagnostics & User Support and Permissions

The Claude Code CLI provides more than 40 subcommands for supporing the complete lifecycle of working with programming projects. The particular focus of this article are terminal configuration, adjusting font, colors, and key binding, and diagnostics, identifying potential issues with the CLI functionality.

Featured image of post Claude Code CLI: Session & Context Management

Claude Code CLI: Session & Context Management

In a conventional session with Claude Code, commands are executed linearly. A user prompt gets embedded into a system prompt, the LLM provider process the prompts in thinking mode, suggest tool calls that are executed and looped back to the model, until the model declares a task completed. This session behavior can be tweaked in numerous ways.

Featured image of post Claude Code CLI: Session & Context Management

Claude Code CLI: Session & Context Management

Whenever the Claude Code CLI is invoked, a new session is created. On a high-level view, the user enters prompts, which are analyzed and processed to create internal tasks, such as checking/asking for permissions, suggesting and executing tools, and editing files. Each of these tasks is represented in the session history as a specific JSON document, with a unique type and attribute. Let’s investigate this in detail to learn about one part of Claude Code’s functionality.

Featured image of post Hacking with Raspberry Pico: Terminal Text Injection and File Stealing

Hacking with Raspberry Pico: Terminal Text Injection and File Stealing

The Raspberry Pico is a small form factor microcontroller used in several application areas: DIY sensor capture, controlling screens, and even for hacking. With full access to its USB stack via MicroPython/CircuitPython and an additional library, the Pico can be programmed as a physical hacking device. It will act as an USB HID or storage device, but inject keystrokes into the host system.

Featured image of post Raspberry Pico: USB Hacking Device Programming

Raspberry Pico: USB Hacking Device Programming

Small form-factor single board computers and microcontroller are an ubiquitous stack in electronic projects. An interesting application area for these devices is physical hacking, e.g. using an USB connection to a host system to inject commands, gain system access, or steal files. To my surprise, an entry level microcontroller, the Raspberry Pico, can be used for these nefarious tasks.

Featured image of post Turning the Raspberry Pi Zero into a Hacking Gadget

Turning the Raspberry Pi Zero into a Hacking Gadget

Single Board Computers with the ability to run a full-fledged Linux distribution can be used as portable devices for a wide variety of use cases. To my surprise, one of them is computer hacking. I was astonished about the creativity and ease-of-use how a Raspberry Pi, Raspberry Pi Zero or Pico can be used for potentially nefarious activities. And after a long deliberation, I decided to start writing blog posts about this subject.