Skip to content

Instantly share code, notes, and snippets.

View playniuniu's full-sized avatar

玩牛牛 playniuniu

View GitHub Profile
@playniuniu
playniuniu / go-remote-process-dll-inject-example.go
Created December 11, 2024 16:16 — forked from timsonner/go-remote-process-dll-inject-example.go
GoLang. Working example of remote process DLL injection.
package main
import (
"fmt"
"os"
"strconv"
"syscall"
"unsafe"
)
@playniuniu
playniuniu / ffmpeg.md
Created May 22, 2021 02:21 — forked from steven2358/ffmpeg.md
FFmpeg cheat sheet
@playniuniu
playniuniu / Makefile
Created October 10, 2020 12:28
Makefile for cross compile rust
BINARY=hello_cargo
run:
# run
@cargo run
linux:
# build for linux
@rm -f ${BINARY}
@cargo build --release --target=x86_64-unknown-linux-musl
@playniuniu
playniuniu / aria2c.conf
Created October 8, 2020 04:43
aria2c conf
# set your own path
dir=/data/aria2
disk-cache=32M
file-allocation=trunc
continue=true
max-concurrent-downloads=10
max-connection-per-server=16
min-split-size=10M
split=5
@playniuniu
playniuniu / aes.go
Created July 5, 2020 11:43
Python3 & Go AES/CBC/PKS7Padding
package main
import (
"bytes"
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"encoding/base64"
"io"
"log"
@playniuniu
playniuniu / json.py
Created June 3, 2020 02:00
AndroidEmu
from ..java_class_def import JavaClassDef
from ..java_field_def import JavaFieldDef
from ..java_method_def import java_method_def, JavaMethodDef
from ..classes.string import String
class JSON(metaclass=JavaClassDef, jvm_name='org/json/JSONObject'):
def __init__(self):
pass
@playniuniu
playniuniu / example.py
Created April 8, 2020 15:10
getUserInfo error
import logging
import posixpath
import sys
import os.path
from unicorn import *
from unicorn.arm_const import *
from androidemu.emulator import Emulator
import androidemu.utils.debug_utils
# https://crackmes.one/crackme/5c268e8333c5d41e58e00654
import random
available_character = list("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789")
key_pass = []
final_charcter = 0
def generate_character():
global available_character
@playniuniu
playniuniu / Makefile
Created March 22, 2020 09:35
Genreate Pure ASM
BUILD_FLAG=-Og -masm=intel -fno-exceptions -fno-asynchronous-unwind-tables -fno-stack-protector
run: build
output/main
build:
gcc ${BUILD_FLAG} -o output/main src/main.c
asm:
gcc ${BUILD_FLAG} -S -o output/main.asm src/main.c
@playniuniu
playniuniu / changespeed.sh
Created March 10, 2020 09:01
change video speed with ffmpeg
#!/bin/sh
# Refer: https://trac.ffmpeg.org/wiki/How%20to%20speed%20up%20/%20slow%20down%20a%20video
ffmpeg -y -i origi.mp4 -filter_complex "[0:v]setpts=2*PTS[v];[0:a]atempo=0.5[a]" -map "[v]" -map "[a]" 0.5.mp4