Skip to content

Instantly share code, notes, and snippets.

#!/tmp/busybox/sh
TLANPREFIX="$(grep 'prefix' /var/radvd/radvdbr0.conf | sed 's/ *prefix *//' | tr -d ' \r\n' | sed 's/:0*/:/g')"
FULLPREFIX="$(echo "$TLANPREFIX" | sed -r 's~\w\w:\w+:\w+:\w+:\w+/64~~')"
TLANPREFIX="$(echo "$TLANPREFIX" | sed -r 's~\w+:\w+:\w+:\w+/64~:/64~')"
# Use only a part of the full /56 to make sure dibbler cannot delegate the prefix the router wishes to use
TLANPREFIX_FIRST="$(echo "$TLANPREFIX" | sed -r 's~.*(\w)::/64~\1~')"
if [ "$TLANPREFIX_FIRST" == "4" ]; then
#!/bin/bash
# Requires the following: dd, tr, sed, mktemp, openssl, perl (sadly gzip CLI can not operate on raw zlib data and most OpenSSL distros do not include zlib)
# However even git for windows (MSysGit) includes enough perl to make it fly :)
IV='B380E17A0C476E8A480B55253ABAE666'
KEY='DD1FBB7596D0D58BBF336ABA391366ED3ED7460849BB9EFAB9649C999863BF25'
ENCRYPT=1