Re: Executing a command of a chroot outside of the chroot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Fri, Dec 7, 2012 at 7:03 AM, Δημήτρης Ζέρβας <01ttouch@xxxxxxxxx> wrote:

> the main system is android and the chroot is Arch linux, so I have no ldd
> nor readelf...
>

But the dynamic loader must exist... you can invoke it manually if only you
know the name.

You can get the name of the interpreter with "objdump -j .interp -s
program". Or you can try and guess. For example, in my Arch box it is
"/lib/ld-linux.so.2" (a link to "/lib/ld-2.16.so"), so it is likely that it
is names something similar.

So run:

# /data/workbench/mnt/lib/ld-linux.so.2 /data/workbench/mnt/bin/bash

and see what happens.

--
Rodrigo


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux