🤖 KI-Agenten & Workflows
Network Packet Analyzer CLI
Beispiel-Ausgaben
So antworten ChatGPT, Claude und Gemini typischerweise auf diesen Prompt:
I'll help you create a comprehensive network packet analyzer! The program will use libpcap for packet capture with BPF filters, parse Ethernet/IP/TCP/UDP headers, and decode application protocols like HTTP and DNS. For statistics, we'll track bandwidth using rolling windows and maintain connection state tables. The alert system can detect SYN floods, port scans, and unusual traffic volumes, while the GeoIP integration uses MaxMind databases for location data.
I should note that building a full-featured packet analyzer requires careful consideration of privileges (libpcap needs root/CAP_NET_RAW) and potential legal/ethical implications of network monitoring. The implementation would involve pcap_open_live() for capture, manual packet parsing from the data link layer up, and likely integration with GeoIP libraries. I'd recommend starting with basic capture and incrementally adding protocol parsers, as HTTP/DNS analysis can be quite complex depending on depth needed.
This C program requires libpcap-dev and optionally libmaxminddb for GeoIP. Key functions include pcap_loop() for capture, manual struct parsing for protocol headers (struct iphdr, tcphdr, etc.), and pcap_dump() for PCAP export. Statistics can use hash tables for connection tracking, CSV export via fprintf(), and ANSI escape codes for colored output. Reference implementation patterns from tcpdump source code for robust protocol decoding.
So nutzt du diesen Prompt
Kopiere den Prompt oben oder klicke einen "Öffnen in"-Button um ihn direkt in deiner bevorzugten KI zu starten. Du kannst den Text dann an deinen Anwendungsfall anpassen — z.B. Platzhalter wie [dein Thema] durch echten Kontext ersetzen.
Welches KI-Modell funktioniert am besten
Claude glänzt bei Agent-Workflows dank langem Context-Window (bis 1M Tokens) und nuancierter Instruction-Following. ChatGPT hat native Actions (Tool-Calling) eingebaut. Gemini integriert am besten mit Google Workspace. Für autonome Workflows ist Claude Sonnet 4.6 aktueller Sweet-Spot für Qualität und Kosten.
Diesen Prompt anpassen
Passe Rolle und Constraints des Agents an deine Umgebung an. Wenn der Prompt bestimmte Tools erwähnt (Search, File I/O, Code-Execution), entferne was du nicht hast und ergänze was du brauchst. Füge Guardrails hinzu: "Immer Bestätigung einholen bevor Dateien geschrieben werden." Definiere Erfolgskriterien explizit.
Typische Anwendungsfälle
- Autonome Forschungs-Assistenten für einen Bereich bauen
- Chatbots mit definierten Persönlichkeiten + Wissensgrenzen erstellen
- Multi-Step-Workflows orchestrieren (Recherche → Entwurf → Review → Publish)
- System-Prompts für Custom GPTs oder Claude Projects definieren
- Agent-Loops bauen die Tools rufen und sich selbst korrigieren
Variationen
Passe den Tonfall an (lockerer, technischer), ändere das Ausgabeformat (Aufzählungen vs. Absätze) oder füge Einschränkungen hinzu (Wortlimits, Zielgruppe).