[Q] backtrack 5 on D4 using debdroid

svrnmnd

Senior Member
Dec 1, 2008
66
1
0
Ok lovers of the pentest , the time has come, I got to dump my d1 which was not capable of doing this

so I am following this guide wiki.gitbrew.org/wikibrew/Android:Debdroid
and I'm pretty sure I've mis-understood them because its not working

since I can't flash their .zip file yet I follow the manual steps

Mount device on computer, extract flashable zip to /sdcard/debdroid
Copy the directories of /sdcard/debdroid to /system (/sdcard/debdroid/bin to /system/bin)
chmod +x contents in the /sdcard/bin (debdroid, debkill, debshell)

everything seems to work no errors or anything then, to run back track I:

Download either the custom .img or the original .img
Create a folder called debian on your sdcard.
in terminal emulator "mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system" (where mtdblock3 is the system block) [I copied this exact command did not get any errors]
Open up /etc/debdroid.conf with your favorite text editor
Find the line "img="/mnt/sdcard/debian/debian.img" and change to "img="/mnt/sdcard/debian/bt5.img", save.
Start up the APK, Deploy, pentest from your pocket.


then after I start up the apk I open a new window in terminal emulator and try and debshell bash and I get the error debshell no such command or something.

What I think I did wrong was I coppied the folders from the zip which were METAINF and System into /system/bin and then I chroot +x the files of the zip that were still on my SD card....thats how I read it anyways...what am I doing wrong and how do I remedy this?

also I am excited to see if droid 4's wifi chipset will support monitor mode and packet injection, If it doesn't I am hoping I will be able to switch the mirco usb port into host mode and buy a usb wifi reciever connecting using a micro to female usb I soldiered
 

zeroktal

Senior Member
Nov 8, 2006
205
19
0
I have Ubuntu working, backtrack is next on my list. However I can say out wifi does NOT support monitor mode. At least not with stock driver. In fact trying to start it reboots the phone :(. I'll take a look later at your backtrack issue :)
 

gangrif

Senior Member
Mar 30, 2011
126
13
0
Nice, I worked out a chroot/vnc environment on my D4 for Backtrack. Does your method boot backtrack natively rather than in a chroot?

I'm in the process of documenting the minor tweaks i used to get things working. I'll link it here once its public if it helps you. Seems like you're already beyond me though.
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone