Projects STRLCPY pentest-tools Commits d3012823
🤬
  • ■ ■ ■ ■ ■ ■
    keyhacks.sh
    skipped 26 lines
    27 27   echo " - github_ssh_key"
    28 28   echo " - github_token"
    29 29   echo " - gitlab_private_token"
     30 + echo " - gitlab_runner_registration_token"
    30 31   echo " - google_cm"
    31 32   echo " - google_maps_key"
    32 33   echo " - heroku_api_key"
    skipped 223 lines
    256 257   cmd="curl 'https://$2/api/v4/projects?private_token=$3'"
    257 258   else
    258 259   echo "Usage: $0 $1 <subdomain> <token>"
     260 + fi
     261 + ;;
     262 + 'gitlab_runner_registration_token')
     263 + if [ $# -eq 2 ] ; then
     264 + cmd="docker run --rm gitlab/gitlab-runner register \
     265 + --non-interactive \
     266 + --executor \"docker\" \
     267 + --docker-image alpine:latest \
     268 + --url \"https://gitlab.com/\" \
     269 + --registration-token \"${2}\" \
     270 + --description \"keyhacks-test\" \
     271 + --maintenance-note \"Testing token with keyhacks\" \
     272 + --tag-list \"docker,aws\" \
     273 + --run-untagged=\"true\" \
     274 + --locked=\"false\" \
     275 + --access-level=\"not_protected\""
     276 + else
     277 + echo "Usage: $0 $1 <token>"
    259 278   fi
    260 279   ;;
    261 280   'google_cm')
    skipped 261 lines
Please wait...
Page is in error, reload to recover