This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
shahril:pico$ python keyboard_pcap.py -f data.pcap | |
flag{pr355_0nwards_a4263f07}c | |
""" | |
from scapy.all import * | |
from argparse import ArgumentParser | |
from sys import argv | |
from collections import OrderedDict |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Ayam implementation of Binary Search Tree | |
* | |
* references :- | |
* https://en.wikipedia.org/wiki/Binary_search_tree | |
* http://geeksquiz.com/binary-search-tree-set-2-delete/ | |
* | |
* ~ not very descriptive compile guide (linux) ~ | |
* $ g++ bstree.cpp -o bstree -std=c++11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if (( $EUID != 0 )); then | |
echo "Please run as root" | |
exit | |
fi | |
# clear existing iptables | |
iptables -X | |
iptables -F |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#---- 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 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while True: | |
N, M = map(int, input().split()) | |
if N == 0 and M == 0: | |
break | |
table = [i for i in range(1, N+1)] |