Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am lirazsiri on github.
  • I am liraz (https://keybase.io/liraz) on keybase.
  • I have a public key whose fingerprint is 1B4D 4827 A06E 440F 74B8 8334 6DEC 96D3 B067 80D9

To claim this, I am signing this object:

@lirazsiri
lirazsiri / ghosttest.c
Created January 31, 2015 12:53
GHOST vulnerability tested
/* ghosttest.c: GHOST vulnerability tester */
/* Credit: http://www.openwall.com/lists/oss-security/2015/01/27/9 */
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#define CANARY "in_the_coal_mine"
@lirazsiri
lirazsiri / lsof-restart-services
Created January 31, 2015 12:51
LSOF restart services for Debian systems
#!/bin/bash
# Author: Liraz Siri <liraz@turnkeylinux.org> 2015 - GPL3 licensed
if [ -z "$1" ] || [ "$1" = "-h" ]; then
cat<<EOF
Syntax: $0 lsof-pattern
Restarts running Debian services that match lsof-pattern (e.g., libc)"
Environment variables:
@lirazsiri
lirazsiri / git-remote-github
Created June 7, 2014 16:38
A simple helper script for registering GitHub remotes. Change ACCOUNT has required.
#!/bin/bash
# Author: Liraz Siri <liraz@turnkeylinux.org>, licensed under the GPL
arg=$1
progname=$(basename $(pwd|sed 's/\.git$//'))
set ${ACCOUNT:=turnkeylinux}
if [ -z "$PROJECT" ]; then
PROJECT=$progname
fi