Giter VIP home page Giter VIP logo

wmi_forensics's Issues

Parser may not be working correctly

Hey David, This is an awesome tool. However, I just did a POC test with a WMI persistence on a VM and your script did not pick up the persistence. I could view it live using WMI explorer. Any idea what could have caused that.

struct.error: unpack requires a string argument of length 8

Using the tool I got the following error:
$ python CCM_RUA_Finder.py -i OBJECTS.DATA "Format" "FolderPath" "ExplorerFileName" "FileSize" "LastUserName" "LastUsedTime" "TimeZoneOffset" "LaunchCount" "Timestamp1" "Timestamp2" "OriginalFileName" "FileDescription" "CompanyName" "ProductName" "ProductVersion" "FileVersion" "AdditionalProductCodes""msiVersion" "msiDisplayName" "SoftwarePropertiesHash" "ProductCode" "ProductLanguage" "msiPublisher" "FilePropertiesHash" Carved_NullDelim "C:\Windows\system32\" "DllHost.exe" " " "GROUPE\lol" "2017-01-23 12:48:05" ="+000" " " " " " " "dllhost.exe" "COM Surrogate" "Microsoft Corporation" "Microsoft� Windows� Operating System" "6.1.7600.16385" "6.1.7600.16385 (win7_rtm.090713-1255)" "" "" "" "" " " "" "" "" Traceback (most recent call last): File "CCM_RUA_Finder.py", line 506, in <module> main() File "CCM_RUA_Finder.py", line 290, in main parse_null_delimited_record(ccm_nulldel_full_match, True, output_file) File "CCM_RUA_Finder.py", line 359, in parse_null_delimited_record file_size = struct.unpack("L", header_data_match.groups()[4])[0] struct.error: unpack requires a string argument of length 8

If you need it I can provide a sample of the file I used it on.

struct.error for parse_null_delimited_record function

First, I wanted to thank you for sharing your code!

When you have a moment, I was hoping you could look into why the parser is throwing the following exception during the unpack:
File "CCM_RUA_Finder.py", line 361, in parse_null_delimited_record
file_size = struct.unpack("L", header_data_match.groups()[4])[0]
struct.error: unpack requires a string argument of length 8

I have tried two different OBJECTS.DATA files and both give the same results.

When I put in a exception (catch -> ignore) for the parse_null_delimited_record function, I only get minimal records parsed (40+) with several hundred ignored.

TypeError: a bytes-like object is required, not 'str'

I run the following command and receive the following error:

python3 CCM_RUA_Finder.py -i OBJECTS.DATA -o OBJECTS.DATA.xls
                0.0% complete...Traceback (most recent call last):
  File "/Users/Ben/Desktop/elrond_dev/WMI_Forensics/CCM_RUA_Finder.py", line 554, in <module>
    main()
  File "/Users/Ben/Desktop/elrond_dev/WMI_Forensics/CCM_RUA_Finder.py", line 241, in main
    all_ccm_data_set = find_ccm_rua_data(args.input)
  File "/Users/Ben/Desktop/elrond_dev/WMI_Forensics/CCM_RUA_Finder.py", line 191, in find_ccm_rua_data
    if "CCM_RecentlyUsedApps" in current_buffer:
TypeError: a bytes-like object is required, not 'str'

Parser may not be working correctly

Hey David, This is an awesome tool. However, I just did a POC test with a WMI persistence on a VM and your script did not pick up the persistence. I could view it live using WMI explorer. Any idea what could have caused that.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.