Friday, August 22, 2008

iPhone / iPod Firmware Link

http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStore.woa/wa/com.apple.jingle.appserver.client.MZITunesClientCheck/version?touchUpdate=true

Shell script: Select all

#!/bin/sh
curl -s -L http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStore.woa/wa/com.apple.jingle.appserver.client.MZITunesClientCheck/version?touchUpdate=true | gunzip | grep appldnld | grep "iP*.*Restore" | awk '{print $1;}' | uniq

1 comment:

Anonymous said...

thought I'd pass along my version of this command, it strips off all the whitespace and arrant XML, sorts the list, does it with a few less commands, and it catches a few URL's the original script misses. The only hitch is that the tab character doesn't copy properly, so once you paste the command in to the terminal, use the "Special Characters" menu option to put a tab character along side the space in the square brackets.

curl --compressed -s -L http://itunes.com/version?touchUpdate=true | grep 'iP*.*Restore.ipsw' | sed -e 's/[ ]*//' -e 's/<string>//' -e 's/<\/string>//' | sort -u