Giter Club home page Giter Club logo

yara_tools's People

Contributors

9b avatar matonis 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  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

yara_tools's Issues

Refactor 'process_strings'

Unsurprisingly this routine is unnecessarily complicated. Code is hard to understand, needs better abstraction.

Modify an existing rule

Hi, wondered if functionality to edit an existing rule (from str) was on the roadmap?

I'd like to be able to add meta fields to my existing rules programmatically

Cheers

adding hex string to rule

Is there a workaround at the moment for adding a string of bytes to a rule in Yara's format?
Looked around in documentation/examples and I haven't found anything.

  • Eg:

    my_string = " 80 42 00 8b 4d 08 ba 01 00 00 00 ff d0 81 c4 00 01 00 00 5"

    Then programmatically build the rule such that I end up with:

    `$a = {80 42 00 8b 4d 08 ba 01 00 00 00 ff d0 81 c4 00 01 00 00 5}`
    

Thank you for help!

Abstract Conditions/Condition Groups As Class

The current design for condition groups might create some problems. Conditions might get complex enough to warrant its own object. This would enable unique processing of complex conditions without bogging down the code.

Using variables inside conditions

Is it possible to use variables when crafting condition statements.
Eg rule.add_condition(condition="pe.imphash() == "+ str(myvar))

Currently this fails when attempting to compile with Yara-python

Unexpected Behavior With IDENTIFIER Template

rule.add_strings(strings="HelloWorld",condition="$IDENTIFIER at 0")

This possibly relates to enhancing condition functionality, but the template for conditions has no idea to map integers assigned to unitialized string variables. Meaning, the template cannot identifiy which incremental integer is represented in the rule.

This bug might be the start of an entire rewrite of relating strings & conditions in an entirely separate object. Not entirely sure yet if this is a bug based on how many might be actually using YARA.

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.