Skip to main content
Question

Extended Attribute to pull Final Cut Pro 7 Serial

  • June 6, 2012
  • 3 replies
  • 26 views

Forum|alt.badge.img+9

We want to track down what serial numbers are being used. Has anyone out there scripted something? Im not even sure if its possible as the file where the serial is stored is encrypted.

3 replies

Forum|alt.badge.img+24
  • Valued Contributor
  • June 6, 2012

Being that the file is encrypted, what you could do is an MD5 hash of that file. You'd first need to have a test machine where you install FCP, serialize it, and then take the MD5 hash. Since you'd then have a correlation of MD5 hash to serial, you could make an extension attribute for it.

Follow?


Forum|alt.badge.img+9
  • Author
  • Valued Contributor
  • June 6, 2012

Thanks Jared I follow but how would I capture the checksum?


Forum|alt.badge.img+24
  • Valued Contributor
  • June 6, 2012

Me, I'd case statement it as you're looking for particular patterns.

#!/bin/sh
checksum=`md5 <yourfilenname>`
case $checksum in
   <yourFirstPossibleChecksum>)
          <result>"Serial number 1"</result>
          ;;
   <yourSecondPossibleChecksum>)
          <result>"Serial number 2"</result>
          ;;
   *)
          <result>"Didn't find an expected serial number"</result>
esac

This is totally back of napkin and I haven't tested a single character. Test it, test it, test it.