mirror of
https://github.com/hanzoui/custom-nodes-security-scan.git
synced 2026-10-30 20:56:54 +00:00
19 lines
537 B
Python
19 lines
537 B
Python
# Copyright (C) 2015-2017 Cuckoo Foundation.
|
|
# This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org
|
|
# See the file 'docs/LICENSE' for copying permission.
|
|
|
|
import os
|
|
|
|
from lib.common.abstracts import Package
|
|
|
|
class Generic(Package):
|
|
"""Generic analysis package. Uses shell based execution."""
|
|
|
|
def __init__(self, *args, **kwargs):
|
|
Package.__init__(self, *args, **kwargs)
|
|
self.seen_pids = set()
|
|
|
|
def start(self, path):
|
|
os.chmod(path, 0o755)
|
|
return self.execute(["sh", "-c", path])
|