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

Not scanning with --custom-payload , from mined param #143

Closed
hahwul opened this issue Nov 6, 2020 · 3 comments
Closed

Not scanning with --custom-payload , from mined param #143

hahwul opened this issue Nov 6, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@hahwul
Copy link
Owner

hahwul commented Nov 6, 2020

from #136 (comment)

@hahwul hahwul added the bug Something isn't working label Nov 6, 2020
@hahwul
Copy link
Owner Author

hahwul commented Nov 6, 2020

https://github.com/hahwul/dalfox/blob/master/pkg/scanning/scan.go#L334

if options.CustomPayloadFile != "" {
			ff, err := readLinesOrLiteral(options.CustomPayloadFile)

@hahwul hahwul changed the title Not scanning with --only-custom-payload , from mined param Not scanning with --custom-payload , from mined param Nov 6, 2020
@hahwul
Copy link
Owner Author

hahwul commented Nov 6, 2020

found bug point

for _, customPayload := range ff {
					spu, _ := url.Parse(target)
					spd := spu.Query()

@hahwul
Copy link
Owner Author

hahwul commented Nov 6, 2020

url.Parse => params

v2.2.2

$ dalfox url https://xss-game.appspot.com/level1/frame --only-custom-payload --custom-payload ../../123

[*] Added your 1 custom xss payload
[*] Start XSS Scanning.. with 0 queries 🗡

patched

$ go build
$ ./dalfox url https://xss-game.appspot.com/level1/frame --only-custom-payload --custom-payload ../../123

[*] Added your 1 custom xss payload
[*] Start XSS Scanning.. with 3 queries 🗡

@hahwul hahwul closed this as completed in 5832411 Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant