Skip to content

Instantly share code, notes, and snippets.

View lanleft's full-sized avatar
✌️
lit from within

lanleft

✌️
lit from within
  • Singapore
View GitHub Profile
#include <fcntl.h>
#include <linux/userfaultfd.h>
#include <poll.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/ioctl.h>
@lanleft
lanleft / Banking_Tech.md
Last active October 13, 2021 10:10
Script_zerologon

ZeroLogon 1

from impacket.dcerpc.v5 import nrpc, epm
from impacket.dcerpc.v5.dtypes import NULL
from impacket.dcerpc.v5 import transport
from impacket import crypto
from impacket.dcerpc.v5.ndr import NDRCALL
import impacket

from binascii import hexlify, unhexlify
# ============= prepare ============================================
# [1. find original entry point (using lief)]
# 2. timer countdown (using time) --> time + countdown
# 3. compile time_shell: nasm -f bin -o time_shell.bin time_shell.s
# ============= elfinject =========================================
# 4.
# ./elfinject crackme time_shell.bin ".array_init" 0x5000 -1