Uploading files in web applications iw nowadays a common feature. Being able to automate this steps using Burp
, Curl
, Python
& Co. doesn’t seem to be an easy task. Basically the automation involves following steps:
- for a given directory of files, repeat the request for each file
- have a look for the status responses to detect anomalies
In Burp you’re allowed to copy a certain request as curl
command which simplifies things. Given a POST
request Burp will convert
it to a valid curl command like:
|
|
Having tried this neat Burp feature, I can tell you that the curl commands won’t trigger the same requests as in Burp. I don’t
know why nor I have not investigated this further. Modifying the curl script will definitely cause you some headaches. Using Python
and
requests
will help you automate your file uploads in a easy way. Here is my gist: