in reply to Re: Re: Re: Re: SOAP::Lite and Security (Phrack #58)
in thread SOAP::Lite and Security (Phrack #58)
Try this:
package Bob; use Safe; use Digest::MD5; $cpt = new Safe; $cpt->share('&alpha'); $str1 = 'print Digest::MD5::md5_hex("Jerrad"), "\n"'; $str2 = 'print "Hello World\n"'; sub alpha{ "Do things\n" }; sub beta { "Do other things\n" }; eval $str1; eval $str2; eval "print &alpha"; eval "print &beta"; $cpt->reval($str1); $cpt->reval($str2); $cpt->reval("print &alpha"); $cpt->reval("print &beta"); __END__
Yields:
26e30951791b6e173148f99d8b709c5b Hello World Do things Do other things Hello World Do things
etc. etc. I never meant to imply it was easy as pie, just that it helped (made hard things possible ;-).
--
perl -pe "s/\b;([st])/'\1/mg"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re:**6 SOAP::Lite and Security (Phrack #58)
by IlyaM (Parson) on Dec 31, 2001 at 07:20 UTC | |
by belg4mit (Prior) on Dec 31, 2001 at 12:04 UTC |