Reply
Thread Tools
Posts: 1,208 | Thanked: 1,028 times | Joined on Oct 2007
#11
Originally Posted by smage View Post
ok
I run these and the old file is replaced. However, rootsh is still installed and even after a device restart I'm still able to gain root. Also in the package manager, rootsh is still shown as installe.
That's because you didn't remove it at any point. Try to remove it as root from command line:
dpkg -r rootsh

If it doesn't work, copy&paste the output here.
 

The Following User Says Thank You to mikkov For This Useful Post:
Posts: 108 | Thanked: 44 times | Joined on Nov 2009 @ Como, Italy
#12
it didn't work.

The output is below:
(reading database ... 25649 files and directories currently installed)
Removing rootsh ...
/var/lib/dpkg/info/rootsh.prerm: line 5: syntax error: "fi" unexpected (expecting "then")
dpkg: error processing rootsh (--remove):
subprocess pre-removal script returned error exit status 2 Errors were encountered while processing:
rootsh

/home/user # ..............

ok any suggestions now? :P
__________________
computer 1st, phone 2nd
 
Posts: 1,208 | Thanked: 1,028 times | Joined on Oct 2007
#13
OK, rootsh package is broken, unbelievable.

But because you already manually did prerm script command, you can just delete it.

rm /var/lib/dpkg/info/rootsh.prerm

and then remove rooths package
 

The Following 2 Users Say Thank You to mikkov For This Useful Post:
Posts: 108 | Thanked: 44 times | Joined on Nov 2009 @ Como, Italy
#14
rm /var/lib/dpkg/info/rootsh.prerm worked.

finally rootsh succesfully uninstalled, thanks everyone
__________________
computer 1st, phone 2nd
 
Posts: 108 | Thanked: 44 times | Joined on Nov 2009 @ Como, Italy
#15
Ok it's uninstalled now but I'm stil able to gain root access
__________________
computer 1st, phone 2nd
 
Posts: 1,208 | Thanked: 1,028 times | Joined on Oct 2007
#16
What is the content of gainroot files?

cat /usr/sbin/gainroot.old
cat /usr/sbin/gainroot
 
Posts: 108 | Thanked: 44 times | Joined on Nov 2009 @ Como, Italy
#17
The two files are identical.

Their content is below:


#!bin/sh
#From Andrey Gubarev easyroot
trap exit SIGHUP SIGINT SIGTERM
PATH=/bin:/usr/bin:/sbin:/usr/sbin
if [ "$1" = "--use-su" ]
then
exec su -
else
echo "Root shell enabled"
/bin/sh
fi
__________________
computer 1st, phone 2nd

Last edited by smage; 2009-12-09 at 07:37.
 
Posts: 151 | Thanked: 77 times | Joined on Dec 2009
#18
Originally Posted by Devil View Post
OT: is it me or is this programming language and stuff major boring *****?
Somebody bought the wrong phone.
 
Posts: 51 | Thanked: 15 times | Joined on Apr 2009 @ ChengDu, SiChuan, P.R.C
#19
mark it. and waiting for study more.
 
Posts: 293 | Thanked: 76 times | Joined on Jan 2008 @ Fremantle, W. Australia
#20
Originally Posted by Devil View Post
i mean i am not dumb but seriously. its just friggin letters and symbols and combinations of it. i study math, which is quite the same actually. just dont see why i am doing that. and reading the coding stuff. cant get there with my mind.
It sounds like there is a problem with your first premise. Unless there is a joke we missed??
 
Reply


 
Forum Jump


All times are GMT. The time now is 17:58.