Skip to content

Instantly share code, notes, and snippets.

View Y7n05h's full-sized avatar

Y7n05h Y7n05h

View GitHub Profile
@Y7n05h
Y7n05h / keybase.md
Created January 9, 2022 13:55
keybase.md

Keybase proof

I hereby claim:

  • I am y7n05h on github.
  • I am y7n05h (https://keybase.io/y7n05h) on keybase.
  • I have a public key ASD0D-k7ZfnDbtgr6Bmcsus3wH8wRGnl9V-ByhgpPJYe0wo

To claim this, I am signing this object:

@Y7n05h
Y7n05h / getGlibcVersion.zsh
Last active November 29, 2021 03:51
Get GNU libc version from file
#!/usr/bin/zsh
# Depends on: strings grep sha1sum curl jq
# Powered by the libc-database search API
# https://github.com/niklasb/libc-database/tree/master/searchengine
strings $1 |grep 'GNU C Library'
sha1str=$(sha1sum $1)
curl -s -X POST -H 'Content-Type: application/json' --data "{\"sha1\": \"${sha1str// */}\"}" 'https://libc.rip/api/find'|jq -r '.[]'
@Y7n05h
Y7n05h / calling_conventions.md
Created August 5, 2021 02:22 — forked from yamnikov-oleg/calling_conventions.md
Linux Syscalls Reference

Source: man syscall

Architecture calling conventions

Every architecture has its own way of invoking and passing arguments to the kernel. The details for various architectures are listed in the two tables below.

The first table lists the instruction used to transition to kernel mode, (which might not be the fastest or best way to transition to