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
pdns-auth-master: works | |
pdns-auth-45: works | |
pdns-auth-46: not found | |
Sep 23 14:11:07 Loading '/usr/local/lib/pdns/libgsqlite3backend.so' | |
Sep 23 14:11:07 This is a standalone pdns | |
Sep 23 14:11:07 Listening on controlsocket in '/var/run/pdns/pdns.controlsocket' | |
Sep 23 14:11:07 UDP server bound to 0.0.0.0:53 | |
Sep 23 14:11:07 UDP server bound to [::]:53 | |
Sep 23 14:11:07 TCP server bound to 0.0.0.0:53 |
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 | |
import ipaddress | |
import sys | |
for ip in ipaddress.ip_network(sys.argv[1]).hosts(): | |
print(ip) |
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 | |
# IP Finder als kleine Programmierübung | |
NAMED=/var/named/data | |
NETZ="${1:-}" | |
if [ -z "$NETZ" ]; then |
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 | |
# Override os_family grain to ensure Rocky Linux is seen | |
# as part of the RedHat OS family. | |
# | |
# Similar functionality was added in https://github.com/saltstack/salt/pull/59682 | |
# but has not been released yet. | |
# | |
# To install, drop this code into /svc/salt/_grains/ and run | |
# `salt '*' saltutil.sync_all` |
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 | |
from PIL import Image | |
import io | |
import logging | |
import vobject | |
import base64 | |
import hashlib | |
""" |
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
# Makefile | |
SHELL = /bin/bash | |
PYTHON_EXE = python3 | |
TOPDIR = $(shell git rev-parse --show-toplevel) | |
all: venv ## Build complete environment | |
help: # Display help | |
@awk -F ':|##' \ | |
'/^[^\t].+?:.*?##/ {\ |
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 | |
# | |
# Forgot the password for my keepass library. I knew the password | |
# was based on a certain scheme that encodes the year etc. | |
# | |
# Rather than trying it out by hand, have a program do it for me. | |
# | |
# Quick and dirty... | |
# |
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 | |
set -euo pipefail | |
MAX_SYS_UID=499 | |
MAX_SYS_GID=499 | |
ORIG_MAX_SYS_UID=999 | |
ORIG_MAX_SYS_GID=999 | |
# For debugging, set to echo |
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/python | |
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org) | |
# The author disclaims copyright to this source code. | |
# | |
# Modified slightly by Andreas Thienemann <athienemann@schubergphilis.com> for clearer exploit code | |
# and 64k reads | |
# | |
# This version of the exploit does write received data to a file called "dump" in the local directory | |
# for analysis. |
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
root@GL-X750:~# picocom --echo /dev/ttyUSB2 | |
picocom v1.7 | |
port is : /dev/ttyUSB2 | |
flowcontrol : none | |
baudrate is : 9600 | |
parity is : none | |
databits are : 8 | |
escape is : C-a |