This file contains 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
gyorgydemarcsek@Gyorgys-MBP ~/p/jazzer (main)> git branch --show | |
main | |
gyorgydemarcsek@Gyorgys-MBP ~/p/jazzer (main)> git rev-parse --short HEAD | |
dcd70dd | |
gyorgydemarcsek@Gyorgys-MBP ~/p/jazzer (main) [1]> xcode-select --install | |
xcode-select: error: command line tools are already installed, use "Software Update" to install updates | |
gyorgydemarcsek@Gyorgys-MBP ~/p/jazzer (main) [1]> clang --version | |
Apple clang version 14.0.0 (clang-1400.0.29.202) | |
Target: arm64-apple-darwin21.6.0 | |
Thread model: posix |
This file contains 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 logging | |
from queue import PriorityQueue | |
from functools import total_ordering | |
# Some fun with graph algos I was playing with | |
class NoSolutionException(Exception): | |
pass |
This file contains 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
#!/bin/bash | |
# quick and dirty script i wrote for discovery and enumeration - provides nice strcuture on fs to organize results | |
# deps: nmap, xsltproc, parallel | |
# tested on kali 2018.3 | |
if [[ -z "${TARGET}" ]]; then | |
exit 100 | |
fi | |
ts=$(date +%s); |
This file contains 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
#!/bin/bash | |
set -euo pipefail | |
# Only needed if you have not yet downloaded the image | |
wget "https://s3.eu-west-3.amazonaws.com/bsideslux18/virtualbox-gdemarcs-bsideslux18.box" | |
# Import the image | |
vagrant box add --force --name bsideslux18/apparmor virtualbox-gdemarcs-bsideslux18.box | |
# Clone the workshop repo | |
git clone --depth=1 --branch master https://github.com/gdemarcsek/bsideslux18 |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am gdemarcsek on github. | |
* I am gdemarcsek (https://keybase.io/gdemarcsek) on keybase. | |
* I have a public key ASC97H3xcUQhQiPNSlzyC5we34_jZWdy9qfAcsLbY5fVhQo | |
To claim this, I am signing this object: |
This file contains 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
you have been owned! :) |
This file contains 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
<?php | |
header("Content-type: text/plain"); | |
foreach ($_SERVER as $key => $value) { | |
if (substr($key, 0, 3) == "SSL") { | |
print "$key: $value\n" | |
} | |
} | |
?> |
This file contains 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 java.util.List; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
class A { | |
} | |
class B extends A { | |
public int X = 42; |
This file contains 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
openssl req -subj '/CN=domain.com/O=My Company Name LTD./C=US' -new -newkey rsa:2048 -days 365 -nodes -x509 -keyout server.key -out server.crt |
This file contains 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
CRYPTO_malloc_init(); | |
OPENSSL_config(NULL); | |
SSL_load_error_strings(); | |
ERR_load_BIO_strings(); | |
SSL_library_init(); |