Skip to content

Instantly share code, notes, and snippets.

@petergs
Last active November 13, 2024 16:22
Show Gist options
  • Select an option

  • Save petergs/b15e234fa44f96775d2c24c49cd440c4 to your computer and use it in GitHub Desktop.

Select an option

Save petergs/b15e234fa44f96775d2c24c49cd440c4 to your computer and use it in GitHub Desktop.
GraphRunner User-Agents
#!/bin/bash
# hacky one-liner to extract all hardcoded user agents from GraphRunner
curl -s https://raw.githubusercontent.com/dafthack/GraphRunner/main/GraphRunner.ps1 | grep '$UserAgent =' | grep -v 'Invoke' | awk '{ gsub(/\$UserAgent = /, ""); $1=$1; print }' | sed 's/"//g' | sed "s/'//g"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment