CS插件开发

  1. 参考

新建按钮:

1
2
3
4
5
6
popup beacon_bottom {
menu "测试" {
item "测试1" {
}
}
}

控制台文本颜色:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
alias showcolor{
blog($1,"Hello \c0test");
blog($1,"Hello \c1test");
blog($1,"Hello \c2test");
blog($1,"Hello \c3test");
blog($1,"Hello \c4test");
blog($1,"Hello \c5test");
blog($1,"Hello \c6test");
blog($1,"Hello \c7test");
blog($1,"Hello \c8test");
blog($1,"Hello \c9test");
blog($1,"Hello \cAtest");
blog($1,"Hello \cBtest");
blog($1,"Hello \cCtest");
blog($1,"Hello \cDtest");
}

上传文件:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
popup beacon_bottom {
menu "测试" {
item "上传nbtscan" {
$bid = $1;
$dialog = dialog("上传nbtscan", %(UploadPath => "C:\\Temp\\", bid => $bid), &FRP);
drow_text($dialog, "UploadPath", "上传路径: ");
dbutton_action($dialog, "上传");
dialog_show($dialog);
}
sub FRP {
bcd($bid, $3['UploadPath']);
if (-is64 $bid['id']) {
bupload($bid, script_resource("/japowriehfpao.exe"));
}else{
bupload($bid, script_resource("/japowriehfpao.exe"));
}
}
}
}

内部分享做了ppt,文章有时间再写吧

参考

CobaltStrike插件开发官方指南 Part1

Aggressor Script Tutorial and Reference


转载请注明来源,欢迎对文章中的引用来源进行考证,欢迎指出任何有错误或不够清晰的表达。可以在下面评论区评论,也可以邮件至 sher10cksec@foxmail.com

文章标题:CS插件开发

本文作者:sher10ck

发布时间:2020-11-21, 19:23:09

最后更新:2020-12-22, 19:33:37

原始链接:http://sherlocz.github.io/2020/11/21/cna-code/

版权声明: "署名-非商用-相同方式共享 4.0" 转载请保留原文链接及作者。

目录