Giter VIP home page Giter VIP logo

binsequencer's People

Contributors

karttoon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

binsequencer's Issues

Failing with the -n flag

Hi!

I'm trying to create a YARA rule for a nonpe file and binsequencer is crashing:

[+] Generating YARA rule for matches off of bytes from gold - malware/d41532ae67394c2f158f943fcf9651b2
Traceback (most recent call last):
  File "binsequencer.py", line 1864, in <module>
    main()
  File "binsequencer.py", line 1858, in main
    data = gen_yara(data["gold"], data, hashes, args)
  File "binsequencer.py", line 1210, in gen_yara
    data = gen_nonpeyara(data, hash, args, hashes)
  File "binsequencer.py", line 1195, in gen_nonpeyara
    data = yara_disa(data, args, hashes, code_section, virt_addr, rule)
  File "binsequencer.py", line 931, in yara_disa
    keep_bytes = ((4 - (op.prefix).count(0)) + (4 - (op.opcode).count(0))) * 2
  File "/binsequencer/lib/python3.6/site-packages/capstone/__init__.py", line 674, in __getattr__
    raise CsError(CS_ERR_SKIPDATA)
capstone.CsError: Information irrelevant for 'data' instruction in SKIPDATA mode (CS_ERR_SKIPDATA)

It seems an issue with capstone, but I don't know if it can be fixed from your side :-) !!!

SKIPDATA issue for PEFiles

Hi!

seems this issue is related with the previous one #1

[+] Generating YARA rule for matches off of bytes from gold - malware/8db0d4d53c39a7d5d27617814c07693f311c500b9c791f55b2dc5d1ef5e3e570
Traceback (most recent call last):
  File "binsequencer.py", line 1867, in <module>
    main()
  File "binsequencer.py", line 1861, in main
    data = gen_yara(data["gold"], data, hashes, args)
  File "binsequencer.py", line 1208, in gen_yara
    data = gen_peyara(data, hash, args, hashes)
  File "binsequencer.py", line 1180, in gen_peyara
    data = yara_disa(data, args, hashes, code_section, virt_addr, rule)
  File "binsequencer.py", line 931, in yara_disa
    keep_bytes = ((4 - (op.prefix).count(0)) + (4 - (op.opcode).count(0))) * 2
  File "/usr/local/lib/python3.6/dist-packages/capstone/__init__.py", line 674, in __getattr__
    raise CsError(CS_ERR_SKIPDATA)
capstone.CsError: Information irrelevant for 'data' instruction in SKIPDATA mode (CS_ERR_SKIPDATA)

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.