This repository contains code to deploy a Cloud Function on Google Cloud which will decode unencrypted F5 cookies, commonly starts with BIGipServer
-
Authenticate/set your project using
gcloud
-
Deploy using
gcloud
:gcloud beta functions deploy f5-decode --region=<REGION> --trigger-http --runtime python37 --entry-point cfn_entry
-
Use:
$ curl https://<REGION>-<PROJECT>.cloudfunctions.net/f5-decode?cookie=<YOUR_COOKIE_VALUE> {"status": "ok", "nodeinfo": "10.1.1.1:8080"}
This incorporates some code written by dusty at https://penturalabs.wordpress.com/2011/03/29/how-to-decode-big-ip-f5-persistence-cookie-values/
TODO:
- Passphrase encrypted cookies, maybe?
- Backwards - provide an IP to get stuck to a node