PDA

View Full Version : I just had an Idea



days_of_ruin
January 16th, 2009, 10:03 PM
What if there was a website you could entire bash commands to see if
they are "clean" i.e not malicious.And there could be a firefox
plugin to make it even easier, just select the command text and right
click->"check command" or something like that.Is this feasible?

Sealbhach
January 16th, 2009, 10:30 PM
It's good thinking. However, it would probably not be able to replicate the effect the command would have on your own system if you actually ran the command - due to all the possible different configurations.

It could work as a command vetting system - able to advise whether the command is potentially harmful or not.



.

RATM_Owns
January 16th, 2009, 10:33 PM
read -p "$PS1 " COMMAND
if [ "$COMMAND" = "sudo rm -rf /" ] ; then
echo "Command is not safe."
fi

cardinals_fan
January 16th, 2009, 10:33 PM
Well, fakeroot simulates a root environment, so you can test things before running them as root.