PHP 8.2.32
Preview: hexstring.pl Size: 642 B
/usr/local/maldetect.bk2983337/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: 11

Name Size Perms Modified Actions
3.83 KB lrw-r--r-- 2018-09-07 13:37:50
Edit Download
86.63 KB lrw-r--r-- 2025-02-26 13:44:33
Edit Download
0 B -rw-rw-rw- 2026-05-07 11:58:38
Edit Download
1.38 KB lrw-r--r-- 2023-04-10 22:45:54
Edit Download
642 B lrw-r--r-- 2025-02-23 15:21:25
Edit Download
15.81 KB lrw-r--r-- 2025-02-24 13:40:37
Edit Download
4.39 KB lrw-r--r-- 2025-02-23 15:09:39
Edit Download
2.12 KB lrw-r--r-- 2023-03-27 19:17:37
Edit Download
2.93 KB lrw-r--r-- 2025-02-19 14:33:24
Edit Download
2.44 KB lrwxr-x--- 2015-09-27 07:38:49
Edit Download
64 B lrw-r--r-- 2026-05-08 09:23:38
Edit Download

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