Open PIAy3R opened 8 months ago
For me, my token.txt looks like:
{"id":{}}
Authorization: Bearer <Your_Token>
Maybe this will work also for you. Also make sure, your path in engine_settings.json
is set correctly. You need to specify the absolute path
Description
I followed the guide in
SettingsFile.md
to add a token for authentication in Restler. I configured theengine_settings.json
file as follows:In this configuration, the token is expected to be stored in a file named
token.txt
. Here's an example of how thetoken.txt
file looks like:and the fuzzing command is
However, this setup did not work as expected.
I also attempted another approach by using a Python script (
token.py
) to generate the token dynamically. Here's the content of thetoken.py
file:I then modified the Restler command to include the token_refresh_command option:
Even with this method, Restler still failed to authenticate properly.
Additionally, I tried adding the token directly into the dictionary file (
dict.json
) using therestler_custom_payload_header
option:However, none of these approaches resolved the authentication issue, there would always be a 401 status code in the responses of the requests I had sent. And I never found the information in network log like the following content
I have verified that the file paths are correct.