Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash: DarkComet exe #53

Open
sysfatal opened this issue Jan 12, 2021 · 0 comments
Open

Crash: DarkComet exe #53

sysfatal opened this issue Jan 12, 2021 · 0 comments

Comments

@sysfatal
Copy link

sysfatal commented Jan 12, 2021

$ malconf --version
malconf 1.0

$ clamscan f.exe
f.exe: Win.Trojan.DarkKomet-1 FOUND

Output:

[+] Loading File: f.exe
[-] Found: DarkComet
[-] Running Decoder
Traceback (most recent call last):
File "/usr/local/bin/malconf", line 122, in
process_file(args[0], output_file)
File "/usr/local/bin/malconf", line 49, in process_file
module.get_config()
File "/usr/local/lib/python3.8/dist-packages/malwareconfig/decoders/darkcomet.py", line 70, in get_config
raw_config = self.parse_v5(self.file_info, dc_version)
File "/usr/local/lib/python3.8/dist-packages/malwareconfig/decoders/darkcomet.py", line 41, in parse_v5
clear_config = crypto.decrypt_arc4(dc_version, crypted_config)
File "/usr/local/lib/python3.8/dist-packages/malwareconfig/crypto.py", line 22, in decrypt_arc4
cipher = ARC4.new(key)
File "/usr/local/lib/python3.8/dist-packages/Crypto/Cipher/ARC4.py", line 132, in new
return ARC4Cipher(key, *args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/Crypto/Cipher/ARC4.py", line 60, in init
result = _raw_arc4_lib.ARC4_stream_init(c_uint8_ptr(key),
File "/usr/local/lib/python3.8/dist-packages/Crypto/Util/_raw_api.py", line 144, in c_uint8_ptr
raise TypeError("Object type %s cannot be passed to C code" % type(data))
TypeError: Object type <class 'str'> cannot be passed to C code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant