Skip to content

mcipperly/cfn-f5-cookie-decoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

F5 Cookie Decoder

This repository contains code to deploy a Cloud Function on Google Cloud which will decode unencrypted F5 cookies, commonly starts with BIGipServer

Steps for deploying/use

  1. Authenticate/set your project using gcloud

  2. Deploy using gcloud:

    gcloud beta functions deploy f5-decode --region=<REGION> --trigger-http --runtime python37 --entry-point cfn_entry

  3. Use:

    $ curl https://<REGION>-<PROJECT>.cloudfunctions.net/f5-decode?cookie=<YOUR_COOKIE_VALUE>
    {"status": "ok", "nodeinfo": "10.1.1.1:8080"}
    

Credits / Additional Reading

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

About

Cloud Function for decoding F5 Cookies

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages