Advertisement
Guest User

Untitled

a guest
Jun 13th, 2023
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.90 KB | None | 0 0
  1. script https://pastebin.com/eV8VEYML
  2.  
  3. console output
  4.  
  5. _mystring=abcdef
  6. Character does not need escaping a index 0
  7. Character does not need escaping b index 1
  8. Character does not need escaping c index 2
  9. Character does not need escaping d index 3
  10. Character does not need escaping e index 4
  11. Character does not need escaping f index 5
  12.  
  13. _mystring=ab%cdef
  14. Character does not need escaping a index 0
  15. Character does not need escaping b index 1
  16. Unescaped character % at index 2
  17. Character does not need escaping c index 3
  18. Character does not need escaping d index 4
  19. Character does not need escaping e index 5
  20. Character does not need escaping f index 6
  21.  
  22. _mystring=abc%def
  23. Character does not need escaping a index 0
  24. Character does not need escaping b index 1
  25. Character does not need escaping c index 2
  26. Unescaped character % at index 3
  27. Character does not need escaping d index 4
  28. Character does not need escaping e index 5
  29. Character does not need escaping f index 6
  30.  
  31. _mystring=abcd"ef
  32. Character does not need escaping a index 0
  33. Character does not need escaping b index 1
  34. Character does not need escaping c index 2
  35. Character does not need escaping d index 3
  36. Unescaped character " at index 4
  37. Unescaped character " at index 4
  38. Character does not need escaping e index 5
  39. Character does not need escaping f index 6
  40.  
  41. _mystring=abcde"f
  42. Character does not need escaping a index 0
  43. Character does not need escaping b index 1
  44. Character does not need escaping c index 2
  45. Character does not need escaping d index 3
  46. Character does not need escaping e index 4
  47. Unescaped character " at index 5
  48. Unescaped character " at index 5
  49. Character does not need escaping f index 6
  50.  
  51. _mystring=abcd&ef
  52. Character does not need escaping a index 0
  53. Character does not need escaping b index 1
  54. Character does not need escaping c index 2
  55. Character does not need escaping d index 3
  56. Unescaped character & at index 4
  57. Character does not need escaping e index 5
  58. Character does not need escaping f index 6
  59.  
  60. _mystring=abc&def
  61. Character does not need escaping a index 0
  62. Character does not need escaping b index 1
  63. Character does not need escaping c index 2
  64. Unescaped character & at index 3
  65. Character does not need escaping d index 4
  66. Character does not need escaping e index 5
  67. Character does not need escaping f index 6
  68.  
  69. _mystring=ab<cdef
  70. Character does not need escaping a index 0
  71. Character does not need escaping b index 1
  72. Unescaped character < at index 2
  73. Character does not need escaping c index 3
  74. Character does not need escaping d index 4
  75. Character does not need escaping e index 5
  76. Character does not need escaping f index 6
  77.  
  78. _mystring=a<bcdef
  79. Character does not need escaping a index 0
  80. Unescaped character < at index 1
  81. Character does not need escaping b index 2
  82. Character does not need escaping c index 3
  83. Character does not need escaping d index 4
  84. Character does not need escaping e index 5
  85. Character does not need escaping f index 6
  86.  
  87. _mystring=ab>cdef
  88. Character does not need escaping a index 0
  89. Character does not need escaping b index 1
  90. Unescaped character > at index 2
  91. Character does not need escaping c index 3
  92. Character does not need escaping d index 4
  93. Character does not need escaping e index 5
  94. Character does not need escaping f index 6
  95.  
  96. _mystring=abc>def
  97. Character does not need escaping a index 0
  98. Character does not need escaping b index 1
  99. Character does not need escaping c index 2
  100. Unescaped character > at index 3
  101. Character does not need escaping d index 4
  102. Character does not need escaping e index 5
  103. Character does not need escaping f index 6
  104.  
  105. _mystring=abcd|ef
  106. Character does not need escaping a index 0
  107. Character does not need escaping b index 1
  108. Character does not need escaping c index 2
  109. Character does not need escaping d index 3
  110. Unescaped character | at index 4
  111. Character does not need escaping e index 5
  112. Character does not need escaping f index 6
  113.  
  114. _mystring=abcde|f
  115. Character does not need escaping a index 0
  116. Character does not need escaping b index 1
  117. Character does not need escaping c index 2
  118. Character does not need escaping d index 3
  119. Character does not need escaping e index 4
  120. Unescaped character | at index 5
  121. Character does not need escaping f index 6
  122.  
  123. Same as previous, but with added escape characters as needed so satify "properly escaped" status
  124.  
  125. _mystring=abcdef
  126. Character does not need escaping a index 0
  127. Character does not need escaping b index 1
  128. Character does not need escaping c index 2
  129. Character does not need escaping d index 3
  130. Character does not need escaping e index 4
  131. Character does not need escaping f index 5
  132.  
  133. _mystring=ab%%cdef
  134. Character does not need escaping a index 0
  135. Character does not need escaping b index 1
  136. Character does not need escaping c index 4
  137. Character does not need escaping d index 5
  138. Character does not need escaping e index 6
  139. Character does not need escaping f index 7
  140.  
  141. _mystring=abc%%def
  142. Character does not need escaping a index 0
  143. Character does not need escaping b index 1
  144. Character does not need escaping c index 2
  145. Character does not need escaping d index 5
  146. Character does not need escaping e index 6
  147. Character does not need escaping f index 7
  148.  
  149. _mystring=abcd^"ef
  150. Character does not need escaping a index 0
  151. Character does not need escaping b index 1
  152. Character does not need escaping c index 2
  153. Character does not need escaping d index 3
  154. Unescaped character " at index 5
  155. Character does not need escaping e index 6
  156. Character does not need escaping f index 7
  157.  
  158. _mystring=abcde^"f
  159. Character does not need escaping a index 0
  160. Character does not need escaping b index 1
  161. Character does not need escaping c index 2
  162. Character does not need escaping d index 3
  163. Character does not need escaping e index 4
  164. Unescaped character " at index 6
  165. Character does not need escaping f index 7
  166.  
  167. _mystring=abcd^&ef
  168. Character does not need escaping a index 0
  169. Character does not need escaping b index 1
  170. Character does not need escaping c index 2
  171. Character does not need escaping d index 3
  172. Character does not need escaping e index 6
  173. Character does not need escaping f index 7
  174.  
  175. _mystring=abc^&def
  176. Character does not need escaping a index 0
  177. Character does not need escaping b index 1
  178. Character does not need escaping c index 2
  179. Character does not need escaping d index 5
  180. Character does not need escaping e index 6
  181. Character does not need escaping f index 7
  182.  
  183. _mystring=ab^<cdef
  184. Character does not need escaping a index 0
  185. Character does not need escaping b index 1
  186. Character does not need escaping c index 4
  187. Character does not need escaping d index 5
  188. Character does not need escaping e index 6
  189. Character does not need escaping f index 7
  190.  
  191. _mystring=a^<bcdef
  192. Character does not need escaping a index 0
  193. Character does not need escaping b index 3
  194. Character does not need escaping c index 4
  195. Character does not need escaping d index 5
  196. Character does not need escaping e index 6
  197. Character does not need escaping f index 7
  198.  
  199. _mystring=ab^>cdef
  200. Character does not need escaping a index 0
  201. Character does not need escaping b index 1
  202. Character does not need escaping c index 4
  203. Character does not need escaping d index 5
  204. Character does not need escaping e index 6
  205. Character does not need escaping f index 7
  206.  
  207. _mystring=abc^>def
  208. Character does not need escaping a index 0
  209. Character does not need escaping b index 1
  210. Character does not need escaping c index 2
  211. Character does not need escaping d index 5
  212. Character does not need escaping e index 6
  213. Character does not need escaping f index 7
  214.  
  215. _mystring=abcd^|ef
  216. Character does not need escaping a index 0
  217. Character does not need escaping b index 1
  218. Character does not need escaping c index 2
  219. Character does not need escaping d index 3
  220. Character does not need escaping e index 6
  221. Character does not need escaping f index 7
  222.  
  223. _mystring=abcde^|f
  224. Character does not need escaping a index 0
  225. Character does not need escaping b index 1
  226. Character does not need escaping c index 2
  227. Character does not need escaping d index 3
  228. Character does not need escaping e index 4
  229. Character does not need escaping f index 7
  230.  
  231. Output in array form of all unescaped special character
  232.  
  233. _mystring=abcdef
  234. Array IndexOfSpecialChar[x] is empty
  235.  
  236. _mystring=ab%cdef
  237. IndexOfSpecialChar[0]=2
  238. IndexOfSpecialChar[0].type=percentsign
  239.  
  240. _mystring=abc%def
  241. IndexOfSpecialChar[0]=3
  242. IndexOfSpecialChar[0].type=percentsign
  243.  
  244. _mystring=abcd"ef
  245. IndexOfSpecialChar[0]=4
  246. IndexOfSpecialChar[0].type=doublequotes
  247.  
  248. _mystring=abcde"f
  249. IndexOfSpecialChar[0]=5
  250. IndexOfSpecialChar[0].type=doublequotes
  251.  
  252. _mystring=abcd&ef
  253. IndexOfSpecialChar[0]=4
  254. IndexOfSpecialChar[0].type=ampersand
  255.  
  256. _mystring=abc&def
  257. IndexOfSpecialChar[0]=3
  258. IndexOfSpecialChar[0].type=ampersand
  259.  
  260. _mystring=ab<cdef
  261. IndexOfSpecialChar[0]=2
  262. IndexOfSpecialChar[0].type=lessthan
  263.  
  264. _mystring=a<bcdef
  265. IndexOfSpecialChar[0]=1
  266. IndexOfSpecialChar[0].type=lessthan
  267.  
  268. _mystring=ab>cdef
  269. IndexOfSpecialChar[0]=2
  270. IndexOfSpecialChar[0].type=greaterthan
  271.  
  272. _mystring=abc>def
  273. IndexOfSpecialChar[0]=3
  274. IndexOfSpecialChar[0].type=greaterthan
  275.  
  276. _mystring=abcd|ef
  277. IndexOfSpecialChar[0]=4
  278. IndexOfSpecialChar[0].type=pipe
  279.  
  280. _mystring=abcde|f
  281. IndexOfSpecialChar[0]=5
  282. IndexOfSpecialChar[0].type=pipe
  283.  
  284. Same as previous, but with added escape characters as needed so satify "properly escaped" status
  285.  
  286. _mystring=abcdef
  287. Array IndexOfSpecialChar[x] is empty
  288.  
  289. _mystring=ab%%cdef
  290. Array IndexOfSpecialChar[x] is empty
  291.  
  292. _mystring=abc%%def
  293. Array IndexOfSpecialChar[x] is empty
  294.  
  295. _mystring=abcd^"ef
  296. Array IndexOfSpecialChar[x] is empty
  297.  
  298. _mystring=abcde^"f
  299. Array IndexOfSpecialChar[x] is empty
  300.  
  301. _mystring=abcd^&ef
  302. Array IndexOfSpecialChar[x] is empty
  303.  
  304. _mystring=abc^&def
  305. Array IndexOfSpecialChar[x] is empty
  306.  
  307. _mystring=ab^<cdef
  308. Array IndexOfSpecialChar[x] is empty
  309.  
  310. _mystring=a^<bcdef
  311. Array IndexOfSpecialChar[x] is empty
  312.  
  313. _mystring=ab^>cdef
  314. Array IndexOfSpecialChar[x] is empty
  315.  
  316. _mystring=abc^>def
  317. Array IndexOfSpecialChar[x] is empty
  318.  
  319. _mystring=abcd^|ef
  320. Array IndexOfSpecialChar[x] is empty
  321.  
  322. _mystring=abcde^|f
  323. Array IndexOfSpecialChar[x] is empty
  324.  
  325. 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
  326.  
  327. _mystring=abcdef
  328. Array IndexOfSpecialChar[x] is empty
  329.  
  330. _mystring=ab%%cdef
  331. Array IndexOfSpecialChar[x] is empty
  332.  
  333. _mystring=abc%%def
  334. Array IndexOfSpecialChar[x] is empty
  335.  
  336. _mystring=abcd^^"ef
  337. Array IndexOfSpecialChar[x] is empty
  338.  
  339. _mystring=abcde^"f
  340. Array IndexOfSpecialChar[x] is empty
  341.  
  342. _mystring=abcd^^&ef
  343. Array IndexOfSpecialChar[x] is empty
  344.  
  345. 'def' is not recognized as an internal or external command,
  346. operable program or batch file.
  347. _mystring=abc^^
  348. Array IndexOfSpecialChar[x] is empty
  349.  
  350. _mystring=ab^^<cdef
  351. Array IndexOfSpecialChar[x] is empty
  352.  
  353. The system cannot find the file specified.
  354. _mystring=ab^^<cdef
  355. Array IndexOfSpecialChar[x] is empty
  356.  
  357. _mystring=ab^^>cdef
  358. Array IndexOfSpecialChar[x] is empty
  359.  
  360. _mystring=abc^^
  361. Array IndexOfSpecialChar[x] is empty
  362.  
  363. _mystring=abcd^^|ef
  364. Array IndexOfSpecialChar[x] is empty
  365. demo finished
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement