heuristic.py 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-"
  3. # vim: set expandtab tabstop=4 shiftwidth=4:
  4. """
  5. $Id$
  6. This file is part of the xsser project, http://xsser.03c8.net
  7. Copyright (c) 2011/2016 psy <epsylon@riseup.net>
  8. xsser is free software; you can redistribute it and/or modify it under
  9. the terms of the GNU General Public License as published by the Free
  10. Software Foundation version 3 of the License.
  11. xsser is distributed in the hope that it will be useful, but WITHOUT ANY
  12. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  13. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  14. details.
  15. You should have received a copy of the GNU General Public License along
  16. with xsser; if not, write to the Free Software Foundation, Inc., 51
  17. Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  18. """
  19. ## This file contains different XSS fuzzing vectors.
  20. ## If you have some new, please email me to [epsylon@riseup.net]
  21. ## Happy Cross Hacking! ;)
  22. heuristic_test = [
  23. # ascii
  24. { 'payload' : """XSS\\XSS""",
  25. 'browser' : """[Heuristic test]""" },
  26. { 'payload' : """XSS/XSS""",
  27. 'browser' : """[Heuristic test]""" },
  28. { 'payload' : """XSS>XSS""",
  29. 'browser' : """[Heuristic test]""" },
  30. { 'payload' : """XSS<XSS""",
  31. 'browser' : """[Heuristic test]""" },
  32. { 'payload' : """XSS;XSS""",
  33. 'browser' : """[Heuristic test]""" },
  34. { 'payload' : """XSS'XSS""",
  35. 'browser' : """[Heuristic test]""" },
  36. { 'payload' : '''XSS"XSS''',
  37. 'browser' : """[Heuristic test]""" },
  38. { 'payload' : """XSS=XSS""",
  39. 'browser' : """[Heuristic test]""" },
  40. # hex/une
  41. { 'payload' : """XSS%5CXSS""",
  42. 'browser' : """[Heuristic test]""" },
  43. # / is the same on Unicode than in ASCII
  44. #{ 'payload' : """XSS/XSS""",
  45. # 'browser' : """[Heuristic test]""" },
  46. { 'payload' : """XSS%3EXSS""",
  47. 'browser' : """[Heuristic test]""" },
  48. { 'payload' : """XSS%3CXSS""",
  49. 'browser' : """[Heuristic test]""" },
  50. { 'payload' : """XSS%3BXSS""",
  51. 'browser' : """[Heuristic test]""" },
  52. { 'payload' : """XSS%27XSS""",
  53. 'browser' : """[Heuristic test]""" },
  54. { 'payload' : '''XSS%22XSS''',
  55. 'browser' : """[Heuristic test]""" },
  56. { 'payload' : """XSS%3DXSS""",
  57. 'browser' : """[Heuristic test]""" },
  58. # dec
  59. { 'payload' : """XSS&#92XSS""",
  60. 'browser' : """[Heuristic test]""" },
  61. { 'payload' : """XSS&#47XSS""",
  62. 'browser' : """[Heuristic test]""" },
  63. { 'payload' : """XSS&#62XSS""",
  64. 'browser' : """[Heuristic test]""" },
  65. { 'payload' : """XSS&#60XSS""",
  66. 'browser' : """[Heuristic test]""" },
  67. { 'payload' : """XSS&#59XSS""",
  68. 'browser' : """[Heuristic test]""" },
  69. { 'payload' : """XSS&#39XSS""",
  70. 'browser' : """[Heuristic test]""" },
  71. { 'payload' : '''XSS&#34XSS''',
  72. 'browser' : """[Heuristic test]""" },
  73. { 'payload' : """XSS&#61XSS""",
  74. 'browser' : """[Heuristic test]""" }
  75. ]