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
MIT License | |
Copyright (c) 2021 Lennart Braun | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
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
Exploit for the babysandbox challenge of Meepwn CTF Quals 2018 |
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
Scripts solving two crypto challenges from VolgaCTF 2018 Quals |
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/sh | |
elf="$(mktemp)" | |
bin="$(mktemp)" | |
(echo ".intel_syntax noprefix"; cat "$1") | gcc -x assembler -m32 -masm=intel -c -o "$elf" - | |
objcopy -O binary --only-section=.text "$elf" "$bin" | |
echo -e "Assembly:\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
#!/usr/bin/env python3 | |
""" | |
Simple program to execute scripts from a given set one after another. | |
Written to easily change between xrandr configurations. | |
Point SCRIPT_DIR to the location of the scripts to be executed. | |
The name of the last executed script will be saved in SCRIPT_DIR/current. | |
With each call this program executes the next scripts in alphabetical order, | |
until one exits successfully (returns 0). |
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/sh | |
# ============================================================================== | |
# name: dir_diff.sh | |
# description: Compares the content of two directories. | |
# author: Lennart Braun <lenerd@posteo.de> | |
# license: MIT | |
# date: 20150501 | |
# version: 0.1 | |
# requirements: sha1sum | |
# usage: sh dir_diff.sh dir1 dir2 |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Simple script to control your notebooks backlight. | |
""" | |
""" | |
The MIT License (MIT) |
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/sh | |
# Author: Lennart Braun <lenerd@posteo.de> | |
# This file is released into Public Domain. | |
# Idea: https://xkcd.com/196/ | |
# Requires: xautomation | |
while true | |
do | |
xte 'mousermove 0 -1' |