Extends
Methods
iframe() → {Wrapper_HTML}
Transform any html data url into a <iframe src> payload.
The XSS will trigger on about:blank
Example
const p = Payload.new().eval(() => alert(1))
const w = Wrapper.new().script().dataUrl().iframe()
document.body.innerHTML = w.wrap(p)
Returns
- Type
- Wrapper_HTML
windowOpen() → {Wrapper_JS}
Transform any html data url into a window.open payload.
The XSS will trigger on about:blank
Example
const p = Payload.new().eval(() => alert(1))
const w = Wrapper.new().script().dataUrl().windowOpen()
document.body.innerHTML = w.wrap(p)
Returns
- Type
- Wrapper_JS