Mobile-Security-Framework-MobSF icon indicating copy to clipboard operation
Mobile-Security-Framework-MobSF copied to clipboard

[FEATURE] async support

Open BabelQwerty opened this issue 3 years ago • 2 comments

async support

BabelQwerty avatar Aug 26 '22 09:08 BabelQwerty

👋 @BabelQwerty Issues is only for reporting a bug/feature request. For limited support, questions, and discussions, please join MobSF Slack channel Please include all the requested and relevant information when opening a bug report. Improper reports will be closed without any response.

github-actions[bot] avatar Aug 26 '22 09:08 github-actions[bot]

can you elaborate a little bit ?

superpoussin22 avatar Aug 26 '22 09:08 superpoussin22

Sometimes api/v1/scan can takes more than 1 hour on my PC. Can you add api/v1/scanAsync what will returns (for example) scan task id and api/v1/taskState for checking task state.

In progress:

{
    "task_state": "IN_PROGRESS"
    "task_ok": false
    "file_hash": ""
}

Finished:

{
    "task_state": "DONE"
    "task_ok": true // or false if some error
    "file_hash": "qwerty123456"
}

And now I can use /api/v1/report_json with hash

@ajinabraham

DMyachin avatar Jan 23 '23 20:01 DMyachin