Exploit Scanner Skipping symlink

By Dave - November 10, 2013

Hi zaba, 

The program doesn't provide a way to disable that, but you could just modify the code if you like.

Just search for "sym" and add a # before xs_logOutput on this line:

    elseif (is_link($origPath)) { #xs_logOutput("Skipping symlink '$origPath' to '" .readlink($origPath). "' (to prevent infinite loops links are not followed!\n"); }

Hope that helps!

Dave Edis - Senior Developer
interactivetools.com

By zaba - November 11, 2013

Thanks Dave,

i'll give that a whirl.

regards

Chris

By zaba - November 11, 2013

  #  elseif (is_link($origPath)) { xs_logOutput("Skipping symlink '$origPath' to '" .readlink($origPath). "' (to prevent infinite loops links are not followed!\n"); }

moved it to the beginning as it kicked out an error

By Dave - November 11, 2013

Ahh, yes it was commenting out the closing brace } as well.  This is what you want: } # so it closes the elseif block but doesn't skip to the next elseif (which would cause symlinks to be followed).

elseif (is_link($origPath)) { } # xs_logOutput("Skipping symlink '$origPath' to '" .readlink($origPath). "' (to prevent infinite loops links are not followed!\n"); }

Dave Edis - Senior Developer
interactivetools.com

By zaba - November 11, 2013

Brill,

thanks!!