So, I've got a challenge and it's as follows.
You can access a normal shell(sh) on clean RHEL 6 installation. Write arbitrary content to
file.txt, but without the following characters.
# & \ + - % @ = : ; , . ' " ^ ` ~ _ | ! / ? * $ # < > [ ] { } ( )
I can use like touch file or rm file but touch file.txt or echo content > file.txt is not allowed due to . and >.
Is this even possible?
ttyorpts, so, not possible. – rotatorexperiment Feb 25 '19 at 23:38teeto both create and write to a new file without need for any special characters? – jonroethke Feb 26 '19 at 01:34teeworks fine for writing to a file if you can supply the input at the terminal yourself (some editors might work too, though you;ll have a hard time inviwithout a:key), but you're going to have a hard time specifying the file name. – CBHacking Feb 26 '19 at 01:52.is limitedtouch file.txtcan't work. – rotatorexperiment Feb 26 '19 at 02:58