ヤミRoot VoidGate
User / IP
:
216.73.216.2
Host / Server
:
146.88.233.70 / dev.loger.cm
System
:
Linux hybrid1120.fr.ns.planethoster.net 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
itrave
/
.cpanm
/
work
/
1568630680.21759
/
libnet-3.11
/
demos
/
Viewing: smtp.self
#!perl use 5.008001; use strict; use warnings; use blib; use Getopt::Long; use Net::SMTP; =head1 NAME smtp.self - mail a message via smtp =head1 DESCRIPTION C<smtp.self> will attempt to send a message to a given user =head1 OPTIONS =over 4 =item -debug Enabe the output of dubug information =item -help Display this help text and quit =item -user USERNAME Send the message to C<USERNAME> =back =head1 EXAMPLE demos/smtp.self -user foo.bar demos/smtp.self -debug -user Graham.Barr =cut our $opt_debug = undef; our $opt_user = undef; our $opt_help = undef; GetOptions(qw(debug user=s help)); exec("pod2text $0") if defined $opt_help; Net::SMTP->debug(1) if $opt_debug; my $smtp = Net::SMTP->new("mailhost"); my $user = $opt_user || $ENV{USER} || $ENV{LOGNAME}; $smtp->mail($user) && $smtp->to($user); $smtp->reset; if($smtp->mail($user) && $smtp->to($user)) { $smtp->data(); my @data; map { s/-USER-/$user/g } @data=<DATA>; ## no critic (ControlStructures::ProhibitMutatingListFunctions) $smtp->datasend(@data); $smtp->dataend; } else { warn $smtp->message; } $smtp->quit; __DATA__ To: <-USER-> Subject: A test message The message was sent directly via SMTP using Net::SMTP . The message was sent directly via SMTP using Net::SMTP
Coded With 💗 by
0x6ick