Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /opt/cpanel/ea-nodejs16/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/cpanel/ea-nodejs16/remove_pwsh.pl
use strict;
use warnings;

my @files = split (/\n/, `find . -type f -print`);

foreach my $file (@files) {
    my $first_line = `head -n 1 $file`;
    if ($first_line =~ m/env\s+pwsh/) {
        print "Removing file $file\n";
        unlink $file;
    }
}

ZeroDay Forums Mini