-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathdmg_pass.bash
More file actions
executable file
·32 lines (23 loc) · 830 Bytes
/
dmg_pass.bash
File metadata and controls
executable file
·32 lines (23 loc) · 830 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
25
26
27
28
29
30
31
32
#!/bin/sh
i=0
while IFS='' read -r line || [[ -n "$line" ]]; do
((i++))
if [ $i -lt $3 ]; then
echo "$i: $line skipped"
continue
fi
echo "$i: $line"
res="$(printf $line | hdiutil attach -quiet -stdinpass $2 )"
# echo "RESULT: $?"
if [ $? -eq 0 ]; then
echo "================================================================"
echo ""
echo " The disk is successfully mounted!!! "
echo " Your password is: $line"
echo ""
echo " Do not forget to donate some ETH to the developer:"
echo " Ethereum Address: 0x281694Fabfdd9735e01bB59942B18c469b6e3df6"
echo "================================================================"
exit
fi
done < "$1"