Skip to content

Exploit

pipeleek gh ghtoken exploit

Validate GitHub Actions token and attempt repo clone

Synopsis

Validate the GitHub Actions CI/CD token (GITHUB_TOKEN), then attempts to clone the repository using the token. The user must review the token's access scope manually for exploitation.

pipeleek gh ghtoken exploit [flags]

Examples

pipeleek gh ghtoken exploit --token ghs-xxxxxxxxxxx --repo owner/repo

Options

  -h, --help          help for exploit
  -r, --repo string   Repository in format owner/repo

Options inherited from parent commands

      --color                   Enable colored log output (auto-disabled when using --logfile) (default true)
      --config string           Config file path. Example: ~/.config/pipeleek/pipeleek.yaml
      --http-timeout duration   HTTP request timeout, e.g. 30s or 2m (default: no timeout)
      --ignore-proxy            Ignore HTTP_PROXY environment variable
      --json                    Use JSON as log output format
      --log-level string        Set log level globally (debug, info, warn, error). Example: --log-level=warn
  -l, --logfile string          Log output to a file
      --proxy string            Proxy URL, e.g. http://127.0.0.1:8080 or socks5://127.0.0.1:1080 (takes precedence over HTTP_PROXY)
      --tls-verification        Enable TLS certificate verification (by default verification is skipped to support self-signed certificates)
  -t, --token string            GitHub Actions CI/CD Token (GITHUB_TOKEN)
  -u, --url string              GitHub API base URL
  -v, --verbose                 Enable debug logging (shortcut for --log-level=debug)

SEE ALSO