Sys::Protect does not bill itself as unbreakable protection, but it's fun to break it anyway.
PadWalker is used as an example of an XS module that could seriously mess with other code.
#!/usr/bin/env perl no strict; use warnings; use Sys::Protect; use Test::More tests => 1; XSLoader::load(bless {}, 'Break::Sys::Protect'); my $password = 'c53eb8f992b4fdf70a03a4d437820028'; is(${PadWalker::closed_over(sub { $password })->{'$password'}}, $password); package Break::Sys::Protect; use overload q{""} => sub { return "Math::BigInt::FastCalc" if caller eq 'Sys::Protect'; $_[0] = "PadWalker"; };
Don't use Sys::Protect. :)
Re:Sys::Protect is too weak :(
sartak on 2009-03-26T03:18:27
Super cool. I also loved your pure-perl DB/inside-out hack.:)