From 072a5dbc8a3b7e10c78bcd85b4c17213dc5b10c6 Mon Sep 17 00:00:00 2001 From: Nate <101878955+nathansb2022@users.noreply.github.com> Date: Sun, 4 Aug 2024 10:37:16 -0500 Subject: [PATCH] Create ConvertBase64.ps1 updated folder, misspelled injection --- .../execution/DNS-TXT-CommandInjection/ConvertBase64.ps1 | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 payloads/library/execution/DNS-TXT-CommandInjection/ConvertBase64.ps1 diff --git a/payloads/library/execution/DNS-TXT-CommandInjection/ConvertBase64.ps1 b/payloads/library/execution/DNS-TXT-CommandInjection/ConvertBase64.ps1 new file mode 100644 index 0000000..ffdb8dd --- /dev/null +++ b/payloads/library/execution/DNS-TXT-CommandInjection/ConvertBase64.ps1 @@ -0,0 +1,3 @@ +$text = Read-Host -prompt "What would you like to encode" +$base64Text = [Convert]::ToBase64String([Text.Encoding]::Unicode.GetBytes($text)) +echo $base64Text