🤖 KI-Agenten & Workflows

Network Packet Analyzer CLI

📁 KI-Agenten & Workflows 👤 Beigetragen von @f 🗓️ Aktualisiert
Der Prompt
Create a command-line network packet analyzer in C using libpcap. Implement packet capture from network interfaces with filtering options. Add protocol analysis for common protocols (TCP, UDP, HTTP, DNS, etc.). Include traffic statistics with bandwidth usage and connection counts. Implement packet decoding with detailed header information. Add export functionality in PCAP and CSV formats. Include alert system for suspicious traffic patterns. Implement connection tracking with state information. Add geolocation lookup for IP addresses. Include command-line arguments for all options with sensible defaults. Implement color-coded output for better readability.

Beispiel-Ausgaben

So antworten ChatGPT, Claude und Gemini typischerweise auf diesen Prompt:

🚀 ChatGPT

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.

✨ Claude

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.

💎 Gemini

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).

Verwandte Prompts