Yummy⊠Gatos love cookies.
What SnackOverflow is
Disclaimer: This tool is for educational purposes only. Use it at your own risk. Donât be a jerk and use it to exploit someone without their consent.
SnackOverflow is a .NET tool for when youâve stolen someoneâs machineKey and youâd like to make them regret their poor configuration choices.
It forges ASP.NET cookies but not just boring old .ASPXAUTH, also __VIEWSTATE, ASP.NET_SessionId, and maybe some other baked good you can dream up.
Basically, itâs the part of the red-team toolkit that says:
âWhat if I could bake trust instead of stealing it?â
How SnackOverflow works
SnackOverflow parses a web.config (or takes keys directly) and reproduces Microsoftâs Framework 2.0SP2-style Encrypt + HMAC process.
No black magic, no dependencies, just crypto and sarcasm.
Under the hood it:
- Reads your
machineKeyvalues (from file or CLI args) - Serializes a legit-looking Forms Auth ticket
- Encrypts + signs it using AES / DES / 3DES
- Prints you a shiny hex string you can drop into your requests
Thatâs it. No setup, no dependencies, no remorse.
Using SnackOverflow
SnackOverflow --config web.config --user admin --group Administrators
or if you already know the keys:
SnackOverflow \
--decryptionkey A1B2C3... \
--validationkey F1E2D3... \
--user admin --group Administrators
Optional args let you override the encryption/validation algorithm, because sometimes Microsoft didnât get the memo about consistency.
Output
Each run spits out multiple cookies, for your convenience:
- Forms Authentication Cookie (
.ASPXAUTH) - Session Cookie (
ASP.NET_SessionId) - Custom Encrypted Cookie (because you can)
- ViewState Cookie (
__VIEWSTATE, but cooler)
If it fails, it tells you why⊠usually in the tone of a disappointed cat.
Example
Creating Forms Authentication Cookie...
Using Decryption Type: AES256
Using Validation Type: HMACSHA256
Cookie Name: .ASPXAUTH
User: admin
Group: Administrators
Cookie Length: 512 chars
If you see âError: something something key length,â thatâs on you, not me.
Why?
Because sometimes you pop a web server, grab web.config, and realize the app does everything client-side.
Because sometimes âmachineKey reuse across all dev/test/prodâ isnât just bad, itâs free access.
Because why should only the app get to bake cookies?
Credits
Born from an all-night CTF binge that felt mythic in scope where somehow .ASPXAUTH forging was on the checklist.
SnackOverflow is what happens when sleep deprivation, sarcasm, and ASP.NET meet.
Disclaimer
If youâre using this in prod, youâve already lost. If youâre using this for education or CTFs, carry on, hero.
Donât be evil. Donât get sued. Do bake responsibly.