Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
2867a0 committed May 23, 2023
1 parent a5a5171 commit 85067bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/TCloud/Plugin_TCloud_Exploit_LHCommandExecute.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def run_script(self, args) -> dict:
result = copy(self.result)

tapi = TencentAPi(args.access_key, args.secret_key)
result_b64 = tapi.execute_command(args.region_id, args.instance_id, args.os_type,args.command)
result_b64 = tapi.lh_execute_command(args.region_id, args.instance_id, args.os_type,args.command)

if result_b64:
output.success(base64.b64decode(result_b64).decode())
Expand Down
5 changes: 4 additions & 1 deletion plugins/TCloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def get_lh_instance(self, region):
output.error(err)
return results

def execute_command(self, region, instance_id, os_type, command):
def lh_execute_command(self, region, instance_id, os_type, command):
command_type = "SHELL"

if os_type == "windows":
Expand Down Expand Up @@ -305,3 +305,6 @@ def execute_command(self, region, instance_id, os_type, command):
output.error(err)

return command_result_base64

def get_lh_meta_data(self):
pass

0 comments on commit 85067bf

Please sign in to comment.