mirror of
https://github.com/loviuz/http-chained-requests-automator.git
synced 2025-04-29 00:28:45 +02:00
91 lines
2.4 KiB
JSON
91 lines
2.4 KiB
JSON
{
|
|
"configuration":
|
|
{
|
|
"verbose_level": 2
|
|
},
|
|
"urls": [
|
|
{
|
|
"title": "First open to get the cookie",
|
|
"url": "http://localhost/mysite/",
|
|
"method": "GET",
|
|
"headers": null,
|
|
"body": null,
|
|
"header-regexp": [
|
|
{
|
|
"cookie": "/Set-Cookie: (.+?)$/"
|
|
}
|
|
],
|
|
"body-regexp": null
|
|
},
|
|
{
|
|
"title": "Login",
|
|
"url": "http://localhost/mysite/",
|
|
"method": "POST",
|
|
"headers": {
|
|
"Cookie": "§cookie§",
|
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
},
|
|
"body": "username=admin&password=s3cr3t",
|
|
"header-regexp": [
|
|
{
|
|
"next_url": "/Location: (.+)/"
|
|
}
|
|
],
|
|
"body-regexp": null,
|
|
"extra_guzzle_options": [
|
|
{
|
|
"allow_redirects": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"title": "Get the email",
|
|
"url": "http://localhost§next_url§",
|
|
"method": "GET",
|
|
"headers": {
|
|
"Cookie": "§cookie§"
|
|
},
|
|
"body": null,
|
|
"header-regexp": [
|
|
{
|
|
"content_type": "/Content-Type: (.+)/",
|
|
"pragma": "/Pragma: (.+)/"
|
|
}
|
|
],
|
|
"body-regexp": [
|
|
{
|
|
"email": "/<p>Your email is (.+)!<\\/p>/"
|
|
}
|
|
],
|
|
"header-expected":
|
|
{
|
|
"content_type": "text/html; charset=UTF-8",
|
|
"pragma": "no-cache"
|
|
},
|
|
"body-expected":
|
|
{
|
|
"email": "dude@dudelang.com"
|
|
}
|
|
},
|
|
{
|
|
"title": "Get the flags",
|
|
"url": "http://localhost§next_url§?email=§email§",
|
|
"method": "GET",
|
|
"headers": {
|
|
"Cookie": "§cookie§"
|
|
},
|
|
"body": null,
|
|
"header-regexp": [
|
|
{
|
|
"flag1": "/Set-Cookie: flag2=(.+?);/"
|
|
}
|
|
],
|
|
"body-regexp": [
|
|
{
|
|
"flag2": "/<p>Congratulations, the flag is: (.+?)<\\/p>/"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|