ShellGPT on Kali Linux: setup and DNS command tutorial
Learn to install ShellGPT on Kali Linux, configure an OpenAI API key, and use sgpt --shell to generate dig commands for DNS queries.
Player not loading? Watch on YouTube
This tutorial covers ShellGPT installation and terminal use on Kali Linux. The presenter checks for Python 3 and pip, installs the shell-gpt package, then starts sgpt to enter an OpenAI API key. The walkthrough also shows --break-system-packages as a response to an installation error and uses sgpt --help to display usage instructions. The demonstrated configuration sends requests through the OpenAI API; it does not show how to run models locally or use an offline model.
The practical example asks ShellGPT to gather DNS information about testphp.vulnweb.com with dig. With sgpt --shell, the presenter generates a command and explains the options to execute, describe, or abort it. Naming dig in the prompt gives ShellGPT a specific tool to use. The speaker warns that an unspecified tool choice may be unavailable or incompatible with the system.
A second example submits a similar request without --shell and receives suggested commands. The presenter describes manual execution or execution through ShellGPT, depending on the workflow, and mentions DNS records such as A, MX, NS, and TXT. The demonstration is framed as authorized testing in a controlled lab. It focuses on API-backed command generation and DNS queries, rather than a broader penetration-testing workflow.