Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


Quelle  system-run-command-contract.json   Sprache: unbekannt

 
Spracherkennung für: .json vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

{
  "cases": [
    {
      "name": "direct argv infers display command",
      "command": ["echo", "hi there"],
      "expected": {
        "valid": true,
        "displayCommand": "echo \"hi there\""
      }
    },
    {
      "name": "direct argv rejects mismatched raw command",
      "command": ["uname", "-a"],
      "rawCommand": "echo hi",
      "expected": {
        "valid": false,
        "errorContains": "rawCommand does not match command"
      }
    },
    {
      "name": "shell wrapper accepts shell payload raw command at ingress",
      "command": ["/bin/sh", "-lc", "echo hi"],
      "rawCommand": "echo hi",
      "expected": {
        "valid": true,
        "displayCommand": "/bin/sh -lc \"echo hi\""
      }
    },
    {
      "name": "shell wrapper positional argv carrier requires full argv display binding",
      "command": ["/bin/sh", "-lc", "$0 \"$1\"", "/usr/bin/touch", "/tmp/marker"],
      "rawCommand": "$0 \"$1\"",
      "expected": {
        "valid": false,
        "errorContains": "rawCommand does not match command"
      }
    },
    {
      "name": "shell wrapper positional argv carrier accepts canonical full argv raw command",
      "command": ["/bin/sh", "-lc", "$0 \"$1\"", "/usr/bin/touch", "/tmp/marker"],
      "rawCommand": "/bin/sh -lc \"$0 \\\"$1\\\"\" /usr/bin/touch /tmp/marker",
      "expected": {
        "valid": true,
        "displayCommand": "/bin/sh -lc \"$0 \\\"$1\\\"\" /usr/bin/touch /tmp/marker"
      }
    },
    {
      "name": "env wrapper shell payload accepted at ingress when prelude has no env modifiers",
      "command": ["/usr/bin/env", "bash", "-lc", "echo hi"],
      "rawCommand": "echo hi",
      "expected": {
        "valid": true,
        "displayCommand": "/usr/bin/env bash -lc \"echo hi\""
      }
    },
    {
      "name": "env wrapper accepts canonical full argv raw command",
      "command": ["/usr/bin/env", "bash", "-lc", "echo hi"],
      "rawCommand": "/usr/bin/env bash -lc \"echo hi\"",
      "expected": {
        "valid": true,
        "displayCommand": "/usr/bin/env bash -lc \"echo hi\""
      }
    },
    {
      "name": "env assignment prelude requires full argv display binding",
      "command": ["/usr/bin/env", "BASH_ENV=/tmp/payload.sh", "bash", "-lc", "echo hi"],
      "rawCommand": "echo hi",
      "expected": {
        "valid": false,
        "errorContains": "rawCommand does not match command"
      }
    },
    {
      "name": "env assignment prelude accepts canonical full argv raw command",
      "command": ["/usr/bin/env", "BASH_ENV=/tmp/payload.sh", "bash", "-lc", "echo hi"],
      "rawCommand": "/usr/bin/env BASH_ENV=/tmp/payload.sh bash -lc \"echo hi\"",
      "expected": {
        "valid": true,
        "displayCommand": "/usr/bin/env BASH_ENV=/tmp/payload.sh bash -lc \"echo hi\""
      }
    }
  ]
}

[Dauer der Verarbeitung: 0.12 Sekunden, vorverarbeitet 2026-04-27]

                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge