Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 832 Bytes

File metadata and controls

44 lines (30 loc) · 832 Bytes

python-buckler

The wrapper of buckler for python.

Getting Started

Dependencies

Please install them before install buckler-python.

And now, it support only Linux.
(it will support Windows for the future.)

Installing

Sorry. Installer will make for the future.

Example

import sys
from buckler import Buckler
from pprint import pprint


def main(name):
    with open(name, 'rb') as f:
        body = f.read()

        buckler = Buckler()
        has_hit = buckler.scan(body)

        if has_hit:
            print(f"`{name}` is malware.")
        else:
            print(f"`{name}` is not malware.")


if __name__ == '__main__':
    if len(sys.argv) <= 1:
        sys.exit("[err] argument incorrect.")

    main(sys.argv[1])