Skip to content

Instantly share code, notes, and snippets.

View ZaronZ's full-sized avatar
🏠
Working from home

pivasicq ZaronZ

🏠
Working from home
  • Poland
View GitHub Profile
@ZaronZ
ZaronZ / findpattern.cpp
Created December 28, 2018 03:28
Windows intenal SEH find pattern
#include <windows.h>
#include <stdint.h>
uint8_t* findPattern(const char* data, size_t size)
{
SYSTEM_INFO systemInfo;
GetNativeSystemInfo(&systemInfo);
for (uint8_t* p = (uint8_t*)systemInfo.lpMinimumApplicationAddress; p < (uint8_t*)systemInfo.lpMaximumApplicationAddress; p++) {
__try {
@ZaronZ
ZaronZ / gist:fefe7bedd5b1c4fb8ec83b1fc1b9d2c3
Created March 5, 2018 03:20
Pure C project configuration for Visual Studio without CRT
Release/Debug:
General -> Whole Program Optimization -> No Whole Program Optimization
Linker -> Input -> Ignore All Default Libraries = Yes
Linker -> Manifest File -> Generate Manifest = Disabled
Linker -> Advanced -> Entry Point = (set EntryPointName)
C/C++ -> Code Generation -> Security Check = Disable Security Check
C/C++ -> Optimization -> Optimization = Disabled
C/C++ -> General -> SDL checks = (remove value)
C/C++ -> Advanced -> Compile As = Compile as C Code (if need C90)
@ZaronZ
ZaronZ / QT 5.7 Static
Created December 27, 2016 23:35
QT Static Compilation
..\configure -opensource -confirm-license -static -static-runtime -release -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -opengl desktop -make libs -no-icu -no-compile-examples -nomake examples^
-openssl-linked OPENSSL_LIBS="-lssleay32 -llibeay32 -lgdi32 -lUser32" -L G:\OpenSSL\OpenSSL-win32\lib -I G:\OpenSSL\OpenSSL-win32\include^
-prefix G:\QTSrc\Qt5.7.1-x32-static-ssl