Skip to content

Latest commit

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

>_ osk xss

Generate context-aware XSS payloads with WAF bypass variants and filter evasion from your terminal.

Part of OffSecKit | Browser version | Unified CLI

Install

This tool is part of the OffSecKit CLI toolkit:

pip install offseckit

Usage

# Generate XSS payloads for HTML body context
osk xss gen
# Generate payloads for double-quoted attribute injection
osk xss gen -c attr-double
# Cookie theft payloads with Cloudflare WAF bypass
osk xss gen -c html -a cookie --waf cloudflare
# URL-encoded payloads for JS string context
osk xss gen -c js-single -e url
# Filter out blocked characters
osk xss gen -c html --blocked "<>\"\'"# Show polyglot payloads
osk xss polyglots
# List all injection contexts, encodings, and WAF profiles
osk xss contexts
osk xss encodings
osk xss wafs

Options

FlagDescriptionDefault
-c, --contextInjection context (html, attr-double, attr-single, attr-unquoted, js-single, js-double, js-template, url, event)html
-a, --actionPayload action (alert, console, cookie, redirect, fetch)alert
--custom-jsCustom JavaScript to execute--
-e, --encodingEncoding method (none, url, double-url, html-entities, hex, unicode, fromcharcode, base64)none
--wafWAF bypass profile (cloudflare, aws-waf, akamai, modsecurity)--
--blockedCharacters to filter out of results--

Injection Contexts

ContextDescription
htmlHTML body — direct tag injection
attr-doubleInside double-quoted attribute
attr-singleInside single-quoted attribute
attr-unquotedInside unquoted attribute value
js-singleInside JS single-quoted string
js-doubleInside JS double-quoted string
js-templateInside JS template literal
urlInside URL/href attribute
eventInside inline event handler

Related

License

MIT

About

XSS payload generator with context-aware payloads, WAF bypass, and filter evasion — CLI tool

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors