Skip to content

Instantly share code, notes, and snippets.

View 474172261's full-sized avatar

VictorV 474172261

View GitHub Profile
@474172261
474172261 / .gdbinit
Last active August 26, 2022 09:18
based on other gdbinit. add more commands for debug
set architecture i386:x86-64:intel
handle SIGPIPE noprint nostop
define pi
get_insn_type $pc
if($INSN_TYPE==3)
echo pass a call\n
si
fin
else
ni
@474172261
474172261 / windowsUpdataScan.cpp
Last active October 9, 2022 10:23
scan windows update patches and check if installed.
#include <Windows.h>
#include <iostream>
#include <atlbase.h>
#include <Wuapi.h>
#include <wuerror.h>
#include <list>
#include <fstream>
#include <MsXml.h>
#include "atlbase.h"
#include "atlstr.h"