Skip to content

Instantly share code, notes, and snippets.

@gdemarcsek
gdemarcsek / jazzer_build_issue.txt
Last active March 7, 2023 19:45
jazzer_build_issue.txt
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
@gdemarcsek
gdemarcsek / graphs.py
Created April 19, 2020 14:49
Fun with graph algos
import logging
from queue import PriorityQueue
from functools import total_ordering
# Some fun with graph algos I was playing with
class NoSolutionException(Exception):
pass
@gdemarcsek
gdemarcsek / autorecon.sh
Created May 17, 2019 17:17
autorecon.sh
#!/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);
@gdemarcsek
gdemarcsek / abwp.sh
Last active October 18, 2018 13:46
abwp
#!/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
@gdemarcsek
gdemarcsek / keybase_claim
Created July 31, 2018 20:00
keybase_claim
### 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:
@gdemarcsek
gdemarcsek / owned.txt
Last active August 6, 2017 09:51
owned.txt
you have been owned! :)
<?php
header("Content-type: text/plain");
foreach ($_SERVER as $key => $value) {
if (substr($key, 0, 3) == "SSL") {
print "$key: $value\n"
}
}
?>
@gdemarcsek
gdemarcsek / Playground.java
Created September 18, 2016 22:06
Playing with Java Generics
import java.util.List;
import java.util.ArrayList;
import java.util.Arrays;
class A {
}
class B extends A {
public int X = 42;
@gdemarcsek
gdemarcsek / gist:be4c05180cbc5363c8142ece31184e45
Created June 21, 2016 19:51
openssl self signed cert gen oneliner
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
@gdemarcsek
gdemarcsek / ssl_init.c
Last active August 29, 2015 14:01
OpenSSL initialization
CRYPTO_malloc_init();
OPENSSL_config(NULL);
SSL_load_error_strings();
ERR_load_BIO_strings();
SSL_library_init();