summaryrefslogtreecommitdiff
path: root/scripts/decoder
diff options
context:
space:
mode:
authorsubh <subh@example.com>2026-01-31 10:35:36 +0530
committersubh <subh@example.com>2026-01-31 10:35:36 +0530
commitbd7ffca7774ac96abb496d86810b20dc20736178 (patch)
treec19ac74d55485d88f396e7bf5ad46d4542880160 /scripts/decoder
parent667f7d3561272b460163c26d7893dfc0e01ac1cb (diff)
Added a script with a hotkey to lookup word meanings and a url decoder in python for the CLI
Diffstat (limited to 'scripts/decoder')
-rwxr-xr-xscripts/decoder17
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/decoder b/scripts/decoder
new file mode 100755
index 0000000..1b19fce
--- /dev/null
+++ b/scripts/decoder
@@ -0,0 +1,17 @@
+#!/usr/bin/env python3
+
+import urllib.parse
+import sys
+
+if len(sys.argv) < 2:
+ print(f"[*] Usage: python3 {sys.argv[0]} <url-encoded-data>")
+ sys.exit()
+
+enc = sys.argv[1]
+
+def decode(e):
+ dec = urllib.parse.unquote(e)
+ print(dec)
+
+decode(enc)
+