This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Naslr: Starts a bash shell with no ASLR | |
* Build: gcc naslr.c -o naslr | |
* | |
* Towel - 2017 | |
*/ | |
#include <sys/personality.h> | |
#include <syscall.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#include <err.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* SeeSP: Print the value of the stack pointer. | |
* Build: gcc SeeSP.c -o SeeSP | |
* | |
* Towel - 2017 | |
*/ | |
#include <stdio.h> | |
#include <inttypes.h> | |
int main(void) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding:utf-8 -*- | |
# Towel 2017 | |
from math import ceil, sqrt | |
def bsgs(g, h, p): | |
''' | |
Solve for x in h = g^x mod p given a prime p. |
NewerOlder