Skip to content

Instantly share code, notes, and snippets.

View captainGeech42's full-sized avatar
👽
happy pwning my dudes

Zander Work captainGeech42

👽
happy pwning my dudes
View GitHub Profile

Keybase proof

I hereby claim:

  • I am zzzanderw on github.
  • I am zzzanderw (https://keybase.io/zzzanderw) on keybase.
  • I have a public key whose fingerprint is 93CE 3D82 3135 A7B8 9B5B F860 0229 413C AB53 552E

To claim this, I am signing this object:

@captainGeech42
captainGeech42 / .eslintrc.json
Last active November 7, 2016 20:51
Linting standard for event-bot
{
"env": {
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module"
},
"rules": {
@captainGeech42
captainGeech42 / Server.cs
Created March 1, 2017 19:50
Snippet highlighting the socket server
public void RunTcpServer()
{
while (_running)
{
_listener.Start();
DoBeginAcceptTcpClient(_listener);
_writer = new StreamWriter(_client.GetStream());
_reader = new StreamReader(_client.GetStream());
try
{
@captainGeech42
captainGeech42 / Makefile
Last active February 5, 2018 01:25
CS161 Makefile
CC = g++
C_FLAGS = -g -Wall
ifndef num
$(error num is not set. Please re-run make with the argument `num=#`, where # is the assignment #)
endif
ifndef header
all:
$(CC) $(C_FLAGS) -o assignment$(num) assignment$(num).cpp

Keybase proof

I hereby claim:

  • I am zzzanderw on github.
  • I am zzzanderw (https://keybase.io/zzzanderw) on keybase.
  • I have a public key whose fingerprint is 2DD6 3FD0 943E 9D13 796C 3FFB DA9D 904D 4F7C 7C53

To claim this, I am signing this object:

@captainGeech42
captainGeech42 / pwntools.py
Last active May 15, 2018 01:37
Sample of some basic pwntools operations
#!/usr/bin/env python
from pwn import *
# define our binary
binary = "/home/user/testbin"
#### Payloads ####
# read in our payload
#!/usr/bin/env python
import sys
from pwn import *
REMOTE = "remote" in sys.argv
def get_proc():
if REMOTE:
return remote("ctf.osusec.org", 10100)
#include <stdio.h>
#include <stdlib.h>
void read_in(const char *filename, char **data) {
*data = malloc(sizeof(char) * 203);
FILE *f = fopen(filename, "rb");
fgets(*data, 203, f);
fclose(f);
}

Keybase proof

I hereby claim:

  • I am captainGeech42 on github.
  • I am zzzanderw (https://keybase.io/zzzanderw) on keybase.
  • I have a public key whose fingerprint is 2DD6 3FD0 943E 9D13 796C 3FFB DA9D 904D 4F7C 7C53

To claim this, I am signing this object:

Port 31337
LogLevel VERBOSE
PermitRootLogin no
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
HostbasedAuthentication no
IgnoreRhosts yes
PasswordAuthentication no