Skip to content

Commit

Permalink
Allow setting package in linux (kevoreilly#2158)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangchen96 authored Jun 7, 2024
1 parent b940693 commit c8513ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
9 changes: 3 additions & 6 deletions analyzer/linux/modules/packages/perl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
3 changes: 0 additions & 3 deletions lib/cuckoo/core/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit c8513ad

Please sign in to comment.