diff --git a/analyzer/linux/modules/packages/perl.py b/analyzer/linux/modules/packages/perl.py index 19faa35bdc6..64d53ed4360 100644 --- a/analyzer/linux/modules/packages/perl.py +++ b/analyzer/linux/modules/packages/perl.py @@ -3,15 +3,12 @@ # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE file for details. -from os import system - from lib.core.packages import Package class Perl(Package): - """Mach-O executable analysys package.""" + """Perl script analysis package.""" def prepare(self): - # Make sure that our target is executable - # /usr/bin/open will handle it - system(f'/bin/chmod +x "{self.target}"') + self.args = [self.target] + self.args + self.target = "/usr/bin/perl" diff --git a/lib/cuckoo/core/database.py b/lib/cuckoo/core/database.py index 56f1a16e566..7424cb601ff 100644 --- a/lib/cuckoo/core/database.py +++ b/lib/cuckoo/core/database.py @@ -1419,9 +1419,6 @@ def demux_sample_and_add_to_db( task_ids = [] config = {} sample_parent_id = None - # force auto package for linux files - if platform == "linux": - package = "" if not isinstance(file_path, bytes): file_path = file_path.encode()