Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
opt /
lampp /
lib /
php /
test /
File_SearchReplace /
tests /
[ HOME SHELL ]
Name
Size
Permission
Action
01onefile.phpt
10.91
KB
-rw-r--r--
02manyfiles.phpt
1.15
KB
-rw-r--r--
03normal_mm.phpt
1.27
KB
-rw-r--r--
04normal_bof.phpt
1.2
KB
-rw-r--r--
05quick_mm.phpt
1.32
KB
-rw-r--r--
06quick_sa_rs.phpt
10.69
KB
-rw-r--r--
07preg_ss_rs.phpt
2.33
KB
-rw-r--r--
08preg_sa_ra.phpt
2.11
KB
-rw-r--r--
setup.php
11.46
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : 04normal_bof.phpt
--TEST-- File_SearchReplace bug or feature with search string and replace array --SKIPIF-- <?php include(dirname(__FILE__).'/setup.php'); print $status; ?> --FILE-- <?php require_once(dirname(__FILE__).'/setup.php'); $search = "Copyright (c) 2002-2003,"; $replace[] = "Copyprotected."; $replace[] = "Copystuff 2005"; $replace[] = "Eat upon perusal"; $snr = new File_SearchReplace( $search, $replace, $files); $snr -> doSearch() ; foreach($files as $f) { readfile($f); }; echo "\n------[Occurences]: " . $snr->getNumOccurences(); echo "\n------[Last Error]: " , ($snr->getLastError() !== '') ? var_dump($snr->getLastError()) : "N/A"; ?> --EXPECT-- <?php // +-----------------------------------------------------------------------+ // | Copyprotected. Richard Heyes | // | All rights reserved. | // | |/** // +-----------------------------------------------------------------------+ // | Copyprotected. Richard Heyes | ... * * Search and Replace Utility * * @version 1.0 * @package File */ ------[Occurences]: 2 ------[Last Error]: N/A
Close