PHP 8.2.32
Preview: hexstring.pl Size: 642 B
/usr/local/maldetect.bk3513122/internals/hexstring.pl

#!/usr/bin/perl
#
##
# Linux Malware Detect v1.6.6
#             (C) 2002-2023, R-fx Networks <proj@r-fx.org>
#             (C) 2023, Ryan MacDonald <ryan@r-fx.org>
# This program may be freely redistributed under the terms of the GNU GPL v2
##
#

use warnings;

if ($#ARGV < "1") {
 print "usage: hexfile string\n";
 exit;
}

$hexfile = $ARGV[0];
$instr = $ARGV[1];

$dat_hexstring = $hexfile;
open(DAT, $dat_hexstring) || die("Could not open $dat_hexstring");
@raw_data=<DAT>;
close(DAT); 

foreach $hexptr (@raw_data) {
 chomp($hexptr);
 ($ptr,$name)=split(/:/,$hexptr);
 if ( grep(/$ptr/, $instr) ) {
 	print "$ptr $name \n";
	exit;
 }
}

Directory Contents

Dirs: 0 × Files: 12

Name Size Perms Modified Actions
3.83 KB lrw-r--r-- 2026-05-06 02:07:50
Edit Download
86.63 KB lrw-r--r-- 2026-05-07 22:59:51
Edit Download
0 B -rw-rw-rw- 2026-05-12 12:08:15
Edit Download
1.38 KB lrw-r--r-- 2026-05-06 02:07:50
Edit Download
642 B lrw-r--r-- 2026-05-06 02:07:50
Edit Download
7.01 KB lrw-r--r-- 2026-05-06 14:09:07
Edit Download
15.81 KB lrw-r--r-- 2026-05-06 02:07:50
Edit Download
4.46 KB lrw-r--r-- 2026-05-06 02:08:36
Edit Download
2.12 KB lrw-r--r-- 2026-05-06 02:07:50
Edit Download
2.93 KB lrw-r--r-- 2026-05-06 02:07:50
Edit Download
2.44 KB lrwxr-x--- 2026-05-06 02:07:50
Edit Download
64 B lrw-r--r-- 2026-05-13 10:30:28
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).