(Video materials in preparation)
xssnude : replaces special characters with entity references.
Usage : xssnude [option] <file>
Option : --number
--name
--space
--del
--limited
Version : Wed Nov 11 10:31:19 JST 2020
To prevent cross-site scripting escape string in <file> mainly coming from the Web to be harmless.
Note that (WS) means a white space in the following.
Set --number to replace ASCII characters with entity numbers.
$ cat file
<script>alert("hoge")</script>
$ xssnude --number file
<script>alert("hoge")</script>
Symbols will be replaced with entity numbers as below.
→ 9
\n → 10
\r → 13
(WS) → 32
! → 33
" → 34
# → 35
$ → 36
% → 37
& → 38
' → 39
( → 40
) → 41
* → 42
+ → 43
, → 44
- → 45
. → 46
/ → 47
: → 58
; → 59
< → 60
= → 61
> → 62
? → 63
@ → 64
Set --name to replace ASCII characters with entity names.
$ cat file
<script>alert("hoge")</script>
$ xssnude --name file
<script>alert("hoge")</script>
Symbols will be replaced too entity names as below.
< → <
> → >
& → &
" → "
(WS) →
Set --space to replace ASCII symbols into white spaces.
$ cat file
<script>alert("hoge")</script>
$ xssnude --space file
script alert hoge script
Set --del to remove ASCII symbols.
$ cat file
<script>alert("hoge")</script>
$ xssnude --del file
scriptalerthogescript
Set --limited for specific symbols below frequently used for attacking to be replaced.
< > & " (WS)
--limited is used cooperatively with other options/.
$ cat file
<script>alert("hoge")</script>
$ xssnude --limited --number file
<script>alert("hoge")</script>
$ cat file
<script>alert("hoge")</script>
$ xssnude --limited --name file
<script>alert("hoge")</script>
$ cat file
<script>alert("hoge")</script>
$ xssnude --limited --space file
script alert( hoge ) /script
$ cat file
<script>alert("hoge")</script>
$ xssnude --limited --del file
scriptalert(hoge)/script