Skip to content

Instantly share code, notes, and snippets.

View Fa2y's full-sized avatar
🐞
stomping bugs

Ahmed Yasser Merzouk Benselloua Fa2y

🐞
stomping bugs
View GitHub Profile
@SakiiR
SakiiR / libc.py
Created November 27, 2019 16:40
Using libc (rand, srand) etc using python :)
from ctypes import CDLL
libc = CDLL("libc.so.6")
now = int(floor(time.time()))
libc.srand(now)
print(libc.rand())
/*
robin verton, dec 2015
implementation of the RC4 algo
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define N 256 // 2^8