Skip to content

Files

Latest commit

 

History

History

rapwp

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

rapwp

replace all parameters with payloads

Take as input on stdin a list of urls and a payload and print on stdout all the unique urls with ready to use payloads.

Input

https://sub1.example.com/path1?param1=value1
https://sub1.example.com/path2?param1=value1&param2=value2
https://sub2.example.com/path3/subpath1/?param1=value1
https://sub3.example.com/path4?param4=value4

Usage

  • cat urls | rapwp -p "<svg onload=alert(1)>"
  • cat urls | rapwp -pL payloads.txt
  • cat urls | rapwp -pL payloads.txt -obo

Output

https://sub1.example.com/path1?param1=%3Csvg%20onload=%22alert(1)%22%3E
https://sub1.example.com/path2?param1=value1&param2=%3Csvg%20onload=%22alert(1)%22%3E
https://sub2.example.com/path3/subpath1/?param1=%3Csvg%20onload=%22alert(1)%22%3E
https://sub3.example.com/path4?param4=%3Csvg%20onload=%22alert(1)%22%3E