HEX
Server: Apache
System: Linux viper.innovativeinternet.net 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64
User: thetradingroom (1095)
PHP: 8.3.25
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //ibin/snincrease.old
#!/usr/bin/perl

opendir DIR, "." or die "problems opening dir: $1";
@files = grep /^db\./, readdir DIR;
closedir DIR;

foreach $file (@files) {
open(FILE, "$file") or die "File read failed: $!\n";
@file = <FILE>;
close(@file);
open(FILE, ">$file") or die "File write failed: $!\n"; ;
foreach $line (@file) {
	if($line =~ /serial/i && $line =~ /(\d+)/) { #if line has digit, followed by a comma, and then the word serial
		$num = $1; $num++;
		$line = "                        " . $num . "       ; serial number";
		print FILE "$line\n"; # increment it.
	} else {
		$line =~ s/besllsouth/bellsouth/gi;
		print FILE $line; # print it
	}
}
close(FILE);
print "File $file write successful.\n";
}