praetorian-inc / purple-team-attack-automation

Praetorian's public release of our Metasploit automation of MITRE ATT&CK™ TTPs
Other
716 stars 118 forks source link

T1155M - AppleScript #33

Open daniel-infosec opened 5 years ago

daniel-infosec commented 5 years ago

osascript "do shell script "echo \"import sys,base64,warnings;warnings.filterwarnings('ignore');exec(base64.b64decode('Zj1vcGVuKCIvdG1wL3QxMTU1bS50eHQiLCJ3KyIpCmYud3JpdGUoInQxMTU1bS50eHQiKQpmLmNsb3NlKCk='));\" | python &""

Python code does the following

f=open("/tmp/t1155m.txt","w+")
f.write("t1155m")
f.close()