SYMBOL INDEX (287 symbols across 16 files) FILE: data/genData.py function writeVar (line 10) | def writeVar(f, name, var): function addEntry (line 16) | def addEntry(var, md5, type, fw): FILE: lang/_i18n_.py class Clr (line 17) | class Clr: class fg (line 25) | class fg: class bg (line 41) | class bg: class UI (line 53) | class UI: method clearScreen (line 64) | def clearScreen(): method link (line 69) | def link(str): method cyan (line 72) | def cyan(str): method highlight (line 75) | def highlight(str): method error (line 78) | def error(str): method warning (line 81) | def warning(str): method dark (line 84) | def dark(str): method green (line 87) | def green(str): method clearInput (line 92) | def clearInput(n = 1): method setTitle (line 96) | def setTitle(str = ''): method getTab (line 101) | def getTab(cls, str): method getTable (line 104) | def getTable(data, pad=16): method showTable (line 115) | def showTable(cls, data, pad=16): method showTableEx (line 120) | def showTableEx(cls, data, cols = 2, width = False): method getMenu (line 128) | def getMenu(menu, start=0): method showMenu (line 141) | def showMenu(cls, menu, start=0): method setStatus (line 146) | def setStatus(cls, v, clr = Clr.fg.yellow): method showStatus (line 151) | def showStatus(cls): FILE: ps4-wee-tools.py function main (line 12) | def main(args): FILE: tools/AdvSFlashTools.py function screenPartitionRecovery (line 15) | def screenPartitionRecovery(file, partition = ''): function screenValidate (line 112) | def screenValidate(file): function screenNvsRecovery (line 214) | def screenNvsRecovery(file): function screenEapKeyRecovery (line 296) | def screenEapKeyRecovery(file): function screenEmcCFW (line 371) | def screenEmcCFW(file): function screenHddKey (line 472) | def screenHddKey(file): function screenExtractNorDump (line 511) | def screenExtractNorDump(file): function screenBuildNorDump (line 552) | def screenBuildNorDump(folder): function screenAdvSFlashTools (line 613) | def screenAdvSFlashTools(file): FILE: tools/AdvSysconTools.py function screenAdvSysconTools (line 15) | def screenAdvSysconTools(file): function screenBootModes (line 56) | def screenBootModes(file): function resetSysconCounters (line 130) | def resetSysconCounters(file): function cleanSyscon (line 146) | def cleanSyscon(file): FILE: tools/SFlashTools.py function screenSBpatcher (line 16) | def screenSBpatcher(file, model = '', emc_ver = '', eap_ver = ''): function screenWFpatcher (line 171) | def screenWFpatcher(file, model = '', ver = ''): function screenSysFlags (line 285) | def screenSysFlags(file): function screenMemClock (line 309) | def screenMemClock(file): function screenSamuBoot (line 343) | def screenSamuBoot(file): function screenLegitimatePatch (line 367) | def screenLegitimatePatch(file, path = ''): function screenDowngrade (line 435) | def screenDowngrade(file): function screenFlagsToggler (line 489) | def screenFlagsToggler(file): function toggleFlag (line 553) | def toggleFlag(file, patch): function screenPartitionsInfo (line 574) | def screenPartitionsInfo(file): function screenSFlashTools (line 597) | def screenSFlashTools(file): function renameToCanonnical (line 651) | def renameToCanonnical(file): FILE: tools/SysconTools.py function toggleDebug (line 12) | def toggleDebug(file): function printSnvsEntries (line 24) | def printSnvsEntries(base,entries,start=''): function screenViewSNVS (line 44) | def screenViewSNVS(file, block = '', flat = False): function screenAutoPatchSNVS (line 87) | def screenAutoPatchSNVS(file): function screenManualPatchSNVS (line 174) | def screenManualPatchSNVS(file, flat = False): function screenSysconTools (line 234) | def screenSysconTools(file): function getSysconInfo (line 287) | def getSysconInfo(file): function renameToCanonnical (line 322) | def renameToCanonnical(file): FILE: tools/Tools.py function screenMainMenu (line 20) | def screenMainMenu(): function screenSelectLanguage (line 56) | def screenSelectLanguage(): function screenNorFlasher (line 87) | def screenNorFlasher(path = '', port = '', act = '', mode = False): function screenSysconFlasher (line 249) | def screenSysconFlasher(path = '', port = '', act = '', mode = False): function screenSysconReader (line 413) | def screenSysconReader(port = '', file = ''): function screenSerialMonitor (line 479) | def screenSerialMonitor(port = '', emc_mode = False): function screenChoosePort (line 543) | def screenChoosePort(): function screenFileSelect (line 582) | def screenFileSelect(path = False, all = False, ret = False): function screenCompareFiles (line 674) | def screenCompareFiles(list): function screenUnpack2BLS (line 706) | def screenUnpack2BLS(path): function screenBuild2BLS (line 749) | def screenBuild2BLS(path): function screenHelp (line 787) | def screenHelp(): function chooseBNC (line 798) | def chooseBNC(mode = 0, block_size = 0, syscon = False): function launchTool (line 846) | def launchTool(path): function quickLegitimatePatch (line 877) | def quickLegitimatePatch(files): FILE: utils/encdec.py function aes_decrypt_cbc (line 44) | def aes_decrypt_cbc(key, iv, input): function aes_encrypt_cbc (line 47) | def aes_encrypt_cbc(key, iv, input): function aes_decrypt_ecb (line 50) | def aes_decrypt_ecb(key, data): function aes_encrypt_ecb (line 53) | def aes_encrypt_ecb(key, data): function emc_decrypt_header (line 56) | def emc_decrypt_header(hdr): function emc_encrypt_header (line 59) | def emc_encrypt_header(hdr): function eap_decrypt_header (line 62) | def eap_decrypt_header(hdr): function eap_encrypt_header (line 65) | def eap_encrypt_header(hdr): function hmac_sha256 (line 68) | def hmac_sha256(key, data): function checkType (line 73) | def checkType(type): function decrypt (line 89) | def decrypt(data): function encrypt (line 126) | def encrypt(data): function hddEapKey (line 156) | def hddEapKey(eap_key, smi, use_new_blob=False): FILE: utils/scflasher.py class SysconFlasher (line 15) | class SysconFlasher(WeeSerial): class Cmd (line 22) | class Cmd: class Config (line 36) | class Config: method __init__ (line 43) | def __init__(self, port, ver = False): method __getStatusByCode (line 51) | def __getStatusByCode(self, code): method __getStatus (line 72) | def __getStatus(self): method __getCmdData (line 85) | def __getCmdData(self, cmd, block, count = ''): method __eraseAll (line 99) | def __eraseAll(self): method __eraseBlock (line 109) | def __eraseBlock(self, block, count = 1): method __readAll (line 120) | def __readAll(self): method __readBlock (line 129) | def __readBlock(self, block, count = 1): method __writeBlock (line 138) | def __writeBlock(self, data, block, ex = False): method __checkBC (line 153) | def __checkBC(self, block, count): method reset (line 165) | def reset(self): method connect (line 170) | def connect(self): method getChipInfo (line 197) | def getChipInfo(self): method disconnect (line 215) | def disconnect(self): method eraseChip (line 220) | def eraseChip(self, block = 0, count = 0): method readChip (line 249) | def readChip(self, block = 0, count = 0): method writeChip (line 275) | def writeChip(self, data, block = 0, count = 0, ex = False): function sysconReader (line 322) | def sysconReader(sp, file): FILE: utils/serial.py class WeeSerial (line 11) | class WeeSerial: method __init__ (line 47) | def __init__(self, port, cfg = {}): method __del__ (line 66) | def __del__(self): method error (line 70) | def error(self, msg): method printf (line 73) | def printf(self, str, erase = False): method getPortList (line 77) | def getPortList(): method getPortInfo (line 83) | def getPortInfo(self): method printline (line 88) | def printline(self, line): method getLines (line 96) | def getLines(self, buf): method monitor (line 120) | def monitor(self): method startMonitor (line 148) | def startMonitor(self): method stopMonitor (line 154) | def stopMonitor(self): method getSP (line 157) | def getSP(self, key = ''): method sendText (line 162) | def sendText(self, txt, EOL = b'\n\r'): method send (line 169) | def send(self, bytes): method close (line 176) | def close(self): method _write (line 182) | def _write(self, s): method _flush (line 198) | def _flush(self): method _read (line 208) | def _read(self, size): method _clean (line 218) | def _clean(self): method testPatterns (line 226) | def testPatterns(self, path): FILE: utils/sflash.py class Partition (line 166) | class Partition(ctypes.Structure): method getName (line 177) | def getName(self): method getOffset (line 181) | def getOffset(self): method getSize (line 184) | def getSize(self): class MBR_v1 (line 187) | class MBR_v1(ctypes.Structure): class MBR_v4 (line 199) | class MBR_v4(ctypes.Structure): function getConsoleRegion (line 231) | def getConsoleRegion(file): function getMemClock (line 240) | def getMemClock(file): function rawToClock (line 247) | def rawToClock(raw): function clockToRaw (line 254) | def clockToRaw(frq): function getSlotSwitchInfo (line 259) | def getSlotSwitchInfo(file): function getNorFW (line 268) | def getNorFW(f, active_slot = ''): function isFwInList (line 299) | def isFwInList(fw, fw_list): function getFwFilename (line 308) | def getFwFilename(item, folder): function getPartitionName (line 320) | def getPartitionName(code): function getNorPartition (line 325) | def getNorPartition(f, name): function getNorPartitionMD5 (line 332) | def getNorPartitionMD5(f, name): function getDataByPartition (line 340) | def getDataByPartition(name): function getDataByPartitionAndType (line 355) | def getDataByPartitionAndType(name, type, fw = False): function checkMagic (line 372) | def checkMagic(data, key): function getPartitionsInfo (line 384) | def getPartitionsInfo(f): function getTorusInfo (line 412) | def getTorusInfo(f): function getSouthBridge (line 427) | def getSouthBridge(f): function getNorAreaName (line 458) | def getNorAreaName(key): function setNorData (line 465) | def setNorData(file, key, val): function setNorDataB (line 472) | def setNorDataB(file, key, val): function getNorData (line 479) | def getNorData(file, key, decode = False): function getNorDataB (line 487) | def getNorDataB(file, key, decode = False): function getModel (line 495) | def getModel(f): function getMobo (line 504) | def getMobo(board): function getInfoForLegitSwitch (line 525) | def getInfoForLegitSwitch(f): function getActiveSlot (line 536) | def getActiveSlot(f): function checkNVS (line 540) | def checkNVS(data, key = 'NVS1'): function getOffsetRange (line 544) | def getOffsetRange(k, backup = False): function getPartition (line 548) | def getPartition(f, name): function getPartitionMD5 (line 553) | def getPartitionMD5(f, name): function getFWInfo (line 559) | def getFWInfo(f, active_slot = ''): function getSFlashInfo (line 609) | def getSFlashInfo(file = '-'): function getCanonicalName (line 651) | def getCanonicalName(fpath): FILE: utils/slb2.py class SLB2Header (line 14) | class SLB2Header(ctypes.Structure): class SLB2Entry (line 25) | class SLB2Entry(ctypes.Structure): function align (line 36) | def align(size, block): function getGet2BLSInfo (line 41) | def getGet2BLSInfo(data): function build2BLS (line 69) | def build2BLS(files): FILE: utils/spiway.py class SpiFlasher (line 13) | class SpiFlasher(WeeSerial): class Config (line 38) | class Config: method reset (line 54) | def reset(cls): method load (line 58) | def load(cls, cfg, id = 0): class Cmd (line 76) | class Cmd: method __init__ (line 95) | def __init__(self, port, ver = False): method __setConfig (line 106) | def __setConfig(self, ven_id = False, dev_id = False): method __setAddress (line 125) | def __setAddress(self, address): method __setMode (line 132) | def __setMode(self): method __getStatusByCode (line 136) | def __getStatusByCode(self, code): method __getStatus (line 153) | def __getStatus(self): method __eraseBlock (line 164) | def __eraseBlock(self, block): method __readBlock (line 176) | def __readBlock(self, block): method __writeSector (line 188) | def __writeSector(self, data, sector): method __writeBlock (line 200) | def __writeBlock(self, data, block, verify): method __checkBC (line 230) | def __checkBC(self, block, count): method bootloader (line 242) | def bootloader(self): method reset (line 246) | def reset(self): method ping (line 251) | def ping(self): method getChipId (line 268) | def getChipId(self): method getChipInfo (line 280) | def getChipInfo(self): method eraseChip (line 296) | def eraseChip(self, block = 0, count = 0): method readChip (line 324) | def readChip(self, block = 0, count = 0): method writeChip (line 351) | def writeChip(self, data, verify = 0, block = 0, count = 0): FILE: utils/syscon.py function setSysconData (line 84) | def setSysconData(file, key, val): function getSysconData (line 91) | def getSysconData(fod, key): function checkSysconData (line 101) | def checkSysconData(fod, keys): function checkSysconFW (line 109) | def checkSysconFW(file): function getEntriesByType (line 122) | def getEntriesByType(type, entries): function getRecordPos (line 136) | def getRecordPos(index, nvs): function isSysconPatchable (line 152) | def isSysconPatchable(records): class NvsConfig (line 177) | class NvsConfig: method __init__ (line 181) | def __init__(self, cfg): method getOffset (line 184) | def getOffset(self): method getHeaderLength (line 187) | def getHeaderLength(self): method getHeaderCount (line 190) | def getHeaderCount(self): method getHeaderSize (line 193) | def getHeaderSize(self): method getDataFlatLength (line 196) | def getDataFlatLength(self): method getDataRecordsLength (line 199) | def getDataRecordsLength(self): method getDataCount (line 202) | def getDataCount(self): method getDataLength (line 205) | def getDataLength(self): method getDataSize (line 208) | def getDataSize(self): method getDataRecordsCount (line 211) | def getDataRecordsCount(self): class NvsEntry (line 216) | class NvsEntry: method __init__ (line 220) | def __init__(self, buf=b''): method getHeader (line 226) | def getHeader(self): method getData (line 229) | def getData(self): method getEntry (line 232) | def getEntry(self): method getCounter (line 235) | def getCounter(self): method setCounter (line 238) | def setCounter(self,val): method getIndex (line 243) | def getIndex(self): method setIndex (line 246) | def setIndex(self, val): method getLink (line 250) | def getLink(self): method setLink (line 253) | def setLink(self, val): method hasMagic (line 256) | def hasMagic(self): method checkMagic (line 260) | def checkMagic(e): method getEntryHeadSize (line 266) | def getEntryHeadSize(): method getEntryDataSize (line 270) | def getEntryDataSize(): method getEntrySize (line 274) | def getEntrySize(): class NVStorage (line 279) | class NVStorage: method __init__ (line 290) | def __init__(self, config, buffer): method load (line 297) | def load(self, buf): method getHeader (line 302) | def getHeader(self): method getData (line 305) | def getData(self): method getBytes (line 308) | def getBytes(self): method getVolumeEntry (line 313) | def getVolumeEntry(self, volume = 0, index = 0): method getLastVolumeEntryOffset (line 317) | def getLastVolumeEntryOffset(self, real = False): method getVolumeEntryOffset (line 320) | def getVolumeEntryOffset(self, index, real = False): method getVolumeIndex (line 324) | def getVolumeIndex(self, volume = 0): method findActiveVolume (line 328) | def findActiveVolume(self): method getVolumeEntries (line 346) | def getVolumeEntries(self, volume = 0): method getLastDataEntries (line 362) | def getLastDataEntries(self): method getLastDataBlockOffset (line 365) | def getLastDataBlockOffset(self, real = False): method getDataBlockOffset (line 368) | def getDataBlockOffset(self, index = 0, real = False): method getDataBlock (line 372) | def getDataBlock(self, index = 0): method getDataBlockRecords (line 376) | def getDataBlockRecords(self, index = 0): method getDataBlockEntries (line 380) | def getDataBlockEntries(self, index = 0): method getDataBlocksOrder (line 393) | def getDataBlocksOrder(self): method getAllDataEntries (line 398) | def getAllDataEntries(self): method getLastFlatEntries (line 406) | def getLastFlatEntries(self): method getLastFlatDataOffset (line 409) | def getLastFlatDataOffset(self, real = False): method getFlatDataOffset (line 412) | def getFlatDataOffset(self, index = 0, real = False): method getDataBlockFlat (line 416) | def getDataBlockFlat(self, index = 0): method getAllFlatData (line 420) | def getAllFlatData(self): method getFlatDataEntries (line 426) | def getFlatDataEntries(self, index = 0): method getOWC (line 449) | def getOWC(self): method getRebuilded (line 458) | def getRebuilded(self, entries = False, flatdata = False): function getCanonicalName (line 513) | def getCanonicalName(fpath): FILE: utils/utils.py class Config (line 16) | class Config: method __init__ (line 22) | def __init__(self, file='config.ini'): method load (line 27) | def load(self, file = False): method save (line 49) | def save(self, file = False): method get (line 63) | def get(self, key, default=''): method set (line 66) | def set(self, key, val): function getEmcCmd (line 73) | def getEmcCmd(str): function ceil (line 80) | def ceil(a, b): function checkCtrl (line 84) | def checkCtrl(s, key): function genRandBytes (line 89) | def genRandBytes(size): function getMemData (line 94) | def getMemData(data, offset, lenght): function getData (line 101) | def getData(file, off, len): function setData (line 115) | def setData(file, off, val): function checkFileSize (line 129) | def checkFileSize(file, size): function getFilePathWoExt (line 144) | def getFilePathWoExt(file, fix_spaces = False): function getFileMD5 (line 151) | def getFileMD5(file): function getFilesList (line 160) | def getFilesList(path, ext = ''): function percent (line 174) | def percent(part, whole): function compareData (line 179) | def compareData(d1, d2, step = 1): function compareDataWithFiles (line 189) | def compareDataWithFiles(data, file_list, buf = 1, show_progress = False): function getFileTime (line 204) | def getFileTime(path): function hex (line 211) | def hex(buf,sep=' '): function swapBytes (line 219) | def swapBytes(arr): function getFileContents (line 228) | def getFileContents(path): function savePatchData (line 234) | def savePatchData(path, data, patch = False): function patchFile (line 242) | def patchFile(path, patch): function entropy (line 250) | def entropy(file):