Sunteți pe pagina 1din 2

#!

/usr/bin/perl
################################################################################
#################
# senthound
################################################################################
#################
# The script sends an html email with tracking img in it that points
# to the tracker's server to attempt to unveil an anonymous reader
#
# Author: Amar Yousif
# Version : 1.0
# Date : 11/6/2009
#
# Copyright 2009 Amar Yousif (AmarYousif ( a t ) gmail.com)
#
# Please 1) report bugs and give suggestions when you can, and
# 2) give credit when you use :)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# See <http://www.gnu.org/licenses/> for more info.
#
# If you are missing any of the perl modules needed for this script, install fro
m CPAN
# like so, we'll use MIME::Lite as an example: "perl -MCPAN -e 'install MIME::Li
te'".
use strict;
use MIME::Lite;
# variables
my $file;
my $data;
my @dataa;
my $to = 'victim@somewhere.com'; # <-- change this to the victim's e-mail addy
my $from = 'sender@somewhere.com'; # <-- change this to the sender's e-mail addy
my $subj = 'senthound HTML email test'; # <-- 'nuff said, change as you see fit
if (@ARGV!=1) {print "Usage: senthound [html email file]\n";exit;}
$file=$ARGV[0];
print "\n$file is not a file\n\n" unless -e $file;
open(H,"<$file");
@dataa=<H>;
$data=join('',@dataa);
close(H);
# create a new MIME Lite html email
my $msg = MIME::Lite->new
(
Subject => $subj,
From => $from,
To => $to,
Type => 'text/html',
Data => $data);
$msg->send();
exit;
################################################################################
#################
# Here's an example input file
# invoke like so:
# ./senthound INPUTFILE
################################################################################
#################
#
################################################################################
#################
#<html>
#<body>
#<p>
#This is a paragraph displayed before the picture.
#</p>
#<img src="http://your.web.server.with.logging.setup.com/unique/path/yourhound.j
pg"
# width="0"
# height="0"
# border="0"
# alt="my hound">
#<br>
#This is a caption for the picture.
#<p>
#This is a paragraph displayed after the picture.
#</p>
#</body>
#</html>
################################################################################
#################

S-ar putea să vă placă și