{"id":19369420,"url":"https://github.com/kara-4search/windowseventlogsbypass_csharp","last_synced_at":"2025-04-23T15:31:31.454Z","repository":{"id":136107269,"uuid":"372437039","full_name":"Kara-4search/WindowsEventLogsBypass_Csharp","owner":"Kara-4search","description":"Bypass windows eventlogs \u0026 Sysmon","archived":false,"fork":false,"pushed_at":"2021-08-24T09:59:31.000Z","size":47,"stargazers_count":15,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-02T17:01:32.355Z","etag":null,"topics":["administrator-privilege","avatar","bypass","bypass-uac","csharp","eventlogs","pentest","redteam","sleep","sysmon"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Kara-4search.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-31T08:33:16.000Z","updated_at":"2024-08-16T22:30:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"96c77ab5-cb24-4ffc-a6b5-060083ea5c83","html_url":"https://github.com/Kara-4search/WindowsEventLogsBypass_Csharp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kara-4search%2FWindowsEventLogsBypass_Csharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kara-4search%2FWindowsEventLogsBypass_Csharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kara-4search%2FWindowsEventLogsBypass_Csharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kara-4search%2FWindowsEventLogsBypass_Csharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kara-4search","download_url":"https://codeload.github.com/Kara-4search/WindowsEventLogsBypass_Csharp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250460400,"owners_count":21434245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["administrator-privilege","avatar","bypass","bypass-uac","csharp","eventlogs","pentest","redteam","sleep","sysmon"],"created_at":"2024-11-10T08:11:09.750Z","updated_at":"2025-04-23T15:31:31.449Z","avatar_url":"https://github.com/Kara-4search.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WindowsEventLogsBypass_Csharp\n\nBlog link: working on it\n* Bypass **windows eventlogs** \u0026 **Sysmon**,only tested in win10_x64.\n\n* Only for red team purpose, and you need to change the codes if u use it for pentest.\n* You need **administrator privilege** to run it.\n* You also need **administrator privilege** to debug or test the code(In VS).\n* Feel free to make any issues or advice.\n\n\n\nProcess Explorer\n\n![avatar](https://raw.githubusercontent.com/Kara-4search/tempPic/main/Screen%20Shot%202021-05-31%20at%205.05.31%20PM.png)\n\n\n\n![avatar](https://raw.githubusercontent.com/Kara-4search/tempPic/main/Screen%20Shot%202021-05-31%20at%205.22.34%20PM.png)\n\n\n\n## Usage\n\n1. Remove the “System.Threading.Thread.Sleep”  in main function，the “System.Threading.Thread.Sleep” is for debugging purpose.\n\n   ​\t![avatar](https://raw.githubusercontent.com/Kara-4search/tempPic/main/WindowsEventLogsBypass_Csharp_sleep.png)\n\n2. Run it with **administrator privilege**, for that you gonna need to bypass UAC first.(which I will update a bypass UAC project soon).\n\n3. if u need to debug or test it you need to run VS with **administrator privilege** first, open a powershell or a cmd with  **administrator privilege** and run your VS(\n\n   * for example\n\n     * cd “C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE”;\n\n     * .\\devenv.exe\n\n       ![avatar](https://raw.githubusercontent.com/Kara-4search/tempPic/main/WindowsEventLogsBypass_Csharp_dev.png)\n\n## TO-DO list\n1. Restruct code \n\n## Update history\n- NONE\n  \n\n## Reference link\n\n1. https://www.pinvoke.net/search.aspx?search=NtWriteVirtualMemory\u0026namespace=[All]\n2. https://wj32.org/wp/2010/03/30/howto-use-i_querytaginformation/\n3. https://github.com/3gstudent/Eventlogedit-evtx--Evolution/blob/master/SuspendorResumeTidEx.cpp\n4. https://0cch.com/2015/01/24/e794a8service-tage58cbae58886e585b1e4baabe7b1bbe59e8be69c8de58aa1e7babfe7a88b/\n5. https://artofpwn.com/2017/06/05/phant0m-killing-windows-event-log.html\n6. https://www.ired.team/offensive-security/defense-evasion/disabling-windows-event-logs-by-suspending-eventlog-service-threads\n7. https://blog.csdn.net/singleyellow/article/details/93394557\n8. https://github.com/3gstudent/Windows-EventLog-Bypass/blob/master/WindowsEventLogBypass.cpp\n9. https://www.pinvoke.net/default.aspx/advapi32.adjusttokenprivileges\n\n1. https://www.cnblogs.com/DeeLMind/p/7194102.html\n2. https://www.pinvoke.net/default.aspx/kernel32/SuspendThread.html","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkara-4search%2Fwindowseventlogsbypass_csharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkara-4search%2Fwindowseventlogsbypass_csharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkara-4search%2Fwindowseventlogsbypass_csharp/lists"}