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

Includes a new command to scan streams and objects using Yara rules. #44

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

7h3rAm
Copy link

@7h3rAm 7h3rAm commented Jan 4, 2016

This command can be used to scan raw object, streams and files. Here is an example for reference:

PPDF> yara_scan

Usage: yara_scan object|rawobject|stream|rawstream $object_id [$version]
Usage: yara_scan raw $offset $num_bytes
Usage: yara_scan file $file_name
Usage: yara_scan variable $var_name
Usage: yara_scan object $object_id
Usage: yara_scan rawobject $object_id
Usage: yara_scan stream $stream_id
Usage: yara_scan rawstream $stream_id

Scan raw|file|variable|object|rawobject|stream|rawstream using Yara

PPDF> 
PPDF> yara_scan file /media/sf_Shared/dragons.pdf
Rule dummy matched!
dummy: Meta: {}
dummy: Namespace: default
dummy: Strings: [(3183911L, '$a', 'Dragon')]
dummy: Tags: ['foo', 'bar']
PPDF> 

It has hard dependency on yara-python. Yara rules are fetched from _rules.yara_ file which is expected to be in peepdf's root directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants