Skip to content

Commit

Permalink
Updated T1118 Path and Code (redcanaryco#510)
Browse files Browse the repository at this point in the history
* Update T1118.yaml

* Update T1118.cs
  • Loading branch information
caseysmithrc authored and Michael Haag committed Jun 14, 2019
1 parent 6988597 commit cd32b7c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
19 changes: 17 additions & 2 deletions atomics/T1118/T1118.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,24 @@ atomic_tests:
filename:
description: location of the payload
type: Path
default: T1118.dll
default: C:\AtomicRedTeam\atomics\T1118\src\T1118.dll
executor:
name: command_prompt
command: |
C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe /target:library T1118.cs
C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe /target:library /out:C:\AtomicRedTeam\atomics\T1118\src\T1118.dll C:\AtomicRedTeam\atomics\T1118\src\T1118.cs
C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe /logfile= /LogToConsole=false /U #{filename}
- name: InstallUtil GetHelp method call
description: |
Executes the Uninstall Method
supported_platforms:
- windows
input_arguments:
filename:
description: location of the payload
type: Path
default: C:\AtomicRedTeam\atomics\T1118\src\T1118.dll
executor:
name: command_prompt
command: |
C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe /target:library /out:C:\AtomicRedTeam\atomics\T1118\src\T1118.dll C:\AtomicRedTeam\atomics\T1118\src\T1118.cs
C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe /? #{filename}
17 changes: 17 additions & 0 deletions atomics/T1118/src/T1118.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe /target:library T1118.cs
Step Two:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe /U /logfile= /logtoconsole=false T1118.dll
HelpText Invocation:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe /? T1118.dll
*/

public class Program
Expand All @@ -35,4 +40,16 @@ public override void Uninstall(System.Collections.IDictionary savedState)

Console.WriteLine("Hello There From Uninstall, If you are reading this, prevention has failed.\n");
}

// Override the property 'HelpText'.
//
public override string HelpText
{
get
{

return "Hello There From HelpText, If you are reading this, prevention has failed.\n";
}
}

}

0 comments on commit cd32b7c

Please sign in to comment.