| [ Home ] | [ Slides ] | [ Examples ] | [ Exercises ] | [ Resources ] |
; echo `ls /`; You need to print out (i.e. echo), the result of ls (i.e. `ls/`) but you need also to separate this command with a semicolon from what comes before and what comes after. httpd.conf and php.ini files.
; cat /opt/lampp/etc/httpd.conf;; cat /opt/lampp/etc/php.ini;hello.txt on the disk of your server.
; touch /tmp/fileToBeDeleted1.txt; This command creates an empty file. It is executed and doesn't return anything.hello2.txt containing the data "Hello World" on the hard drive of the server.
; echo hello World > /tmp/hello2.txt ; This transers the output of the first parthello.php in the htdocs directory of the server. Then execute this file.
; echo hello world > /opt/lampp/htdocs/tmpfile.php ; Writes helloword in the file tmpfile.php. This file can be accessed using /tmpfile.php link.; echo echo hello world 2 `tail --bytes 3 index.php`> /opt/lampp/htdocs/tmpfile.php ; We reuse the code present in the index.php file, so that we don't need to input it.
; cat <It does not work, but is a nice attempt. It should be a good start./opt/lampp/htdocs/tmpfile.php EOF