Skip to content

Instantly share code, notes, and snippets.

@perillamint
perillamint / pperlgit.c
Created March 31, 2015 04:11
흔한_반도의_뻘짓.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#define CHUNK_SIZE 128
//I will not use NULL terminated string for performance.
@perillamint
perillamint / cwithoutmain
Created April 1, 2015 19:24
cwithoutmain
#include <sys/syscall.h>
#include <unistd.h>
_start() {
char *hello = "Hello, World!\n";
syscall(__NR_write, 1, hello, 14);
syscall(__NR_exit, 0);
}
systemd-+-NetworkManager-+-dhclient
| |-{NetworkManager}
| |-{gdbus}
| `-{gmain}
|-accounts-daemon-+-{gdbus}
| `-{gmain}
|-at-spi-bus-laun-+-dbus-daemon
| |-{dconf worker}
| |-{gdbus}
| `-{gmain}
@perillamint
perillamint / forkbomb.c
Created April 3, 2015 08:12
forklimit count
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
int main (int argc, char **argv) {
int i;
int res;
printf("Forkbomb!\n");
#include <stdio.h>
#include <stdlib.h>
int foo (int a, int b) {
char c[10];
char d[1];
scanf("%s", d);
printf("%s\n", c);
@perillamint
perillamint / elfloader.c
Created April 13, 2015 19:13
Loads elf into heap.
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <unistd.h>
#include <fcntl.h>
#include <elf.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
RT @bandoche: @perillamint ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ 인기인이시다 사인해주세요
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJVL0zjAAoJEAbGdqDuSMWFSRwQAIjq4qwAF3pMBfh1hmaaffmg
3ZEMnm21e/oH+S/242IMMCdjVU+NGruyk6kDiMa+7bdp1Xog3Gqkbi+wUMVBt/he
EqVx8WvVLrvZbejhjly/vF5rgHu2TZ0n9PPlriAHSaDKvE/xaGyFXLt+xosCflYs
%!TEX TS-program = xelatex
\documentclass {article}
\usepackage{xetexko}
\usepackage[a4paper]{geometry}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{mathtools}
\usepackage{amsmath}
\usepackage{fontspec}
@perillamint
perillamint / GrimPatron.c
Last active August 29, 2015 14:21
손놈
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <unistd.h>
#define GPATRON_QUOTE "Everyone, get in here!\n"
int hp = 3;
void gotHit (int signum) {
@perillamint
perillamint / iOS crash string dump
Created May 28, 2015 15:38
iOS crash string dump
Character at 1: U+50
Character at 2: U+6F
Character at 3: U+77
Character at 4: U+65
Character at 5: U+72
Character at 6: U+A
Character at 7: U+A
Character at 8: U+644
Character at 9: U+64F
Character at 10: U+644