NodeJS Express

Reading time: 1 minute

{{#include /banners/hacktricks-training.md}}

Koekie Handtekening

Die hulpmiddel https://github.com/DigitalInterruption/cookie-monster is 'n nut om die toetsing en herhandtekening van Express.js koekie geheime te outomatiseer.

Enkel koekie met 'n spesifieke naam

bash
cookie-monster -c eyJmb28iOiJiYXIifQ== -s LVMVxSNPdU_G8S3mkjlShUD78s4 -n session

Pasgemaakte woordlys

bash
cookie-monster -c eyJmb28iOiJiYXIifQ== -s LVMVxSNPdU_G8S3mkjlShUD78s4 -w custom.lst

Toets verskeie koekies met batch-modus

bash
cookie-monster -b -f cookies.json

Toets verskeie koekies met behulp van batchmodus met 'n pasgemaakte woordlys

bash
cookie-monster -b -f cookies.json -w custom.lst

Kodifiseer en teken 'n nuwe koekie

As jy die geheim ken, kan jy die koekie teken.

bash
cookie-monster -e -f new_cookie.json -k secret

{{#include /banners/hacktricks-training.md}}