diff options
author | axtloss <axtlos@disroot.org> | 2024-08-20 01:20:30 +0200 |
---|---|---|
committer | axtloss <axtlos@disroot.org> | 2024-08-20 01:20:30 +0200 |
commit | e235aa6cf4914cbff6c72f19e0fcf6888da349f7 (patch) | |
tree | 0d488cadc02706aa2c7652b42e4f21342125c5f7 /static/deobfuscate.sh | |
parent | 479414a93ae03a4463c16d54b39cd155b1e04683 (diff) | |
download | website-e235aa6cf4914cbff6c72f19e0fcf6888da349f7.tar.gz website-e235aa6cf4914cbff6c72f19e0fcf6888da349f7.tar.bz2 |
yayyy new website!!
Diffstat (limited to '')
-rwxr-xr-x | static/deobfuscate.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/static/deobfuscate.sh b/static/deobfuscate.sh new file mode 100755 index 0000000..40ce970 --- /dev/null +++ b/static/deobfuscate.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +value="$1" +offset=$((16#${value:0:2})) +n=2 +final="" + + +while [ $n -lt ${#value} ]; do + num=${value:n:3} + charAscii=$((16#$num - $offset)) + final="$final$(printf \\u$(printf "%03x" $charAscii))" + n=$((n + 3)) +done + +echo "$final" + |