Skip to content

Instantly share code, notes, and snippets.

👻
"how about if i do it tomorrow" - me...everyday

Mohd Shahril shahril96

👻
"how about if i do it tomorrow" - me...everyday
Block or report user

Report or block shahril96

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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.
@shahril96
shahril96 / A.py
Created May 12, 2018
eat.code.error.cry.repeat's (some) solutions for ACM ICPC Al-Khawarizmi 2018
View A.py
while True:
N, M = map(int, input().split())
if N == 0 and M == 0:
break
table = [i for i in range(1, N+1)]
You can’t perform that action at this time.