emposha / Shell-Detector

Shell Detector – is a application that helps you find and identify php/cgi(perl)/asp/aspx shells. Shell Detector has a “web shells” signature database that helps to identify “web shell” up to 99%.
http://shelldetector.com/
403 stars 149 forks source link

File open issue #7

Open tuwid opened 9 years ago

tuwid commented 9 years ago

Traceback (most recent call last): File "shelldetect.py", line 347, in shell.start() File "shelldetect.py", line 150, in start self.anaylize() File "shelldetect.py", line 160, in anaylize _content = open(_filename, 'rt', -1).read() IOError: [Errno 2] No such file or directory: '/path_with_weird_ending/.#generate_feeds.php'

tuwid commented 9 years ago

the issue is that the script is unable to follow sym links , its fixed by replacing the .# in the path variable

at line 160 you should add _filename = re.sub('.#', '', _filename)

this fixes the link follow