Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Decode base64 Strings

 
Logged in as: Guest
arrSession:exec spGetSession 2,16,35754
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> Post a VBScript >> Decode base64 Strings
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Decode base64 Strings - 6/24/2006 3:03:50 PM   
  DiGiTAL.SkReAM


Posts: 1157
Score: 7
Joined: 9/6/2005
From: Florida, USA
Status: offline
I find this function to be usefull when dealing with nosy users. :)
I find that sometimes I am forced to have a sensitive password buried in a script.  I can try to wrap the script in an executable via primalscript (really, just a self-extracting/executing zip file), but if the script hangs due to OS instability or SOMETHING, the bald script itself is found in the temp directory, along with the cleartext password.
And encoded scripts are ok, but when the user has access to the internet, they would be able to find 'script decoder' pretty easily.
So.  What to do?  In the rare events that I HAVE to embed a password, I use Base64 to scramble it, include a decoder in the script, and then wrap it all in one of those .EXE's.
That way, even if the script bombs for some reason, the user would have to find the temp file, open it, and understand it enough to rewrite it to show them the password through decoding.
Still not perfect, or even close, but best I could do with vbscript. lol
Have fun.


      


_____________________________

"Would you like to touch my monkey?" - Dieter (Mike Meyers)

"It is better to die like a tiger, than to live like a pussy."
-Master Wong, from Balls of Fury
 
 
Post #: 1
 
 RE: Decode base64 Strings - 6/25/2006 9:02:18 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
Thanks for the handy function. Research Alternative Data Streams on the web. With them you can hide a script in a perfectly normal looking text file and execute it from there. Nothing is exposed to the user unless they know the name of the stream.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to DiGiTAL.SkReAM)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Post a VBScript >> Decode base64 Strings Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts