-
Notifications
You must be signed in to change notification settings - Fork 12
云主机命令执行
404tk edited this page Dec 4, 2023
·
2 revisions
支持阿里云、腾讯云通过云助手下发命令并获取执行结果,执行shell
指令前需先运行cloudlist
模块:
支持明文或base64执行命令或shell脚本
ctk > sessions -i 1
ctk > tencent > run
[+] 21:58:13 Current account ARN: qcs::cam:xxxxxx:uin/xxxxxxx
[*] 21:58:13 Start enumerating CVM ...
[*] 21:58:14 Start enumerating Lighthouse ...
[ap-chengdu] 1 found.
Hosts results:
+-------------+----------------+----------------+------------+------------+--------+------------+
| HostName | Instance ID | Public IP | Private IP | OS Type | Public | Region |
+-------------+----------------+----------------+------------+------------+--------+------------+
| CentOS-xxxx | lhins-xxxxx123 | xxx.xxx.xxx.xx | 10.0.0.x | LINUX_UNIX | true | xxx |
+-------------+----------------+----------------+------------+------------+--------+------------+
ctk > tencent > shell
[-] 00:01:20 Usage: shell instance-id
ctk > tencent > shell ins-xxxxx123
[shell@ins-xxxxx123 ~]$ id
uid=0(root) gid=0(root) groups=0(root)
[shell@ins-xxxxx123 ~]$ base64 d2hvYW1p
root
[shell@ins-xxxxx123 ~]$ back
[*] 00:01:25 Connection to ins-xxxxx123 closed.
ctk > tencent >