e1000e Linux* Base Driver for Intel® Network Connection
================================================================================
January 13, 2014
================================================================================
| /* | |
| ptr_inspect.c | |
| Demonstration code; shows how to trace the system calls in a child | |
| process with ptrace. Only works on 64-bit x86 Linux for now, I'm | |
| afraid. (Even worse, it's only tested on Linux 2.6....) | |
| The callname() function looks clunky and machine-generated because it | |
| *is* clunky and machine-generated. | |
| #!/usr/bin/env ruby | |
| # | |
| # Use to filter strace output associated with ruby/EM processes running with EM.epoll | |
| # sudo strace -ttTp <ruby process pid> -o ruby.strace | |
| # cat ruby.strace | ./em-strace-filter.rb > filtered.strace | |
| # | |
| require 'time' | |
| begin_time = nil | |
| end_time = nil |
e1000e Linux* Base Driver for Intel® Network Connection
================================================================================
January 13, 2014
================================================================================
| // Zach J. Elko | |
| // 2010 | |
| // skater.cpp | |
| // | |
| // I've wanted to make one of these for a while now. I got bored and | |
| // whipped this up in about 3 hours. There are a lot of improvements | |
| // that can/should be made, but it's not bad for the short amount of | |
| // time put into it. | |
| // | |
| // Basic C/C++ code obfuscator. |
| #!/usr/bin/python | |
| import socket | |
| import struct | |
| import sys | |
| # We want unbuffered stdout so we can provide live feedback for | |
| # each TTL. You could also use the "-u" flag to Python. | |
| class flushfile(file): | |
| def __init__(self, f): |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #define SENTINEL_VALUE -1 | |
| typedef struct _list { | |
| int value; | |
| struct _list *prev; | |
| struct _list *next; | |
| } list; |
| obj-m += tcp_svr_sample.o | |
| all: | |
| make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules | |
| clean: | |
| make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clea |
| # TOOLS | |
| CPP = g++ | |
| CC = gcc | |
| # MORE TOOLS | |
| SIZE = size | |
| OBJCOPY = objcopy | |
| OBJDUMP = objdump | |
| #PROJECT RELATED STUFF |
| #!/usr/bin/env python | |
| # Reflects the requests from HTTP methods GET, POST, PUT, and DELETE | |
| # Written by Nathan Hamiel (2010) | |
| from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler | |
| from optparse import OptionParser | |
| class RequestHandler(BaseHTTPRequestHandler): | |
| def do_GET(self): |
| #include <stdlib.h> | |
| #include <stdio.h> | |
| int main() { | |
| int count = 0; | |
| int compar(const void *left_ptr, const void *right_ptr) { | |
| int left = *(int*)left_ptr; | |
| int right = *(int*)right_ptr; | |
| ++count; | |
| return left - right; |