Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script https://pastebin.com/eV8VEYML
- console output
- _mystring=abcdef
- Character does not need escaping a index 0
- Character does not need escaping b index 1
- Character does not need escaping c index 2
- Character does not need escaping d index 3
- Character does not need escaping e index 4
- Character does not need escaping f index 5
- _mystring=ab%cdef
- Character does not need escaping a index 0
- Character does not need escaping b index 1
- Unescaped character % at index 2
- Character does not need escaping c index 3
- Character does not need escaping d index 4
- Character does not need escaping e index 5
- Character does not need escaping f index 6
- _mystring=abc%def
- Character does not need escaping a index 0
- Character does not need escaping b index 1
- Character does not need escaping c index 2
- Unescaped character % at index 3
- Character does not need escaping d index 4
- Character does not need escaping e index 5
- Character does not need escaping f index 6
- _mystring=abcd"ef
- Character does not need escaping a index 0
- Character does not need escaping b index 1
- Character does not need escaping c index 2
- Character does not need escaping d index 3
- Unescaped character " at index 4
- Unescaped character " at index 4
- Character does not need escaping e index 5
- Character does not need escaping f index 6
- _mystring=abcde"f
- Character does not need escaping a index 0
- Character does not need escaping b index 1
- Character does not need escaping c index 2
- Character does not need escaping d index 3
- Character does not need escaping e index 4
- Unescaped character " at index 5
- Unescaped character " at index 5
- Character does not need escaping f index 6
- _mystring=abcd&ef
- Character does not need escaping a index 0
- Character does not need escaping b index 1
- Character does not need escaping c index 2
- Character does not need escaping d index 3
- Unescaped character & at index 4
- Character does not need escaping e index 5
- Character does not need escaping f index 6
- _mystring=abc&def
- Character does not need escaping a index 0
- Character does not need escaping b index 1
- Character does not need escaping c index 2
- Unescaped character & at index 3
- Character does not need escaping d index 4
- Character does not need escaping e index 5
- Character does not need escaping f index 6
- _mystring=ab<cdef
- Character does not need escaping a index 0
- Character does not need escaping b index 1
- Unescaped character < at index 2
- Character does not need escaping c index 3
- Character does not need escaping d index 4
- Character does not need escaping e index 5
- Character does not need escaping f index 6
- _mystring=a<bcdef
- Character does not need escaping a index 0
- Unescaped character < at index 1
- Character does not need escaping b index 2
- Character does not need escaping c index 3
- Character does not need escaping d index 4
- Character does not need escaping e index 5
- Character does not need escaping f index 6
- _mystring=ab>cdef
- Character does not need escaping a index 0
- Character does not need escaping b index 1
- Unescaped character > at index 2
- Character does not need escaping c index 3
- Character does not need escaping d index 4
- Character does not need escaping e index 5
- Character does not need escaping f index 6
- _mystring=abc>def
- Character does not need escaping a index 0
- Character does not need escaping b index 1
- Character does not need escaping c index 2
- Unescaped character > at index 3
- Character does not need escaping d index 4
- Character does not need escaping e index 5
- Character does not need escaping f index 6
- _mystring=abcd|ef
- Character does not need escaping a index 0
- Character does not need escaping b index 1
- Character does not need escaping c index 2
- Character does not need escaping d index 3
- Unescaped character | at index 4
- Character does not need escaping e index 5
- Character does not need escaping f index 6
- _mystring=abcde|f
- Character does not need escaping a index 0
- Character does not need escaping b index 1
- Character does not need escaping c index 2
- Character does not need escaping d index 3
- Character does not need escaping e index 4
- Unescaped character | at index 5
- Character does not need escaping f index 6
- Same as previous, but with added escape characters as needed so satify "properly escaped" status
- _mystring=abcdef
- Character does not need escaping a index 0
- Character does not need escaping b index 1
- Character does not need escaping c index 2
- Character does not need escaping d index 3
- Character does not need escaping e index 4
- Character does not need escaping f index 5
- _mystring=ab%%cdef
- Character does not need escaping a index 0
- Character does not need escaping b index 1
- Character does not need escaping c index 4
- Character does not need escaping d index 5
- Character does not need escaping e index 6
- Character does not need escaping f index 7
- _mystring=abc%%def
- Character does not need escaping a index 0
- Character does not need escaping b index 1
- Character does not need escaping c index 2
- Character does not need escaping d index 5
- Character does not need escaping e index 6
- Character does not need escaping f index 7
- _mystring=abcd^"ef
- Character does not need escaping a index 0
- Character does not need escaping b index 1
- Character does not need escaping c index 2
- Character does not need escaping d index 3
- Unescaped character " at index 5
- Character does not need escaping e index 6
- Character does not need escaping f index 7
- _mystring=abcde^"f
- Character does not need escaping a index 0
- Character does not need escaping b index 1
- Character does not need escaping c index 2
- Character does not need escaping d index 3
- Character does not need escaping e index 4
- Unescaped character " at index 6
- Character does not need escaping f index 7
- _mystring=abcd^&ef
- Character does not need escaping a index 0
- Character does not need escaping b index 1
- Character does not need escaping c index 2
- Character does not need escaping d index 3
- Character does not need escaping e index 6
- Character does not need escaping f index 7
- _mystring=abc^&def
- Character does not need escaping a index 0
- Character does not need escaping b index 1
- Character does not need escaping c index 2
- Character does not need escaping d index 5
- Character does not need escaping e index 6
- Character does not need escaping f index 7
- _mystring=ab^<cdef
- Character does not need escaping a index 0
- Character does not need escaping b index 1
- Character does not need escaping c index 4
- Character does not need escaping d index 5
- Character does not need escaping e index 6
- Character does not need escaping f index 7
- _mystring=a^<bcdef
- Character does not need escaping a index 0
- Character does not need escaping b index 3
- Character does not need escaping c index 4
- Character does not need escaping d index 5
- Character does not need escaping e index 6
- Character does not need escaping f index 7
- _mystring=ab^>cdef
- Character does not need escaping a index 0
- Character does not need escaping b index 1
- Character does not need escaping c index 4
- Character does not need escaping d index 5
- Character does not need escaping e index 6
- Character does not need escaping f index 7
- _mystring=abc^>def
- Character does not need escaping a index 0
- Character does not need escaping b index 1
- Character does not need escaping c index 2
- Character does not need escaping d index 5
- Character does not need escaping e index 6
- Character does not need escaping f index 7
- _mystring=abcd^|ef
- Character does not need escaping a index 0
- Character does not need escaping b index 1
- Character does not need escaping c index 2
- Character does not need escaping d index 3
- Character does not need escaping e index 6
- Character does not need escaping f index 7
- _mystring=abcde^|f
- Character does not need escaping a index 0
- Character does not need escaping b index 1
- Character does not need escaping c index 2
- Character does not need escaping d index 3
- Character does not need escaping e index 4
- Character does not need escaping f index 7
- Output in array form of all unescaped special character
- _mystring=abcdef
- Array IndexOfSpecialChar[x] is empty
- _mystring=ab%cdef
- IndexOfSpecialChar[0]=2
- IndexOfSpecialChar[0].type=percentsign
- _mystring=abc%def
- IndexOfSpecialChar[0]=3
- IndexOfSpecialChar[0].type=percentsign
- _mystring=abcd"ef
- IndexOfSpecialChar[0]=4
- IndexOfSpecialChar[0].type=doublequotes
- _mystring=abcde"f
- IndexOfSpecialChar[0]=5
- IndexOfSpecialChar[0].type=doublequotes
- _mystring=abcd&ef
- IndexOfSpecialChar[0]=4
- IndexOfSpecialChar[0].type=ampersand
- _mystring=abc&def
- IndexOfSpecialChar[0]=3
- IndexOfSpecialChar[0].type=ampersand
- _mystring=ab<cdef
- IndexOfSpecialChar[0]=2
- IndexOfSpecialChar[0].type=lessthan
- _mystring=a<bcdef
- IndexOfSpecialChar[0]=1
- IndexOfSpecialChar[0].type=lessthan
- _mystring=ab>cdef
- IndexOfSpecialChar[0]=2
- IndexOfSpecialChar[0].type=greaterthan
- _mystring=abc>def
- IndexOfSpecialChar[0]=3
- IndexOfSpecialChar[0].type=greaterthan
- _mystring=abcd|ef
- IndexOfSpecialChar[0]=4
- IndexOfSpecialChar[0].type=pipe
- _mystring=abcde|f
- IndexOfSpecialChar[0]=5
- IndexOfSpecialChar[0].type=pipe
- Same as previous, but with added escape characters as needed so satify "properly escaped" status
- _mystring=abcdef
- Array IndexOfSpecialChar[x] is empty
- _mystring=ab%%cdef
- Array IndexOfSpecialChar[x] is empty
- _mystring=abc%%def
- Array IndexOfSpecialChar[x] is empty
- _mystring=abcd^"ef
- Array IndexOfSpecialChar[x] is empty
- _mystring=abcde^"f
- Array IndexOfSpecialChar[x] is empty
- _mystring=abcd^&ef
- Array IndexOfSpecialChar[x] is empty
- _mystring=abc^&def
- Array IndexOfSpecialChar[x] is empty
- _mystring=ab^<cdef
- Array IndexOfSpecialChar[x] is empty
- _mystring=a^<bcdef
- Array IndexOfSpecialChar[x] is empty
- _mystring=ab^>cdef
- Array IndexOfSpecialChar[x] is empty
- _mystring=abc^>def
- Array IndexOfSpecialChar[x] is empty
- _mystring=abcd^|ef
- Array IndexOfSpecialChar[x] is empty
- _mystring=abcde^|f
- Array IndexOfSpecialChar[x] is empty
- Same as previous, but with one escape carret too many on each line, excess adjacent escape characters like carret, percentsigns (and doublequotes) need more attention
- _mystring=abcdef
- Array IndexOfSpecialChar[x] is empty
- _mystring=ab%%cdef
- Array IndexOfSpecialChar[x] is empty
- _mystring=abc%%def
- Array IndexOfSpecialChar[x] is empty
- _mystring=abcd^^"ef
- Array IndexOfSpecialChar[x] is empty
- _mystring=abcde^"f
- Array IndexOfSpecialChar[x] is empty
- _mystring=abcd^^&ef
- Array IndexOfSpecialChar[x] is empty
- 'def' is not recognized as an internal or external command,
- operable program or batch file.
- _mystring=abc^^
- Array IndexOfSpecialChar[x] is empty
- _mystring=ab^^<cdef
- Array IndexOfSpecialChar[x] is empty
- The system cannot find the file specified.
- _mystring=ab^^<cdef
- Array IndexOfSpecialChar[x] is empty
- _mystring=ab^^>cdef
- Array IndexOfSpecialChar[x] is empty
- _mystring=abc^^
- Array IndexOfSpecialChar[x] is empty
- _mystring=abcd^^|ef
- Array IndexOfSpecialChar[x] is empty
- demo finished
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement