Skip to content

Instantly share code, notes, and snippets.

View debasishm89's full-sized avatar
🎯
Focusing

Debasish Mandal debasishm89

🎯
Focusing
View GitHub Profile
@Mandar-Shinde
Mandar-Shinde / WindowsEventLog.cpp
Created December 30, 2016 11:52
C++ Query Event Viewer Data
#include <windows.h>
#include <sddl.h>
#include <stdio.h>
#include <winevt.h>
#pragma comment(lib, "wevtapi.lib")
const int SIZE_DATA = 4096;
TCHAR XMLDataCurrent[SIZE_DATA];
@ECHO OFF
SETLOCAL
ECHO ASLR Enable / Diable Batch Script - Please run as admin
set /p Choice=Want to Enable or Disable ASLR? (e or d):%=%
if "%Choice%"=="e" goto :ENABLE
if "%Choice%"=="d" goto :DISABLE
:ENABLE