From ee6edd92fea161e789545196646a6289c79616da Mon Sep 17 00:00:00 2001
From: Chris Pomeroy <chris.pomeroy@hotmail.com>
Date: Sat, 06 Jul 2019 21:55:35 +0000
Subject: [PATCH] Merged #1 "Checkkey needs to be updated to correct url"

---
 /dev/null     |    0 
 aaxConvert.py |    2 +-
 2 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/aaxConvert.py b/aaxConvert.py
index 4aa774a..acccb82 100755
--- a/aaxConvert.py
+++ b/aaxConvert.py
@@ -146,7 +146,7 @@
     payload = hex
     recovery = 3
     while recovery != 0:
-      r = requests.post('http://x86-docker01:8080/function/checkkey', payload, verify=False, timeout=None)
+      r = requests.post('http://x86-docker01:8080/function/getaaxkey', payload, verify=False, timeout=None)
       if r.status_code == 200:
           key = r.text
           recovery = 0
diff --git a/getaaxkey/__init__.py b/getaaxkey/__init__.py
deleted file mode 100644
index e69de29..0000000
--- a/getaaxkey/__init__.py
+++ /dev/null
diff --git "a/getaaxkey/audible_byte\0434-4_0_10000x789935_0.rtc" "b/getaaxkey/audible_byte\0434-4_0_10000x789935_0.rtc"
deleted file mode 100644
index 6359b7a..0000000
--- "a/getaaxkey/audible_byte\0434-4_0_10000x789935_0.rtc"
+++ /dev/null
Binary files differ
diff --git "a/getaaxkey/audible_byte\0434-4_1_10000x791425_0.rtc" "b/getaaxkey/audible_byte\0434-4_1_10000x791425_0.rtc"
deleted file mode 100644
index 57aa2b1..0000000
--- "a/getaaxkey/audible_byte\0434-4_1_10000x791425_0.rtc"
+++ /dev/null
Binary files differ
diff --git "a/getaaxkey/audible_byte\0434-4_2_10000x790991_0.rtc" "b/getaaxkey/audible_byte\0434-4_2_10000x790991_0.rtc"
deleted file mode 100644
index 0ab3c43..0000000
--- "a/getaaxkey/audible_byte\0434-4_2_10000x790991_0.rtc"
+++ /dev/null
Binary files differ
diff --git "a/getaaxkey/audible_byte\0434-4_3_10000x792120_0.rtc" "b/getaaxkey/audible_byte\0434-4_3_10000x792120_0.rtc"
deleted file mode 100644
index 8e0438c..0000000
--- "a/getaaxkey/audible_byte\0434-4_3_10000x792120_0.rtc"
+++ /dev/null
Binary files differ
diff --git "a/getaaxkey/audible_byte\0434-4_4_10000x790743_0.rtc" "b/getaaxkey/audible_byte\0434-4_4_10000x790743_0.rtc"
deleted file mode 100644
index 1e169c3..0000000
--- "a/getaaxkey/audible_byte\0434-4_4_10000x790743_0.rtc"
+++ /dev/null
Binary files differ
diff --git "a/getaaxkey/audible_byte\0434-4_5_10000x790568_0.rtc" "b/getaaxkey/audible_byte\0434-4_5_10000x790568_0.rtc"
deleted file mode 100644
index 77c2a19..0000000
--- "a/getaaxkey/audible_byte\0434-4_5_10000x790568_0.rtc"
+++ /dev/null
Binary files differ
diff --git "a/getaaxkey/audible_byte\0434-4_6_10000x791458_0.rtc" "b/getaaxkey/audible_byte\0434-4_6_10000x791458_0.rtc"
deleted file mode 100644
index 4f7b21c..0000000
--- "a/getaaxkey/audible_byte\0434-4_6_10000x791458_0.rtc"
+++ /dev/null
Binary files differ
diff --git "a/getaaxkey/audible_byte\0434-4_7_10000x791707_0.rtc" "b/getaaxkey/audible_byte\0434-4_7_10000x791707_0.rtc"
deleted file mode 100644
index f4b7b06..0000000
--- "a/getaaxkey/audible_byte\0434-4_7_10000x791707_0.rtc"
+++ /dev/null
Binary files differ
diff --git "a/getaaxkey/audible_byte\0434-4_8_10000x790202_0.rtc" "b/getaaxkey/audible_byte\0434-4_8_10000x790202_0.rtc"
deleted file mode 100644
index e279ee0..0000000
--- "a/getaaxkey/audible_byte\0434-4_8_10000x790202_0.rtc"
+++ /dev/null
Binary files differ
diff --git "a/getaaxkey/audible_byte\0434-4_9_10000x791022_0.rtc" "b/getaaxkey/audible_byte\0434-4_9_10000x791022_0.rtc"
deleted file mode 100644
index 18e558f..0000000
--- "a/getaaxkey/audible_byte\0434-4_9_10000x791022_0.rtc"
+++ /dev/null
Binary files differ
diff --git a/getaaxkey/getaaxkey.py b/getaaxkey/getaaxkey.py
deleted file mode 100644
index 4a5ea15..0000000
--- a/getaaxkey/getaaxkey.py
+++ /dev/null
@@ -1,87 +0,0 @@
-#!/usr/bin/python
-
-import os
-import subprocess
-
-def filechecksum(aaxfile):
-    ret = subprocess.Popen(["ffprobe", "-v", "info", "-hide_banner", os.path.abspath(aaxfile)], stderr=subprocess.PIPE)
-    grep = subprocess.Popen(["grep", "checksum"], stdin=ret.stderr, stdout=subprocess.PIPE)
-    awk = subprocess.Popen(["awk", " { print $8 } "], stdin=grep.stdout, stdout=subprocess.PIPE)
-    hashsum,out = awk.communicate()
-    hashsum = hashsum.strip('\n')
-    return hashsum
-
-
-def writeauthcode(hashsum):
-    try:
-        file = open(".authcode", "a")
-        file.write(hashsum + os.linesep)
-    except (IOError, OSError) as e:
-        print "Can't write to .authcode"
-        return 1
-    finally:
-        file.close()
-        return 0
-
-
-def readauthcode():
-    try:
-      if not os.path.isfile(".authcode"):
-          open (".authcode", "w").close()
-      with open(".authcode") as f:
-          hashes = f.read().split()
-    except (IOError, OSError) as e:
-        print "Can't read in .authcode"
-        return 1
-    finally:
-        f.close()
-        return hashes
-
-
-def newauthcode(checksum):
-    rcwd = os.path.dirname(os.path.realpath(__file__))
-    command = "./rcrack *.rtc -h "
-    command += checksum
-    cmd = subprocess.Popen(command, cwd=rcwd, stdout=subprocess.PIPE, shell=True)
-    grep = subprocess.Popen(["grep", "-a", "hex"], stdin=cmd.stdout, stdout=subprocess.PIPE)
-    key, stderr = grep.communicate()
-    key = key.split()
-    for x in key:
-        if "hex" in x:
-            return x.split(':')[1]
-
-
-def checkagainstexisting(abytes,aaxfile):
-    ret = subprocess.Popen(["ffprobe", "-activation_bytes", abytes, "-hide_banner", os.path.abspath(aaxfile)], stderr=subprocess.PIPE)
-    grep = subprocess.Popen(["grep", "mismatch", "-c"], stdin=ret.stderr, stdout=subprocess.PIPE)
-    works,out = grep.communicate()
-    return works.strip('\n')
-
-
-def getcorrectkey(aaxfile):
-    authcodes = readauthcode()
-    abyte = ''
-    for x in authcodes:
-        if checkagainstexisting(x, aaxfile) == '0':
-            abyte = x
-            return abyte
-    if abyte == '':
-        csum = filechecksum(aaxfile)
-        abyte = newauthcode(csum)
-        writeauthcode(abyte)
-        return abyte
-
-
-if __name__ == "__main__":
-    import sys
-    if len(sys.argv) >= 2:
-        args = sys.argv[1]
-    else:
-        print "I need an file name to lookup"
-        sys.exit(1)
-    checksum = filechecksum(args)
-    out = newauthcode(checksum.strip())
-    if out is not None:
-        print sys.argv[1], "Auth code is:", out
-    else:
-        print sys.argv[1], "no Authcode found"
diff --git a/getaaxkey/rcrack b/getaaxkey/rcrack
deleted file mode 100755
index fc94d4c..0000000
--- a/getaaxkey/rcrack
+++ /dev/null
Binary files differ

--
Gitblit v1.10.0