reporter.py 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. class XSSerReporter(object):
  19. """
  20. Base class for objects wanting to receive report information from XSSer.
  21. It implements all callbacks so you will be safe ;)
  22. """
  23. def start_attack(self):
  24. pass
  25. def end_attack(self):
  26. pass
  27. def mosquito_crashed(self, dest_url, reason="unknown"):
  28. pass
  29. def report_state(self, state):
  30. pass
  31. def add_link(self, orig_url, dest_url):
  32. pass
  33. def report_error(self, error_msg):
  34. pass
  35. def start_token_check(self, dest_url):
  36. pass
  37. def start_crawl(self, dest_url):
  38. pass
  39. def post(self, msg):
  40. pass
  41. def token_arrived(self, token):
  42. pass
  43. def add_checked(self, dest_url):
  44. pass
  45. def add_success(self, dest_url):
  46. pass
  47. def add_failure(self, dest_url):
  48. pass