Forums Search Login Register
Login
Username
Password
New Posts Todays Posts Find Users Posts Unanswered Threads Help Mark Forums as Read

Thread Options  Subscribe to this thread Subscribed Users  Add Reply 
Posts: 2,804
Trophies:
1
Help Troubleshooting an AppleScript

So, I have a bit of a problem. I have an encrypted dmg file that I have forgotten the password for. Thanks to a younger (and dumber) version of myself using formulaic passwords, I was able to create a relatively small wordlist of the possible passwords. After some research, I found an applescript on an old metafilter discussion here (http://ask.metafilter.com/47171/How-to-c...isk-image) that would test the wordlist against the encrypted dmg.

When I try to run the script in the applescript editor i get the following error (also in the attached screen shot):

"Expected end of line, etc. but found parameter name."

Here is the script:


Code:
---------
#!/bin/bash
for word in $(cat wordlist.txt | grep -v "#")
do
echo -n $word | hdiutil attach -mount -encryption -stdinpass - image.dmg
if [[ $? = 0 ]]
then
echo "Password found!"
echo $word
exit 0
fi
done

echo "password not found Sad"
exit 1
---------
If anyone could help me out with the applescript I would really appreciate it. I know next to nothing about applescripts.
08-04-2011, 02:19 AM
Reply
Subscribe to this thread Subscribed Users  Add Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  What's your Kernel Panic troubleshooting technique? sevans 0 199 06-21-2014 04:24 AM
Last Post: sevans
  iPhoto, Applescript, and Amazon Glacier question nandymorenoi 0 145 05-19-2014 07:41 AM
Last Post: nandymorenoi
  AppleScript Help zbernadinerrrhat 0 148 02-05-2014 04:39 PM
Last Post: zbernadinerrrhat
  Spontaneous random logouts -- help troubleshooting Mac Tramp 0 182 10-02-2013 11:51 AM
Last Post: Mac Tramp
  Applescript - check if connected to a specific network, then run (else fail silently) ogerardosandovaln 0 217 09-22-2013 10:13 AM
Last Post: ogerardosandovaln
  Simple AppleScript for mail.app Shiney 0 211 07-26-2013 01:05 PM
Last Post: Shiney
  App Expose Applescript medoebler82 0 180 06-28-2013 01:49 PM
Last Post: medoebler82
  Understanding Applescript gmelissaleachr 0 192 03-31-2013 10:02 PM
Last Post: gmelissaleachr
  Mac OS X Tips Troubleshooting Guide ogerardosandovaln 0 286 03-26-2013 04:17 AM
Last Post: ogerardosandovaln
  Using iCal as an Alarm via AppleScript lodiliagloverj 0 223 01-05-2013 07:06 PM
Last Post: lodiliagloverj

Forum Jump:



User(s) browsing this thread: 1 Guest(s)



Contact Us Privacy Policy Top RSS
Forum Software By: MyBB, © 2002-2017