From dc3a497c8b18e2ad7a397bc0534ada8c37414d5b Mon Sep 17 00:00:00 2001 From: jershmagersh Date: Mon, 11 Jan 2021 21:19:56 -0700 Subject: [PATCH] Removing unused libraries and commented code. --- service_manifest.yml | 2 +- unpacme_al.py | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/service_manifest.yml b/service_manifest.yml index 3b96fc0..d2d1698 100644 --- a/service_manifest.yml +++ b/service_manifest.yml @@ -1,5 +1,5 @@ name: UNPACME -version: 0.1 +version: 0.2 description: This service submits 32-bit Portable Executables to unpac.me and provides the results. accepts: executable/windows/pe32 diff --git a/unpacme_al.py b/unpacme_al.py index 1a60d02..4967f51 100644 --- a/unpacme_al.py +++ b/unpacme_al.py @@ -9,13 +9,9 @@ import time import os -from assemblyline.common import forge -from assemblyline.common.dict_utils import flatten -from assemblyline.common.hexdump import hexdump from assemblyline_v4_service.common.base import ServiceBase from assemblyline_v4_service.common.result import Result, ResultSection, BODY_FORMAT, Heuristic -cl_engine = forge.get_classification() MAX_TIMEOUT = 300 TIMEOUT_INCREMENT = 15 @@ -131,7 +127,7 @@ def execute(self, request): # Write sample to disk fp = self.write_tmp(request) api_key = request.get_param("api_key") - #api_key = os.environ['UPM_API_KEY'] + presults = None if self.prechecks(request, api_key): upm = unpacme.unpacme(api_key)