http403 / pyrit

Automatically exported from code.google.com/p/pyrit
0 stars 0 forks source link

Error running verify and selftest #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I'm using 0.2.3-dev r109

Renaming the /root/.pyrit/hosts directory lets Pyrit to create a hosts file
and solves this issue.

This is the error I get.

Traceback (most recent call last):
  File "/usr/local/bin/pyrit", line 1092, in <module>
    Pyrit_CLI().init()
  File "/usr/local/bin/pyrit", line 193, in init
    }.setdefault(commands[0] if len(commands) > 0 else 'help',
self.print_help)()
  File "/usr/local/bin/pyrit", line 597, in verify
    cp = cpyrit.CPyrit()
  File "/usr/local/lib/python2.6/dist-packages/cpyrit.py", line 273, in
__init__
    for host in open(hostfile, "r"):
IOError: [Errno 21] Is a directory: '/root/.pyrit/hosts'

Thanks,
Max

Original issue reported on code.google.com by maximd%p...@gtempaccount.com on 5 Jul 2009 at 9:35

GoogleCodeExporter commented 9 years ago
This is an old version vs new version issue.

~/.pyrit/hosts the file became ~/.pyrit/hosts the directory that contains a 
file.
pyrit could handle is more gracefully, but you can just remove or rename the 
file.

Original comment by starhe...@gmail.com on 6 Jul 2009 at 1:17

GoogleCodeExporter commented 9 years ago
Actually it's the other way around. r107 used to create ~/.pyrit/hosts as a 
directory
if ~/.pyrit was not present.

Fixed in r108 and up

Original comment by lukas.l...@gmail.com on 6 Jul 2009 at 6:32