SqlMapAPI: Worker Support with Adapter Gunicorn
[Description]: We can spin up sqlmapapi with gunicorn. However, we cannot specify number of workers it can have from the arguments.
Although I tried to customize the code, by passing additional configuration in the class GunicornServer. However, there is a problem.
[Problem]: The workers run in different subprocesses and they don't share the tasks that are being run in each of them. Hence, spinning up 4 workers, was useless for me.
I successfully created a task, however when I tried to start a scan with that taskid, it said invalid taskid.
Let me know if there is any solution to this.
it doesn't make any sense to make multi-process rest api in sqlmap API (i.e. that stuff you are trying to do).
sqlmap process is run in the background - in parallel on demand, where the sqlmapapi is just a frontend REST API call server. more than one sqlmap task can be run at the same time, thus, there is 0 strain on the REST API (i.e. there is absolutely not need to run multi-workers sqlmapapi)