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 bash | |
# | |
# PwnedPasswords client implemented in bash | |
# | |
# Return the number of times a password has been seen in data breaches by | |
# querying the [PwnedPasword][hibp] service. Particularly useful for those | |
# who want to use the service, but are squeamish about typing their | |
# passwords into a web form… | |
# | |
# [hibp]: https://haveibeenpwned.com/Passwords |
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
/* Base64 encoder ************************************************************* | |
* * | |
* A lightweight base64 encoder, implemented in C. * | |
* * | |
* * | |
* Example usage; * | |
* * | |
* ``` * | |
* void main(void){ * | |
* unsigned char octets[] = { * |
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 bash | |
# | |
# Wake on lan | |
# | |
# Send WoL magic packet over UDP | |
# | |
# Usage: | |
# | |
# wol MAC ADDRESS [PORT] | |
# wol FILE |
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 bash | |
# | |
# 1:1 TCP NAT using nftables | |
# | |
# Implementation of 1:1 network address translation (NAT) between WAN/LAN | |
# on a Raspberry Pi 4B using nftables. NAT is performed; | |
# | |
# * for a single host on the LAN | |
# * for TCP traffic only | |
# * to specified ports on the LAN host |
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 | |
"""TCP echo server | |
Implemented using asyncio for concurrent client handling | |
""" | |
import asyncio | |
import argparse | |
import logging |