Skip to content

Instantly share code, notes, and snippets.

View ayeks's full-sized avatar
🚂

Lars Lühr ayeks

🚂
View GitHub Profile
@ayeks
ayeks / reverse_shell.md
Last active May 1, 2020 07:55
reverse_shell_container.md

Run a container which connects back with a reverse shell

Server

Open up the port where the container will connect to.

nc -lp 6666
@ayeks
ayeks / cpuid_sgx.c
Last active November 9, 2020 15:16
CPUID - Intel SGX Capabilities Detection
/*
* For more information about the availability of SGX for your system check: https://github.com/ayeks/SGX-hardware
* Example output from a SGX enabled CPU is provided at the end of the Readme in that repo.
* This GIST won't be updated, however it will stay because it is linked in Stackoverflow.
*/
#include <stdio.h>
static inline void native_cpuid(unsigned int *eax, unsigned int *ebx,
unsigned int *ecx, unsigned int *edx)
{
@ayeks
ayeks / ListMatchingFiles.vbs
Last active January 23, 2019 14:52
List matching files with wildcards in VBS (Visual Basic Script), supports multiple wildcards in folder and filenames
Option Explicit
Class ListMatchingFiles
Public pathList
' saves an array in var pathList with the file names that match the given path
' The Path string may contain the wildcard characters "*"
' and "?" in the file name component.
' Widcard * is allowed in Folder and Filenames, eg. "H:\home\*\work\*\*abc*.err"
' If Path is a directory, the contents of this directory is listed.
@ayeks
ayeks / tictactoe.pro
Last active December 16, 2015 15:09
Tictactoe implementation for the Prolog Course. German lecturer, german comments, sorry.Developed with SWI Prolog.
% Copyright (C) 2013 Lars Richter
%
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the