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
<?xml version='1.0' encoding='utf-8'?> | |
<?grc format='1' created='3.7.9'?> | |
<flow_graph> | |
<timestamp>Thu Aug 7 17:08:09 2014</timestamp> | |
<block> | |
<key>options</key> | |
<param> | |
<key>author</key> | |
<value></value> | |
</param> |
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
$ sudo python tcp_http_spoof.py >&/dev/null & | |
[1] 3477 | |
$ curl -vL http://www.google.com/ | |
* Hostname was NOT found in DNS cache | |
* Trying 172.217.26.100... | |
* Connected to www.google.com (172.217.26.100) port 80 (#0) | |
> GET / HTTP/1.1 | |
> User-Agent: curl/7.35.0 | |
> Host: www.google.com |
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
uint64_t __libc_start_main(uint64_t rdi, uint64_t rsi, uint64_t rdx, uint64_t rcx, uint64_t r8, uint64_t r9, uint64_t sp0); | |
uint64_t printf(uint64_t rdi); | |
uint64_t puts(uint64_t rdi); | |
void _init(uint64_t rip) | |
{ | |
if (*(uint64_t*)6295544 != 0) | |
{ | |
func_400460(4195349); | |
} | |
return; |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
void leave() { puts("exiting normally..."); } | |
void jackpot() { puts("jackpot!"); } | |
void (*p_target)(); |
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
$ python tinyfuzz.py | |
< '' | |
oooooooo8 oooo o88 o8 | |
888 888ooooo oooo o888oo oooooooo8 ooooooo ooooooo | |
888oooooo 888 888 888 888 888ooooooo 888 888 888 888 | |
888 888 888 888 888 888 888 888 888 | |
o88oooo888 o888o o888o o888o 888o 88oooooo88 88ooo888 88ooo88 | |
Welcome to Shitsco Internet Operating System (IOS) |
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
$ gcc itrace.c -o itrace | |
$ ./itrace /bin/ls | head | |
7f86ae81d2d0 | |
7f86ae81d2d3 | |
7f86ae820a70 | |
7f86ae820a71 | |
7f86ae820a74 | |
7f86ae820a76 | |
7f86ae820a78 |
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
import math | |
class LogNormal(object): | |
def __init__(self, skip): | |
self.skip = skip | |
self.n = 0 | |
self.m = 0.0 | |
self.s2 = 0.0 | |
def is_anomaly(self, x): |
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
$ gdb ./test | |
Reading symbols from ./test...(no debugging symbols found)...done. | |
(gdb) start | |
Temporary breakpoint 1 at 0x4004f1 | |
Starting program: /home/user/tmp/test | |
Temporary breakpoint 1, 0x00000000004004f1 in main () | |
1: x/i $pc | |
=> 0x4004f1 <main+4>: pop rbp | |
(gdb) i r |
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
$ gcc uaf-fopen.c | |
uaf-fopen.c: In function ‘main’: | |
uaf-fopen.c:20:25: warning: assignment makes pointer from integer without a cast [enabled by default] | |
*(void **)(p1+0xd8) = 0x601028-0x88; | |
^ | |
$ ./a.out | |
p1 = 0x1fc8010 | |
fp = 0x1fc8010 | |
$ id |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
int crackme(char *s, int n) | |
{ | |
if (strlen(s) != 13) { | |
return 0; | |
} | |
if (strcmp(s, "hacktheplanet") != 0) { |