Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full httpscan #131

Merged
merged 14 commits into from
May 24, 2023
Merged

Full httpscan #131

merged 14 commits into from
May 24, 2023

Conversation

MindPatch
Copy link
Contributor

To scan full requests under the SCAN_ID number 0 in Lotus, users can employ a single function to inject the payload. By utilizing CLI options, they can specify the specific portion of the request they wish to scan.

@MindPatch MindPatch added new-api core-changes make changes for Lotus Core in Rust labels May 18, 2023
@MindPatch MindPatch linked an issue May 18, 2023 that may be closed by this pull request
@MindPatch MindPatch merged commit 6ec28de into master May 24, 2023
@MindPatch MindPatch deleted the full_httpscan branch May 24, 2023 15:43
@MindPatch
Copy link
Contributor Author

now we support JSON/urlencode/headers auto injection

DEMO

[
  {
    "method": "POST",
    "url": "http://google.com/",
    "headers": {
      "X-API": "fff"
    },
    "body": "{\"userid\":[1,\"hhh\"],\"kkk\":{\"hahaha\":\"gosfkoasfk\"},\"admin\":\"true\"}"
  }
]
SCAN_TYPE = 0


function tester(data)
    for k,v in pairs(data) do
        full_req:send(v,http)
    end
end

function main()
    http:merge_headers(true)
    local data = full_req:set_json_param("nothing",false)
    tester(data)
    local data = full_req:set_body_param("nothing",false)
    tester(data)
end
$ cat req.json  | lotus scan test.lua -v 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core-changes make changes for Lotus Core in Rust new-api
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] problem with json input
1 participant