File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 11pub fn get_jsvalue ( ) -> Vec < String > {
22 vec ! [
3- "document.cookie" . to_string( ) ,
3+ "(+{}+[])[+!![]]" . to_string( ) ,
4+ "/XSS/.source" . to_string( ) ,
45 ]
56}
67
78pub fn get_jscmd ( ) -> Vec < String > {
89 vec ! [
10+ "parent['con'+'firm']" . to_string( ) ,
11+ "parent['prom'+'pt']" . to_string( ) ,
12+ "parent['ale'+'rt']" . to_string( ) ,
13+ "globalThis[(+{}+[])[+!![]]+(![]+[])[!+[]+!![]]+([][[]]+[])[!+[]+!![]+!![]]+(!![]+[])[+!![]]+(!![]+[])[+[]]]" . to_string( ) ,
914 "alert" . to_string( ) ,
1015 "prompt" . to_string( ) ,
1116 "confirm" . to_string( ) ,
17+ "this[/*foo*/'alert'/*bar*/]" . to_string( ) ,
18+ "this[/*foo*/'print'/*bar*/]" . to_string( ) ,
19+ "window[/*foo*/'confirm'/*bar*/]" . to_string( ) ,
20+ "self[/*foo*/'prompt'/*bar*/]" . to_string( ) ,
21+ "window['ale'+'rt']" . to_string( ) ,
1222 ]
1323}
1424
You can’t perform that action at this time.
0 commit comments