Exception handling for PayloadSettingSelectFile
This commit is contained in:
parent
0a6a452c27
commit
a4e8636834
1 changed files with 9 additions and 4 deletions
|
@ -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(); }
|
||||
}
|
||||
|
|
Reference in a new issue