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
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 /
Last active Oct 15, 2019
Generate valid input (printable) for'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 /
Created May 30, 2019
Decompile all pyc files recursively under current directory
find . -name "*.pyc" -execdir uncompyle6 -o . {} \;
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
shahril96 /
Created Dec 10, 2018
POC for 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"
# clear existing iptables
iptables -X
iptables -F
shahril96 / tint2rc
Last active Nov 10, 2018
very simple tint2 configuration
View tint2rc
#---- Generated by tint2conf cab8 ----
# See for
# full documentation of the configuration options.
# Gradients
# Backgrounds
# Background 1: Launcher, Panel
rounded = 0
border_width = 0
shahril96 / menu.xml
Created Nov 10, 2018
obmenu configuration
View menu.xml
<?xml version="1.0" encoding="utf-8"?>
<menu id="root-menu" label="OpenBox 3" execute="/usr/bin/obmenu-generator -i">
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 /
Created May 12, 2018
eat.code.error.cry.repeat's (some) solutions for ACM ICPC Al-Khawarizmi 2018
while True:
N, M = map(int, input().split())
if N == 0 and M == 0:
table = [i for i in range(1, N+1)]
You can’t perform that action at this time.