def setup(self): print "Initialising FairPlay SAP..." st = time.clock() self.sap = drm.FairPlaySAP(self.server.parent.airtunesd_filename) et = time.clock() print "Done! Took %.2f seconds." % (et-st) self.sap_stage = 0 BaseHTTPRequestHandler.setup(self)
def setup_sap(): print "Initialising FairPlay SAP..." st = time.clock() AirTunesRTSPHandler.sap = drm.FairPlaySAP('airtunesd') et = time.clock() print "Done! Took %.2f seconds." % (et - st)
def setup(self): self.sap = drm.FairPlaySAP(self.server.parent.airtunesd_filename) self.sap_stage = 0 BaseHTTPRequestHandler.setup(self)
__author__ = 'lukaszprzytula' import drm sap = drm.FairPlaySAP('airtunesd') sap.stage = 0 fpaes64 = 'RlBMWQECAQAAAAA8AAAAACLG0a0O1TjJuG0vRoV3MeYAAAAQTD/h7nKkgRZzbna2Hfb3UJUqFY/5r/LP/Zjztjt3nCcCq8gl' # RlBMWQECAQAAAAA8AAAAACLG0a0O1TjJuG0vRoV3MeYAAAAQTD/h7nKkgRZzbna2Hfb3UJUqFY/5r/LP/Zjztjt3nCcCq8gl fpaes = fpaes64.decode("base64") print fpaes # FPLY<"?ѭ?8ɸm/F?w1?L???r??snv???P?*????????;w?'??% key = sap.decrypt_key(fpaes) print key print ":".join("{:02x}".format(ord(c)) for c in key)