Extends
Methods
script() → {Wrapper_HTML}
Transform any javascript data url into a <script src> payload.
Example
const p = Payload.new().eval(() => alert(1))
const w = Wrapper.new().dataUrl().script()
const i = document.createElement('iframe')
s.srcdoc = w.wrap(p)
document.body.appendChild(i)
Returns
- Type
- Wrapper_HTML
scriptImport() → {Wrapper_HTML}
Transform any javascript data url into a <script src> import payload.
Example
const p = Payload.new().eval(() => alert(1))
const w = Wrapper.new().dataUrl().scriptImport()
const i = document.createElement('iframe')
s.srcdoc = w.wrap(p)
document.body.appendChild(i)
Returns
- Type
- Wrapper_HTML