Removed non-ascii character from Get-FoxDump.ps1
Added ascii check before module tasking1.6
parent
38ca880cf5
commit
743fe02b44
|
@ -1,4 +1,4 @@
|
|||
Function Get-FoxDump
|
||||
Function Get-FoxDump
|
||||
{
|
||||
<#
|
||||
.SYNOPSIS
|
||||
|
|
|
@ -2414,6 +2414,12 @@ class ModuleMenu(cmd.Cmd):
|
|||
dispatcher.send("[!] Error: module produced an empty script", sender="Empire")
|
||||
return
|
||||
|
||||
try:
|
||||
moduleData.decode('ascii')
|
||||
except UnicodeDecodeError:
|
||||
print helpers.color("[!] Error: module source contains non-ascii characters")
|
||||
return
|
||||
|
||||
# strip all comments from the module
|
||||
moduleData = helpers.strip_powershell_comments(moduleData)
|
||||
|
||||
|
|
Loading…
Reference in New Issue