Page 1 of 1

[RB] Algorithm Issue

Posted: Sat Feb 13, 2010 6:37 am
by codemonkey
i have been trying to figure out forever how to get root authentication via RB without going into a shell
example of doing it using shell:

dim mShell as new shell
mShell.Mode=1
mShell.Execute "echo myPassword | sudo -S su login root"

This leads to all kinds of security holes and problems though.

Below is a link to the current algorithm, it is almost fully functional. The issue i am having is with it handling a string the user inputs and passing it on to the shell

Check the RB algorithm here

Re: [RB] Algorithm Issue

Posted: Sat Feb 13, 2010 3:49 pm
by Modzy
Could be that the root password you're using is not the right password. Try the command in Terminal, see what errors it brings up.

Re: [RB] Algorithm Issue

Posted: Sat Feb 13, 2010 4:06 pm
by codemonkey
nah checked that. i think it might have to do with the carriage return but the mShell.WriteCHR(13) should have done that