Skip to content

Instantly share code, notes, and snippets.

View shahril96's full-sized avatar
🐢

Mohd Shahril shahril96

🐢
View GitHub Profile
@shahril96
shahril96 / bokep-exploit.py
Created December 21, 2019 03:52
Build exploit for wargames.my 2019's bokep (from nafiez)
import struct
buf = b'A' * 132
#
# virtualProtect() for rwx (msvcr71.dll – v7.10.3052.4)
# url: https://www.corelan.be/index.php/security/corelan-ropdb/#msvcr71dll_v71030524
#
rop_gadgets = [
from z3 import *
import struct
a = [BitVec("a{}".format(i), 8) for i in range(5)]
s = Solver()
def is_valid(x):
return Or(
And(x >= ord('1'), x <= ord('9')),
And(x >= ord('a'), x <= ord('z')),
@shahril96
shahril96 / collision.py
Last active October 15, 2019 16:42
Generate valid input (printable) for pwnable.kr's collision
import struct
from z3 import *
p = [BitVec('p{}'.format(i), 32) for i in range(5)]
s = Solver()
for a in p:
for i in range(4):
s.add(((a >> i*8) & 0xff) >= 0x30)
s.add(((a >> i*8) & 0xff) <= 0x7a)
@shahril96
shahril96 / uncompyle6-recursive.sh
Created May 30, 2019 19:49
Decompile all pyc files recursively under current directory
find . -name "*.pyc" -execdir uncompyle6 -o . {} \;
@shahril96
shahril96 / hashcat-benchmark-rtx2080ti.txt
Created February 26, 2019 11:48
Hashcat Benchmark - 2x RTX 2080 Ti
MEMORY: 62.6 GiB
PROCESSOR: Intel® Core™ i9-7920X CPU @ 2.90GHz × 24
GRAPHICS: GeForce RTX 2080 Ti/PCIe/SSE2 x2
DISK: 1.8TB SSD + 1TB NVMe SSD + 3TB HDD
@shahril96
shahril96 / faggot.py
Created December 10, 2018 10:57
POC for Wargames.my 2018's faggot2.0 challenge
from pwn import *
context.terminal = ['konsole', '-e', 'sh', '-c']
def split2len(s, n):
def _f(s, n):
while s:
yield s[:n]
s = s[n:]
return list(_f(s, n))
#!/usr/bin/env bash
if (( $EUID != 0 )); then
echo "Please run as root"
exit
fi
# clear existing iptables
iptables -X
iptables -F
@shahril96
shahril96 / tint2rc
Last active November 10, 2018 08:51
very simple tint2 configuration
#---- Generated by tint2conf cab8 ----
# See https://gitlab.com/o9000/tint2/wikis/Configure for
# full documentation of the configuration options.
#-------------------------------------
# Gradients
#-------------------------------------
# Backgrounds
# Background 1: Launcher, Panel
rounded = 0
border_width = 0
@shahril96
shahril96 / menu.xml
Created November 10, 2018 02:06
obmenu configuration
<?xml version="1.0" encoding="utf-8"?>
<openbox_menu>
<menu id="root-menu" label="OpenBox 3" execute="/usr/bin/obmenu-generator -i">
</menu>
</openbox_menu>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.