This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#free bugs, use for reference only | |
#free bugs, use for reference only | |
Function poc-dns1 { | |
[CmdletBinding()] | |
param( | |
#[Parameter(Mandatory=$true)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$events = Get-WinEvent -FilterHashtable ` | |
@{ ` | |
logname='Microsoft-Windows-Sysmon/Operational'; ` | |
id=1; ` | |
StartTime=(Get-Date).AddHours(-1); ` | |
EndTime=get-date ` | |
} | |
$dict = @{} | |
foreach ($log in $events) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
#include <conio.h> | |
#include <stdio.h> | |
#include <winevt.h> | |
#pragma comment(lib, "wevtapi.lib") | |
#define ARRAY_SIZE 10 | |
DWORD EnumerateResults(EVT_HANDLE hResults); |