ncrocfer / csr2f

CSR2F is a Python tool used for generating CSRF (Cross-Site Request Forgery) exploits
http://ncrocfer.github.io/csr2f/
13 stars 9 forks source link

TypeError on initial run #2

Open benwalther opened 9 years ago

benwalther commented 9 years ago

Setup: fresh ubuntu image (14.04) fresh python3 install fresh git clone of this repo command: python3 WP-csrf+exploits/csr2f.py

Result:

Traceback (most recent call last):
  File "WP-csrf+exploits/csr2f.py", line 58, in <module>
    manager = Manager()
  File "/WP-csrf+exploits/core/manager.py", line 30, in __init__
    self.completer = CompleterManager()
  File "/WP-csrf+exploits/core/completer.py", line 34, in __init__
    self.commands = CommandsManager().commands()
  File "/WP-csrf+exploits/core/commands.py", line 355, in __init__
    'search': SearchCommand(),
  File "/WP-csrf+exploits/core/commands.py", line 120, in __init__
    self.exploits_list = OrderedDict(sorted(self.exploits_list.items(), key= lambda x: x[1]['date'], reverse=True))
TypeError: unorderable types: str() < NoneType()

Any suggestions? Will attempt to debug for a bit.

benwalther commented 9 years ago

Ah, was just an ordering by date for convenience.

Commented out line 120: #self.exploits_list = OrderedDict(sorted(self.exploits_list.items(), key= lambda x: x[1]['date'], reverse=True)) and everything works like a charm. Thanks!