Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
import ctypes, sys, re
import string
c_ptrace = ctypes.CDLL("libc.so.6").ptrace
c_pid_t = ctypes.c_int32
c_ptrace.argtypes = [ctypes.c_int, c_pid_t, ctypes.c_void_p, ctypes.c_void_p]
def ptrace(attach, pid):
op = ctypes.c_int(16 if attach else 17)
@keerok
keerok / dependents.py
Created February 24, 2022 20:58
list dependents with stars
import requests
from time import sleep
import sys
names = []
stars = []
final = dict()
account_name = sys.argv[1]
project_name = sys.argv[2]
uri = "https://github.com/"+account_name+"/"+project_name+"/network/dependents?dependent_type=PACKAGE"
@keerok
keerok / README.md
Last active October 17, 2021 14:51
client-side prototype pollution gadget using cross-origin embedded reddit posts
@keerok
keerok / css.html
Created June 17, 2020 04:19
css timing attack via window.opener
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title></title>
<h1>working on chrome linux & mac</h1>
<a href="" target=_blank>click me before</a>
</head>
<body>
<button type="button" id=clickme name="button">click me</button>