Skip to content

Instantly share code, notes, and snippets.

View Inndy's full-sized avatar

Inndy Inndy

View GitHub Profile
#272822,#49483E,#FD971F,#FFFFFF,#49483E,#FFFFFF,#A6E22E,#EB4D5C,#49483E,#FFFFFF
# -*- coding: utf-8 -*-
"""DropboxToGDrive.ipynb
Automatically generated by Colaboratory.
"""
from google.colab import drive
drive.mount('/content/drive')
@Inndy
Inndy / wow64_read64Env.cpp
Created April 20, 2021 11:43 — forked from aaaddress1/wow64_read64Env.cpp
fetch current EXE path from 64 bit PEB->Ldr (In 32 bit mode)
// fetch current EXE path from 64 bit PEB->Ldr (In 32 bit mode)
// by [email protected]
#include <stdint.h>
#include <stdio.h>
#include <windows.h>
typedef struct _PEB_LDR_DATA64
{
ULONG Length;
BOOLEAN Initialized;
ULONG64 SsHandle;
@Inndy
Inndy / nemty_str_decoder.py
Created February 25, 2021 06:29 — forked from alexander-hanel/nemty_str_decoder.py
IDAPython script for decoding strings in nemty
import base64
from Crypto.Cipher import ARC4
def str_decrypt(enc_data):
key = 'fuckav\x00'
cipher = ARC4.new(key)
try:
enc_data = base64.b64decode(enc_data)
except:
return enc_data
#include <stddef.h>
#include <stdio.h>
#include <windows.h>
#include <winternl.h>
int main(void) {
int ret = 0;
PROCESS_INFORMATION PI = { 0 };
STARTUPINFOW SI = { 0 };
CONTEXT CTX = { CONTEXT_FULL };
@Inndy
Inndy / mystrings.c
Last active February 27, 2024 07:20
Use mmap to read file and output strings to stdout
/*
gcc mystrings.c -O3 -o mystrings
gcc -DSTRING_LENGTH 99 -DBUFFER_SIZE 0x10000 mystrings.c -O3 -o mystrings
*/
#include <string.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <unistd.h>
#include <sys/mman.h>
@Inndy
Inndy / WSL-Clipboard.sh
Created July 18, 2019 18:13
Access system clipboard within WSL
# put these lines into your ~/.bashrc
alias paste="powershell.exe -Command Get-Clipboard"
alias copy="powershell.exe -Command 'Set-Clipboard([Console]::In.ReadToEnd())'"
@Inndy
Inndy / make_certs.sh
Created May 9, 2019 07:56
Self sign root CA and certs with x509v3 subjectAltName record
#!/usr/bin/env bash
set -e
SUBJ="/C=TW/ST=Taiwan/L=TPE/O=Goooooooooogle/OU=Goooooooooogle DevOops Team/[email protected]"
ROOT_CA_NAME=GoooooooooogleRootCA
ROOT_CA_DAYS=$((365*4))
ROOT_CA_BITS=8192
@Inndy
Inndy / bfs.php
Created February 20, 2019 18:10
BFS algorithm using PHP
<?php
$maze = '
1111111
1000001
10S1001
1001001
10000E1
1000001
1111111

Usage

export MACOS_UNIVERSAL=no
pip install capstone # or something depends on capstone

Fore more detail...

Refer to this issue: capstone-engine/capstone#1235