Skip to content

Commit

Permalink
Update admin_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
doomedraven committed Feb 12, 2025
1 parent 84f23db commit 73a5169
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/cuckoo/common/admin_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,14 @@
print("poetry run pip install -U paramiko scp")
HAVE_PARAMIKO = False


from utils.community_blocklist import blocklist

from lib.cuckoo.common.colors import green, red
from lib.cuckoo.common.sshclient import SSHJumpClient

Check failure on line 50 in lib/cuckoo/common/admin_utils.py

View workflow job for this annotation

GitHub Actions / test (3.10)

Ruff (I001)

lib/cuckoo/common/admin_utils.py:47:1: I001 Import block is un-sorted or un-formatted

try:
from admin_conf import ( # POSTPROCESS,
from admin_conf import (
CAPE_DIST_URL,
CAPE_PATH,
EXCLUDE_CAPE_FILES,
Expand All @@ -66,8 +68,6 @@
except ModuleNotFoundError:
sys.exit("[-] You need to create admin_conf.py, see admin_conf.py_example")

# Only needed when jumping over nodes
from lib.cuckoo.common.sshclient import SSHJumpClient

# this is bad, but getLogger doesn't work, this can be cause of duplication of log entries if used outside
logging.basicConfig(level=logging.INFO)
Expand Down Expand Up @@ -240,7 +240,6 @@ def file_recon(file, yara_category="CAPE"):
if not Path(file).exists():
return

global POSTPROCESS
LOCAL_SHA256 = False
filename = os.path.basename(file)
OWNER = "cape:cape"
Expand Down

0 comments on commit 73a5169

Please sign in to comment.