Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Commit

Permalink
Fixing Error with Adzok Decoder
Browse files Browse the repository at this point in the history
  • Loading branch information
kevthehermit committed Oct 31, 2015
1 parent 6eebe8f commit 6181129
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modules/rats/adzok.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# Originally written by Kevin Breen (@KevTheHermit):
# https://github.com/kevthehermit/RATDecoders/blob/master/Adzok.py

import os
import re
import sys
import string
from zipfile import ZipFile
from cStringIO import StringIO

#Helper Functions Go Here
def string_print(line):
Expand All @@ -23,10 +22,11 @@ def parse_config(raw_config):

def config(data):
raw_config = False
with ZipFile(file_name, 'r') as zip:
for name in zip.namelist():
jar_file = StringIO(data)
with ZipFile(jar_file, 'r') as jar:
for name in jar.namelist():
if name == 'config.xml':
raw_config = zip.read(name)
raw_config = jar.read(name)
if raw_config:
return parse_config(raw_config)

0 comments on commit 6181129

Please sign in to comment.