sic icon indicating copy to clipboard operation
sic copied to clipboard

Protocol Relative URL support

Open nbk2000 opened this issue 6 years ago • 2 comments

Hey d0nut,

In testing the use of Nginx to terminate HTTPs connections for sic I receive the following error:

thread 'tokio-runtime-worker-0' panicked at 'called `Result::unwrap()` on an `Err` value: RelativeUrlWithoutBase', src/libcore/result.rs:999:5

This happens when supplying a Protocol Relative URL as the Polling or Callback host like this:

./sic -p 3000 --ph "//a.pwnu.net" --ch "//b.pwnu.net" -t template_file

Using Protocol Relative URLs would allow sic payloads to work on both HTTP and HTTPs pages simultaneously.

BTW - Here's the example Nginx config I promised you.

Best, NBK

nbk2000 avatar Apr 23 '19 02:04 nbk2000

Would it be fine if the tool only support HTTP but injected url relative protocols in the style sheet? I assume that's what you're asking

d0nutptr avatar Apr 23 '19 04:04 d0nutptr

Yeah, that's exactly right

nbk2000 avatar Apr 23 '19 05:04 nbk2000