[RB] Algorithm Issue

Feel free to talk about anything and everything in this board.
Post Reply
codemonkey
Newbie
Posts: 15
Joined: Fri Feb 12, 2010 5:08 pm
Contact:

[RB] Algorithm Issue

Post by codemonkey » Sat Feb 13, 2010 6:37 am

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
Image

Modzy
Green Beret
Posts: 3058
Joined: Fri Feb 22, 2008 11:06 pm
Location: Portland, OR

Re: [RB] Algorithm Issue

Post by Modzy » Sat Feb 13, 2010 3:49 pm

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.

codemonkey
Newbie
Posts: 15
Joined: Fri Feb 12, 2010 5:08 pm
Contact:

Re: [RB] Algorithm Issue

Post by codemonkey » Sat Feb 13, 2010 4:06 pm

nah checked that. i think it might have to do with the carriage return but the mShell.WriteCHR(13) should have done that
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 33 guests