Support for full path in /output
okazymyrov opened this issue · comments
Yeah this is a bit of a strange limitation and could be avoided by using IO.Path.GetFileName
to only apply the sanitization to the file name. Also even stranger is that only some parts of Rubeus use this when outputting data to file. Kerberoasting for example does let you specify a full path as the outfile
parameter because it doesn't use this MakeValidFileName
function, but asktgt
does use it so you can't specify a full path with that. I just tested changing the code in this function to allow it to support full file paths and asktgt
still seems to work fine so I'll raise a PR for it