Sendmail Inject
2003-01-26 22:31:29
Category: perl:internet
Description: Open a pipe to sendmail to send an email.
Author: detour
Viewed: 2532
Rating: (4 votes)


#!/usr/bin/perl
#
# sm-inject.pl written by detour@metalshell.com
#
# Open a pipe to sendmail to send an email.
#
# http://www.metalshell.com/
#
 
use strict;
 
my $sendmail = "/usr/sbin/sendmail";
 
open (SENDMAIL, "| $sendmail -t");
print SENDMAIL "Subject: Sendmail Inject\n";
print SENDMAIL "From: me\@email.com\n";
print SENDMAIL "To: dev\@null.com\n";
print SENDMAIL "Hello!\n";
print SENDMAIL "\n\n\n-bye";
close(SENDMAIL);