From 445502b54474ce2f6d3337541651091fd64fe4ed Mon Sep 17 00:00:00 2001 From: thurask Date: Sat, 23 Sep 2017 16:09:06 -0400 Subject: [PATCH 1/2] update prds --- prds.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/prds.txt b/prds.txt index 0b97581..6328de6 100644 --- a/prds.txt +++ b/prds.txt @@ -1,7 +1,7 @@ PRD-63116-001 AAO472 Unlocked BBB100-1 (USA) PRD-63116-003 AAO472 Bell BBB100-1 PRD-63116-005 AAO472 Rogers BBB100-1 -PRD-63116-007 AAO472 BBB100-1 +PRD-63116-007 AAO472 Telus BBB100-1 PRD-63116-009 AAO472 BBB100-1 PRD-63116-010 AAN358 BBB100-1 PRD-63116-013 AAO472 BBB100-1 @@ -13,18 +13,24 @@ PRD-63116-024 AAO472 BBB100-1 PRD-63116-027 AAN057 BBB100-1 PRD-63116-033 AAO472 BBB100-1 PRD-63116-036 AAN596 AT&T BBB100-1 +PRD-63116-041 AAO472 BBB100-1 +PRD-63116-042 AAO472 BBB100-1 PRD-63117-003 AAO472 BBB100-2 (UK) PRD-63117-011 AAO472 QWERTZ BBB100-2 (Germany) PRD-63117-015 AAO472 BBB100-2 (NL, Belgium) +PRD-63117-017 AAO472 BBB100-2 PRD-63117-019 AAO472 BBB100-2 PRD-63117-023 AAN358 AZERTY BBB100-2 (Belgium) PRD-63117-025 AAN358 BBB100-2 -PRD-63117-027 AAN358 QWERTY BBB100-2 (UAE) https://forums.crackberry.com/showthread.php?t=1112475&p=12973537&viewfull=1#post12973537 +PRD-63117-027 AAN358 QWERTY BBB100-2 (UAE) PRD-63117-028 AAN358 BBB100-2 PRD-63117-029 AAO472 BBB100-2 PRD-63117-034 AAO472 BBB100-2 +PRD-63117-035 AAO472 BBB100-2 PRD-63117-036 AAO472 BBB100-2 PRD-63117-037 AAN358 BBB100-2 +PRD-63117-039 AAO472 BBB100-2 +PRD-63117-040 AAO472 BBB100-2 PRD-63117-041 AAN358 BBB100-2 PRD-63117-042 AAN358 BBB100-2 PRD-63117-703 AAK199 Prerelease BBB100-2? From 0e3ebafb2d79b1d5197f7823821ae2cd2aec17f1 Mon Sep 17 00:00:00 2001 From: thurask Date: Sat, 23 Sep 2017 16:17:57 -0400 Subject: [PATCH 2/2] make escape characters semi-work on windows --- tclcheck_all.py | 1 + tclcheck_allfull.py | 1 + tclcheck_allota.py | 1 + tcllib.py | 13 +++++++++++++ 4 files changed, 16 insertions(+) diff --git a/tclcheck_all.py b/tclcheck_all.py index 5d4addf..bfba6c5 100644 --- a/tclcheck_all.py +++ b/tclcheck_all.py @@ -6,6 +6,7 @@ import tcllib from requests.exceptions import RequestException, Timeout +tcllib.make_escapes_work() ANSI_UP_DEL = u"\u001b[F\u001b[K" fc = tcllib.FotaCheck() diff --git a/tclcheck_allfull.py b/tclcheck_allfull.py index 93619e2..5b9fc01 100644 --- a/tclcheck_allfull.py +++ b/tclcheck_allfull.py @@ -6,6 +6,7 @@ import tcllib from requests.exceptions import RequestException, Timeout +tcllib.make_escapes_work() ANSI_UP_DEL = u"\u001b[F\u001b[K" fc = tcllib.FotaCheck() diff --git a/tclcheck_allota.py b/tclcheck_allota.py index 5583671..70bd754 100644 --- a/tclcheck_allota.py +++ b/tclcheck_allota.py @@ -6,6 +6,7 @@ import tcllib from requests.exceptions import RequestException, Timeout +tcllib.make_escapes_work() ANSI_UP_DEL = u"\u001b[F\u001b[K" fc = tcllib.FotaCheck() diff --git a/tcllib.py b/tcllib.py index e08ea90..114d7bf 100644 --- a/tcllib.py +++ b/tcllib.py @@ -5,6 +5,7 @@ import base64 import binascii import hashlib +import platform import random import time import xml.dom.minidom @@ -17,6 +18,18 @@ except (ImportError, AttributeError): from xml.etree import ElementTree import requests + +def make_escapes_work(): + system = platform.system() + if system == "Windows": + try: + import colorama + except ImportError: + pass + else: + colorama.init() + + class FotaCheck: VDKEY = b"eJwdjwEOwDAIAr8kKFr//7HhmqXp8AIIDrYAgg8byiUXrwRJRXja+d6iNxu0AhUooDCN9rd6rDLxmGIakUVWo3IGCTRWqCAt6X4jGEIUAxgN0eYWnp+LkpHQAg/PsO90ELsy0Npm/n2HbtPndFgGEV31R9OmT4O4nrddjc3Qt6nWscx7e+WRHq5UnOudtjw5skuV09pFhvmqnOEIs4ljPeel1wfLYUF4\n" CKTP_CHECKAUTO = 1