#!/usr/bin/perl use MIME::Base64; my $fullname = "Webmaster 2organize.com"; my $username = "webmaster"; my $hostname = "2organize.com"; my $my_config_file = "config"; my $from = "$fullname <$username\@$hostname>"; my $bound = "e7e0ec52ed9c9026a8e3f293d87abe92"; open (MAIL,"|sendmail -C $my_config_file") || Error("Couldn't open pip +e to mal injector\n"); print MAIL "Content-Type: multipart/mixed; boundary=\"$bound\"\n"; print MAIL "From: $from\n"; print MAIL "To: $to\n"; print MAIL "Bcc: $bcc\n"; print MAIL "Subject: Online vacature voor $app\n\n"; print MAIL "$mail_body\n"; foreach my $file (@ARGV) open(FILE,"<$file) || die("Couldn't open $file!\n"); seek (FILE, 0, 0); my $content = ""; while (<FILE>) { $content .= $_; } print MAIL "\n--$bound\n"; print MAIL "Content-type: $type{ExtGetter($file)}\n"; print MAIL "Content-Disposition: attachment; filename=\"$filename\"\ +n"; print MAIL "Content-Transfer-Encoding: base64\n\n"; print MAIL encode_base64($content); print MAIL "\n"; }
In reply to Re: Using an alternate sendmail.cf file
by Sinister
in thread Using an alternate sendmail.cf file
by Dalin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |