UMDLARS / dtanm

A framework to teach adversarial thinking to software developers without requiring any special security knowledge
3 stars 2 forks source link

manager.py chokes on empty file #1

Closed pahp closed 6 years ago

pahp commented 6 years ago

manager.py chokes on an empty file with this error:

cctf@hack:~/bin$ ./manager.py 
Looking..       Attacks grabbed: 0
Traceback (most recent call last):
  File "./manager.py", line 34, in <module>
    if first_line[-1] != "\n":
IndexError: string index out of range
cctf@hack:~/bin$ 

The attack vector stays in the ~/attacks directory.