Skip to content

Instantly share code, notes, and snippets.

@libcrack
libcrack / PKGBUILD
Created March 3, 2019 23:03
mirrorlist-manager AUR package: PKGBUILD, setup.py, mirrorist-manager.desktop.in
# Bastard System Operator From Hell: <root@localhost.localdomain>
pkgname=mirrorlist-manager
pkgver=1.1
pkgrel=1
pkgdesc="A Qt frontend for Pacman mirrorlist management"
arch=('x86_64')
url="https://github.com/Rizwan-Hasan/ArchLinux-Mirrorlist-Manager"
license=('GPL3')
depends=('python>=3.7.0' 'python-pyqt5>=5.11.2' 'python-sip-pyqt5>=4.19.12' 'pyqt5-common>=5.11.2' 'python-pandas>=0.23.4' 'pacman-contrib')
#!/usr/bin/env bash
# devnull@libcrack.so
# 18/08/2016 05:54:35
#
#
# From man(1) find:
#
# -P Never follow symbolic links. This is the default behaviour. When find
# examines or prints information a file, and the file is a symbolic link,
# the information used shall be taken from the properties of the symbolic
#!/usr/bin/env bash
# devnull@libcrack.so
# 18/08/2016 05:54:35
#
#
# From man(1) find:
#
# -P Never follow symbolic links. This is the default behaviour. When find
# examines or prints information a file, and the file is a symbolic link,
# the information used shall be taken from the properties of the symbolic
@libcrack
libcrack / suidshell.c
Created January 29, 2017 06:02
Suid /bin/sh helper
/*
* root@libcrack.so
* Sun Jan 29 06:57:23 CET 2017
*
* gcc -o /tmp/suidshell suidshell.c
* chown root /tmp/shell
* chmod +s /tmp/shell
*/
#define _GNU_SOURCE
@libcrack
libcrack / letsencrypt.sh
Created January 27, 2017 02:57
LetsEncrypt helper
#!/usr/bin/env bash
# root@libcrack.so
# Fri Jan 27 03:46:04 CET 2017
error(){ printf "\e[0;31m${*}\e[0m\n"; }
success(){ printf "\e[0;32m${*}\e[0m\n"; }
if [ -z "$1" ]; then
error "Usage: $0 host.domain.com"
exit 1
@libcrack
libcrack / makezip.py
Created October 8, 2016 11:47
Create minimum zip file with an arbitrary comment
#!/usr/bin/env python
# encoding: utf-8
# devnull@libcrack.so
# Sat Oct 8 13:45:22 CEST 2016
import struct
filename = "file.zip"
payload = "<script>alert(1)</script>"
@libcrack
libcrack / parsea-airodump.pl
Created September 22, 2016 14:26
Parse airodump output
#!/usr/bin/env perl
# devnull@libcrack.so
# Thu Dec 1 16:50:59 CET 2011
use strict;
use warnings;
# autoflush yeah
$|=1;
my $logfile = "";
@libcrack
libcrack / osx-signature-hidden-data.sh
Created August 18, 2016 05:16
Hide data inside OSX app signatures
#!/usr/bin/env bash
# root@libcrack.so
# Thu Aug 18 07:10:58 CEST 2016
#
# The file Icon\r is supposed to hold a user-provided icon for the app.
# Because Icon\r is totally ignored by codesign (and spctl) this makes it
# possible to hide any amount of datas inside.
#
# The Icon\r is by default hidden and inaccessible from the Finder so I
# reproduced the same behaviour by setting the hidden flag and copied the
@libcrack
libcrack / freenas-rename-jail.sh
Created July 28, 2016 22:15
FreeNAS: rename jail helper
#!/usr/bin/env bash
# root@libcrack.so
# vie jul 29 00:09:06 CEST 2016
if [ $# != 2 ]; then
printf "Usage: $0 oldjailname newjailname\n"
exit 1
fi
if [ ! -d $jailroot/$oldjailname ]; then
@libcrack
libcrack / foo.bash
Created July 28, 2016 15:27
OpenVPN post-up script
#!/usr/bin/env bash
# Thu Jul 28 17:11:50 CEST 2016
#
# Parameters when this script is executed from openvpn(4)
# tun0 1500 1544 10.200.200.74 10.200.200.73 init
# $1 $2 $4 $4 $5 $6
#
iface="${1}"
server="${4}"