mantra icon indicating copy to clipboard operation
mantra copied to clipboard

Cookie support (sessions) added

Open tomikoski opened this issue 6 months ago • 0 comments

I've added cookie support, can be used something like:

echo target.tld | mantra -ua 'go-client/1.0' -c 'SESSION=1; admin=false; something=else'

Tested using macOS:

# terminal1:
GOOS=darwin GOARCH=arm64 go build -o build/mantra-arm64-darwin
echo "http://localhost:9999" | ./build/mantra-arm64-darwin -c 'testcookie=1' -ua 'test-client'

# terminal2, outputs:
$ nc -l 9999
...
...                                                                                                                        ─╯
GET / HTTP/1.1
Host: localhost:9999
User-Agent: test-client
Cookie: testcookie=1
Accept-Encoding: gzip
...
...

tomikoski avatar Aug 13 '24 08:08 tomikoski