Skip to content

Instantly share code, notes, and snippets.

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

Hüseyin Meriç Yiğit hmyit

🏠
Working from home
View GitHub Profile
@hmyit
hmyit / Makefile
Created May 7, 2020 00:55 — forked from kanedo/Makefile
Makefile for Xcode C++ projects
#############################################################
# #
# Generic Makefile for C++ projects #
# Author: Gabriel <software@kanedo.net> #
# Date: 2014-04-18 #
# Version: 1.0 #
# #
#############################################################
@hmyit
hmyit / mmap.c
Created March 5, 2020 04:33 — forked from CoolerVoid/mmap.c
my mmap example
#include <stdio.h>
#include <sys/mman.h>
/*
simple function use with mmap and munmap
look the man from mmap,if you have questions...
*/
// return size of bytes on file , same to unix cmd "du -b file"
long FileSize(const char *file)
@hmyit
hmyit / gist:1950bdd07682390333e03cdb79d16ee0
Created January 15, 2020 19:03 — forked from kvanbere/gist:5350146
Semi-Generic CRC Bypass for MapleStory
/*
Semi-Generic CRC Bypass for MapleStory
Other uncredited authors for ideas/methods/concepts etc.
*/
#include <Windows.h>
static LPVOID lpvImgStart, lpvImgEnd, lpvMemBackup;
@hmyit
hmyit / crc14.c
Created January 15, 2020 18:59 — forked from NT7S/crc14.c
FT8 Encoding test script
/**
* \file
* Functions and types for CRC checks.
*
* Generated on Thu Dec 6 17:52:34 2018
* by pycrc v0.9.1, https://pycrc.org
* using the configuration:
* - Width = 14
* - Poly = 0x2757
* - XorIn = Undefined
/*
* crcheck.cpp
*
* Created on: Apr 1, 2017
* Author: Parth Parikh
*/
/*
MIT License
Copyright (c) 2017 Parth Parikh
/*
* crcheck.cpp
*
* Created on: Apr 1, 2017
* Author: Parth Parikh
*/
/*
MIT License
Copyright (c) 2017 Parth Parikh
/**
loader.c - Attemps fully port LoadLibrary() to a position-indepedent
vartion to facilitate the self-loading of a DLL and its
dependecies, as well as introduce evasive features to reduce
memory indicators.
Inspiration:
ZeroLoad - https://github.com/zerosum0x0/zeroload (zerosum0x0)
MemoryModule - https://github.com/fancycode/MemoryModule (fancycode)
@hmyit
hmyit / self_checksumming.c
Created January 5, 2020 20:00 — forked from RobinDavid/self_checksumming.c
PoC to checksum a given portion of the code
#define _GNU_SOURCE
#include <unistd.h>
#include <dlfcn.h>
#include <sys/mman.h>
#include <link.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
void *begin;
@hmyit
hmyit / vmp.hpp
Created January 5, 2020 20:00
C++ RAII semantics and literals for VMProtect string encryption APIs
#pragma once
#ifdef VMPROTECT
#include <VMProtectSDK.h>
#define VMP_STRINGIFY_(x) #x
#define VMP_STRINGIFY(x) VMP_STRINGIFY_(x)
#define VMP_DEFAULT_LABEL __FILE__ ":" __FUNCTION__ "(" VMP_STRINGIFY(__LINE__) ")"
#define VMP_BEGIN() VMProtectBegin(VMP_DEFAULT_LABEL)
@hmyit
hmyit / process_read.cpp
Created January 5, 2020 19:52 — forked from igaozp/process_read.cpp
进程通过读写内存共享数据
# include <windows.h>
# include <iostream>
int main(int argc, char* argv[])
{
HANDLE lhShareMemory;
char* lpcBuffer;
lhShareMemory = OpenFileMapping(FILE_MAP_READ, false, "mySharedMemory");
if (NULL == lhShareMemory)