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

Fix adding modifier to hexstring #175

Open
xbabka01 opened this issue Jun 16, 2021 · 0 comments
Open

Fix adding modifier to hexstring #175

xbabka01 opened this issue Jun 16, 2021 · 0 comments
Labels
bug C-builder mirrored Issue is mirrored in butr

Comments

@xbabka01
Copy link
Contributor

Yaramod do not add modifiers to hexstring.

Example code:

import yaramod
string = yaramod.YaraHexStringBuilder(0x58)
print(
    yaramod.YaraRuleBuilder()
    .with_name('asd')
    .with_hex_string('$asd', string.get())
    .private()
    .get().text
)

It will print something like this:

rule asd {
	strings:
		$asd = { 58 }
	condition:
		true
}

But it should print string with modifier

rule asd {
	strings:
		$asd = { 58 } private
	condition:
		true
}
@TadeasKucera TadeasKucera added the mirrored Issue is mirrored in butr label Oct 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug C-builder mirrored Issue is mirrored in butr
Projects
None yet
Development

No branches or pull requests

3 participants