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 /
doc /
Stream_Var /
examples /
[ HOME SHELL ]
Name
Size
Permission
Action
example_dir.php
651
B
-rw-r--r--
example_file.php
796
B
-rw-r--r--
example_modes.php
1.53
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : example_modes.php
<?PHP require_once 'Stream/Var.php'; stream_wrapper_register( "var", "Stream_Var" ); $varname = 'var://_GET/foo'; echo "_GET variables:<pre>"; print_r( $_GET ); echo "</pre>"; echo "<strong>open '$varname' with mode 'r':</strong><br>"; echo "This should fail, as the variable does not exist.<br>"; $fp = fopen($varname, "r"); fclose($fp); echo "<br>_GET variables:<pre>"; print_r( $_GET ); echo "</pre>"; echo "<br><strong>open '$varname' with mode 'w':</strong><br>"; echo "This should work, as the 'w' creates the variable.<br>"; $fp = fopen($varname, "w"); echo "writing data to the variable.<br>"; fwrite($fp, "This is a"); fclose($fp); echo "<br>_GET variables:<pre>"; print_r( $_GET ); echo "</pre>"; echo "<br><strong>open '$varname' with mode 'a+':</strong><br>"; echo "This will append data to a variable or create.<br>"; $fp = fopen($varname, "a+"); echo "writing data to the variable.<br>"; fwrite($fp, " Test"); fseek($fp, 0, SEEK_SET); $data = fgets($fp,200); echo "read data: ".$data."<br>"; fclose($fp); echo "<br>_GET variables:<pre>"; print_r( $_GET ); echo "</pre>"; echo "<br><strong>open '$varname' with mode 'x':</strong><br>"; echo "This should fail, as the variable does exist and 'x' wants to create a new file.<br>"; $fp = fopen($varname, "x"); fclose($fp); echo "<br>_GET variables:<pre>"; print_r( $_GET ); echo "</pre>"; ?>
Close