summaryrefslogtreecommitdiff
path: root/static/deobfuscate.sh
diff options
context:
space:
mode:
authoraxtloss <axtlos@disroot.org>2024-08-20 01:20:30 +0200
committeraxtloss <axtlos@disroot.org>2024-08-20 01:20:30 +0200
commite235aa6cf4914cbff6c72f19e0fcf6888da349f7 (patch)
tree0d488cadc02706aa2c7652b42e4f21342125c5f7 /static/deobfuscate.sh
parent479414a93ae03a4463c16d54b39cd155b1e04683 (diff)
downloadwebsite-e235aa6cf4914cbff6c72f19e0fcf6888da349f7.tar.gz
website-e235aa6cf4914cbff6c72f19e0fcf6888da349f7.tar.bz2
yayyy new website!!
Diffstat (limited to '')
-rwxr-xr-xstatic/deobfuscate.sh17
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"
+