-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2012 from enzok/update-2
PikaBot ignore empty config
- Loading branch information
Showing
2 changed files
with
26 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Copyright (C) 2010-2015 Cuckoo Foundation. | ||
# This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org | ||
# See the file 'docs/LICENSE' for copying permission. | ||
|
||
from modules.processing.parsers.CAPE.PikaBot import extract_config | ||
|
||
|
||
def test_pikabot(): | ||
with open("tests/data/malware/7600d0efc92ecef06320a1a6ffd85cd90d3d98470a381b03202e81d93bcdd03c", "rb") as data: | ||
conf = extract_config(data.read()) | ||
assert conf == { | ||
"C2s": ['154.53.55.165:13783', '158.247.240.58:5632', '70.34.223.164:5000', '70.34.199.64:9785', | ||
'45.77.63.237:5632', '198.38.94.213:2224', '94.72.104.80:5000', '84.46.240.42:2083', | ||
'154.12.236.248:13786', '94.72.104.77:13724', '209.126.86.48:1194'], | ||
"Version": "1.8.32-beta", | ||
"User Agent": "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; A7F; BRI/2; Tablet PC 2.0; wbx 1.0.0; Microsoft Outlook 14.0.7233; ms-office;", | ||
"Campaign Name": "GG24_T@T@f0adda360d2b4ccda11468e026526576", | ||
"Registry Key": "MWnkl", | ||
} |