[ Home ] [ Slides ] [ Examples ] [ Exercises ] [ Resources ]

Exercise: Injection Flows - Shell (Solution)

Shell Injection

Print out the list of the files at the root directory. Print out the content of the httpd.conf and php.ini files. Create an empty file hello.txt on the disk of your server. Create a file hello2.txt containing the data "Hello World" on the hard drive of the server. Create a file hello.php in the htdocs directory of the server. Then execute this file.
Copyright Emmanuel Benoist 2008-2013