Hackiki
Start page
License
Wiki syntax
Edit the meta-editor
(Python code)
View
-
Builtin editor
-
History
upload
{{{ #!/bin/bash if [ "$FILES" = "1" -a "$REQUEST_cmd" ] then echo '<pre>' echo '<b>>' $REQUEST_cmd '</b>' bash -c "$REQUEST_cmd" | sed 's/&/\&/g;s/</\</g;s/>/\>/g' echo '</pre>' fi echo '<form action="'$HACKIKI_BASE'/upload" method="post" enctype="multipart/form-data"> <fieldset> <input type="file" name="upload" /><br/> $ <input type="text" name="cmd" value="cat /tmp/upload.0" /><br/> <input type="submit" value="Upload" /> </fieldset> </form>' }}}