Skip to content

ceramicskate0/AutoUpdateSysmonEXE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AutoUpdateSysmonEXE

How to use:

  • Compile and run your own.
  • Run AutoUpdateSysmonEXE.exe as a scheduled task (as LOCAL ADMIN) per sysmon guidance.

How to Run:

       Args must be in this fomat:
       
       AutoUpdateSysmon.exe 'URL of Sysmon Config' 'Host Computer File Path of Sysmon xml file'
       
       Example: ./AutoUpdateSysmon.exe 'https://raw.githubusercontent.com/ceramicskate0/sysmon-config/master/sysmonconfig-  
       export.xml' 'C:\Windows\sysmonconfig-export.xml'

Flagged by AV? Here's why:

        Wclient.DownloadFile(@"https://raw.githubusercontent.com/ceramicskate0/sysmon-config/master/sysmonconfig-export.xml",    @"C:\Windows\sysmonconfig-export.xml");
        
        ProcessStartInfo startInfo = new ProcessStartInfo(@"C:\Windows\Sysmon.exe", @"-c C:\Windows\sysmonconfig-export.xml");
        
        startInfo.WorkingDirectory = Path.GetDirectoryName(@"C:\Windows\");
        
        startInfo.RedirectStandardOutput = true;
        
        startInfo.RedirectStandardError = true;
        
        startInfo.LoadUserProfile = true;
        
        startInfo.UseShellExecute = false;
        
        startInfo.CreateNoWindow = true;
        
        Process process = new Process();
        
        process.StartInfo = startInfo;
        
        process.Start();

In short its because im downloading a file to C:\Windows by default (sysmon default install location) and the starting a program that calls it.

Feel free to replace the URL to your favorite or your own config. Same with the sysmon location.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages