maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Competitors (https://talk.maemo.org/forumdisplay.php?f=4)
-   -   BackTrack 5 (arm) released (https://talk.maemo.org/showthread.php?t=72933)

azkay 2011-05-11 12:21

Re: BackTrack 5 (arm) released
 
Just ordered an 8gb class 10, was going to get 16gb but didnt want to pay $20 more, lolol.

Hope it gets here by friday, dont want to wait until monday, with express postage.

fatcobrah 2011-05-11 14:26

Re: BackTrack 5 (arm) released
 
Quote:

Originally Posted by ivyking (Post 1004006)
It runs on chroot just fine , however some one has to do the work to get it to work like easy debian .
...

then mkdir mnt/bt5 and then mount /dev/mmcblk1pX /mnt/bt5
chroot /mnt/bt5

thats all .

how to edit the (img) file ?

Quote:

Originally Posted by kingoddball (Post 1004022)
We need Qole! :)

i sent him a msg :)



Quote:

Originally Posted by karam (Post 1004099)
well that is correct it will work but believe you don't wanna have all the internal memory

the best way is to backup your rootfs and optfs with backupmenu application
then hex the emmc.bin (vannial defaul) and reflash your n900 with the hexed emmc then restore you backup

cause restoring them together has made a f**ken problem to me
i had to reflash my n900 to a previos firmware then to the newst firrmware :) strange problem

is this safe ? after doing this i can use it normal with (kernel-power,overclock,nitdroid,...etc) right?

Captwheeto 2011-05-11 15:06

Re: BackTrack 5 (arm) released
 
Why would we want this :S I mean it's neat having another OS but isn't 'pentesting' a paid script kiddie (from the standards I saw when we had two in for government auditing)? And I doubt there's even one professional one on these entire forums.

We should push for a better hacking environment if that's what we want. An OS with gcc, nasm, an up to date perl, python, vim and scapy. Wouldn't that be more than enough?

azkay 2011-05-11 16:21

Re: BackTrack 5 (arm) released
 
Quote:

Originally Posted by Captwheeto (Post 1004228)
Why would we want this :S I mean it's neat having another OS but isn't 'pentesting' a paid script kiddie (from the standards I saw when we had two in for government auditing)? And I doubt there's even one professional one on these entire forums.

We should push for a better hacking environment if that's what we want. An OS with gcc, nasm, an up to date perl, python, vim and scapy. Wouldn't that be more than enough?

Different definitions of a skiddie.
I see a skiddie as someone who uses things without any idea on how it works and just wants to use it for the end result.

On the other hand, theres others who know how it works and like to use it because its just easier than repetition. On the other hand, theres some who use it as a learning tool.

sr00t 2011-05-11 16:22

Re: BackTrack 5 (arm) released
 
Quote:

Originally Posted by Captwheeto (Post 1004228)
Why would we want this :S I mean it's neat having another OS but isn't 'pentesting' a paid script kiddie (from the standards I saw when we had two in for government auditing)? And I doubt there's even one professional one on these entire forums.

We should push for a better hacking environment if that's what we want. An OS with gcc, nasm, an up to date perl, python, vim and scapy. Wouldn't that be more than enough?

You don't need to point that out. I see Backtrack as a tool for learning IT security. You don't need to be a CISSP pro to enjoy using it. You don't even need to use it in a real target.
I'm not even saying that it would fill the void left by neopwn. As you can see, neopwn project had a lot of interest of the users.
It would be nice having it ported to N900, and I think that this statement explains it by itself, we don't need to justify it.

les_garten 2011-05-11 16:29

Re: BackTrack 5 (arm) released
 
Quote:

Originally Posted by sr00t (Post 1004286)
You don't need to point that out. I see Backtrack as a tool for learning IT security. You don't need to be a CISSP pro to enjoy using it. You don't even need to use it in a real target.
I'm not even saying that it would fill the void left by neopwn. As you can see, neopwn project had a lot of interest of the users.
It would be nice having it ported to N900, and I think that this statement explains it by itself, we don't need to justify it.

Exactly!!

Why should I have to justify the App that makes my Phone go "MOO" when I pick it up!!

fatcobrah 2011-05-11 17:40

Re: BackTrack 5 (arm) released
 
it's all about how to push the N900 to the maximum and challenge everything

ivyking 2011-05-11 18:04

Re: BackTrack 5 (arm) released
 
Quote:

Originally Posted by fatcobrah (Post 1004206)
how to edit the (img) file

you don't need to edit the img file at all..
you just dd it to a partition whether it is on the internal emmc or on your sdcard , later Xephyr needs to be configured to provide an easy debian like usage for this .

If you want to install this to the internal emmc , that's quite easy , it's basically the same as installing any OS to your internal emmc .

install backup menu , connect your n900 to pc , press "w"
then wait ~15 seconds , all partitions on the emmc and the sdcard should appear on your pc as mass storage device .
unmount all partitions if your distribution automatically mounts them .
then fire up gparted . select the 27 GB device (emmc)
right click on the first partition and click shrink , shrink it about 7GB then move the second partition (the ext3 /home partition) to the left and expand it more ex. to 3GB if you want , this gives you more space to install apps in maemo .
now move the swap partition also to the left .
all free space should be on the right .
right click on the free space and click new partition .
I recommend creating an extended partition here as you can have only 4 primary partitions .
inside that extended partition create any other partitions you might want .
for the purpose of installing BT , just create one ext2 partition inside .
click apply .
if you followed what I said it should be /dev/sdb5
exit gparted.
now extract the image , then dd the image to /dev/sd5 :
open a terminal , cd to where you downloaded the image.

gzip -d ./bt5.img.gz
sudo e2fsck -y ./bt5.img
sudo dd if=./bt5.img of=/dev/sdb5
# wait for a long while : 5-15 min maybe more , you can get #progress indication with pv or bar .
sudo e2fsck -y /dev/sdb5
sudo resize2fs /dev/sdb5

disconnect your n900 from pc , and reboot it .
in maemo :
root
mkdir /mnt/bt5
mount /dev/mmcblk0p5 /mnt/bt5

to chroot :

chroot /mnt/bt5

now wait for Qole to finish his scripts to give you easy BT5 !

fatcobrah 2011-05-11 18:17

Re: BackTrack 5 (arm) released
 
Quote:

Originally Posted by ivyking (Post 1004329)
you don't need to edit the img file at all..
you just dd it to a partition whether it is on the internal emmc or on your sdcard , later Xephyr needs to be configured to provide an easy debian like usage for this .

If you want to install this to the internal emmc , that's quite easy , it's basically the same as installing any OS to your internal emmc .

install backup menu , connect your n900 to pc , press "w"
then wait ~15 seconds , all partitions on the emmc and the sdcard should appear on your pc as mass storage device .
unmount all partitions if your distribution automatically mounts them .
then fire up gparted . select the 27 GB device (emmc)
right click on the first partition and click shrink , shrink it about 7GB then move the second partition (the ext3 /home partition) to the left and expand it more ex. to 3GB if you want , this gives you more space to install apps in maemo .
now move the swap partition also to the left .
all free space should be on the right .
right click on the free space and click new partition .
I recommend creating an extended partition here as you can have only 4 primary partitions .
inside that extended partition create any other partitions you might want .
for the purpose of installing BT , just create one ext2 partition inside .
click apply .
if you followed what I said it should be /dev/sdb5
exit gparted.
now extract the image , then dd the image to /dev/sd5 :
open a terminal , cd to where you downloaded the image.

gzip -d ./bt5.img.gz
sudo e2fsck -y ./bt5.img
sudo dd if=./bt5.img of=/dev/sdb5
# wait for a long while : 5-15 min maybe more , you can get #progress indication with pv or bar .
sudo e2fsck -y /dev/sdb5
sudo resize2fs /dev/sdb5

disconnect your n900 from pc , and reboot it .
in maemo :
root
mkdir /mnt/bt5
mount /dev/mmcblk0p5 /mnt/bt5

to chroot :

chroot /mnt/bt5

now wait for Qole to finish his scripts to give you easy BT5 !

wow :D i dont like shrinking the internal memory coz i'v never do it :S
u mean i can do this way insted of running 32GB eMMC rootfs?
wt do u prefer ?

ivyking 2011-05-11 18:46

Re: BackTrack 5 (arm) released
 
Quote:

Originally Posted by fatcobrah (Post 1004337)
wow :D i dont like shrinking the internal memory coz i'v never do it :S
u mean i can do this way insted of running 32GB eMMC rootfs?
wt do u prefer ?

what do you mean by 32GB rootfs ??
what I wrote was how to shrink MyDocs to leave space for new partitions as someone asked about installing to the internal memory instead of the sdcard .

fatcobrah 2011-05-11 19:12

Re: BackTrack 5 (arm) released
 
Quote:

Originally Posted by ivyking (Post 1004358)
what do you mean by 32GB rootfs ??
what I wrote was how to shrink MyDocs to leave space for new partitions as someone asked about installing to the internal memory instead of the sdcard .

i know but i am talikg about using this way :)

misiak 2011-05-11 21:32

Re: BackTrack 5 (arm) released
 
Quote:

Originally Posted by ivyking (Post 1004329)
[ ... ]
then fire up gparted . select the 27 GB device (emmc)
right click on the first partition and click shrink , shrink it about 7GB then move the second partition (the ext3 /home partition) to the left and expand it more ex. to 3GB if you want , this gives you more space to install apps in maemo .
now move the swap partition also to the left .
all free space should be on the right .
right click on the free space and click new partition .
[ ... ]

Nice tutorial for people with a bit of knowledge (but noobs still won't do that in my oppinion, too little informations and too little step-by-step instructions :P). I will try doing more or less the same way soon. I'm planning to do some more things after chrooting from maemo (making it as also a separate boot option in multiboot). But I have one huuuge remark (about the sentence I marked in bold). You don't need to have all free space on the right. You can just resize MyDocs partition (it will wipe MyDocs data, so backup first) and create partition berween MyDocs and /home partitions, just we have to name it in partition table with a number greater, than 3. The source of this information is wiki page http://wiki.maemo.org/Repartitioning...h#Some_remarks :
Quote:

Originally Posted by wiki.maemo.org
Maemo hardcodes the MyDocs partition as /dev/mmcblk0p1 in several applications. If you keep a VFAT partition, make sure it is the first partition (partitions in the table do not need to have the same order as on the disk). Otherwise you have to modified several scripts belonging to ke-recv.

So if I understand correctly, only the order of partitions in partition table is relevant. And modyfing only MyDocs partition (and leaving /home and swap stay where they are) is a little bit safer in my oppinion, as it is not necessary to move these partitions and one does not have to make a backup of them and restore them later - less operations = less possibilities of making mistake and bricking device.

karam 2011-05-11 22:31

Re: BackTrack 5 (arm) released
 
Quote:

Originally Posted by fatcobrah (Post 1004206)
is this safe ? after doing this i can use it normal with (kernel-power,overclock,nitdroid,...etc) right?

it is 100% safe and you can use antthying all what you did is change
the optfs from 2gb > 8gb and you can change it o anysize you want
and changed the MyDocs from 30 gb > 22 gb :)
sry for late answer

qole 2011-05-12 04:41

Re: BackTrack 5 (arm) released
 
Thank you all for thinking of me and sending me PMs. However I don't really have the motivation to build a Easy Debian style chroot image of this, since I don't really have any interest in "pentesting" at the moment.

Also, most (if not all) of these tools are fairly standard, open source apps installable in Easy Debian right from the Debian repositories, and many of them are available in Maemo, too.

Sorry... :(

fatcobrah 2011-05-12 05:03

Re: BackTrack 5 (arm) released
 
Quote:

Originally Posted by karam (Post 1004538)
it is 100% safe and you can use antthying all what you did is change
the optfs from 2gb > 8gb and you can change it o anysize you want
and changed the MyDocs from 30 gb > 22 gb :)
sry for late answer

i think im gonna do it but after sending my n900 to nokia care again and again and again bcoz of the bad quality :(

Quote:

Originally Posted by qole (Post 1004639)
Thank you all for thinking of me and sending me PMs. However I don't really have the motivation to build a Easy Debian style chroot image of this, since I don't really have any interest in "pentesting" at the moment.

Also, most (if not all) of these tools are fairly standard, open source apps installable in Easy Debian right from the Debian repositories, and many of them are available in Maemo, too.

Sorry... :(

hmmm you are right but we would like to have the whole system running on our devices + i think N900 better than motorola :P
anyways can u give us any instructions which can help us ?
thx :)

kingoddball 2011-05-12 05:56

Re: BackTrack 5 (arm) released
 
Can anyone get a full list of installed programs in BackTrack??
I will just install all tools in Easy Deb

karam 2011-05-12 07:29

Re: BackTrack 5 (arm) released
 
Quote:

Originally Posted by kingoddball (Post 1004655)
Can anyone get a full list of installed programs in BackTrack??
I will just install all tools in Easy Deb

well not a full list cause it will take for ever
but most of the important programs are instalable i already have in my debian chroot:
aircrack-ng -in maemo and debian-
dsnif -in maemo and debian-
ettercap-ng -maemo- only- the talk.maemo version not the broken repo one
mdk3 -debian-
cowpatty -debian-
w3af -debian-
sslstrip - in maemo and debian-
genpmk -debian-
nikto -debian-
john the ripper -maemo and debian-
grimwepa -maemo and debian- but i use it mostly with debian cause it has a stable oprnjre-6
gerix-wifi-cracker-ng -debian-
fasttrack -debian-
metasploit3 with all db drivers -debian- as well as maemo but no db drivers msfgui works also
armitage -debian- a gui for metasplot3
dnsspoof -maemo and debian-
urlsnarf -maemo and debian-
arpspoof -maemo and debian-
driftnet -maemo and debian-

well i guess those are the most apps i have

i will upload if some requested me an image that has all these and more i guess but it will take a week cause i have a dial up down speed 4kbs and upload is 2kbs
***ken internet in my country (syria)

ivyking 2011-05-12 07:45

Re: BackTrack 5 (arm) released
 
1 Attachment(s)
Quote:

Originally Posted by kingoddball (Post 1004655)
Can anyone get a full list of installed programs in BackTrack??
I will just install all tools in Easy Deb

the full output of

aptitude search '~i'

is here http://pastebin.com/raw.php?i=6uax8H11

a clean list is in the attached file: cleanList.txt

cleanList.txt contains only package names of non automatically installed packages , and has no package description on each line .

kingoddball 2011-05-12 08:21

Re: BackTrack 5 (arm) released
 
Good men!!

Thank's very much!

Why don't we just install all these prog's in Easy Debian and build our own versions? :D

Straycat 2011-05-12 08:23

Re: BackTrack 5 (arm) released
 
Quote:

Originally Posted by ivyking (Post 1004329)
...
now wait for Qole to finish his scripts to give you easy BT5 !

:')

quole is my hero!

linuxguru 2011-05-12 09:56

Re: BackTrack 5 (arm) released
 
I can make an ' easy BT5 ' !

but as "Qole" said , that pointless because BT5 is a ubuntu-based so its very easy to install them in maemo ,

also try to use the offensive security repo

regards

daperl 2011-05-12 10:37

Re: BackTrack 5 (arm) released
 
One word: qchroot (found in the easy-chroot package)

Go down that loop device rabbit hole and all your prayers will be answered. First, of course, create a proper image with some room to grow.

And yes, qole is a god.

shanewalsh247 2011-05-12 18:27

Re: BackTrack 5 (arm) released
 
so looking forward to someone putting up a detailed explanation of how to boot backtrack from sd, doesnt look very promising at the mo.

SuperDumb 2011-05-13 02:24

Re: BackTrack 5 (arm) released
 
Just giving Backtrack a go on the N900 with android :rolleyes:

http://www8.pic-upload.de/19.05.11/cou4e1lrxhh.jpg
http://i56.tinypic.com/wkmk34.jpg

Not real fast, even if overclocked. Will have a look tomorrow how to get it up in maemo.

azkay 2011-05-13 03:03

Re: BackTrack 5 (arm) released
 
Great. The card I ordered came in today.
They sent me an SD card instead of a MicroSD card.

What shouldve been over night express post is going to turn into a week.

Estel 2011-05-13 08:33

Re: BackTrack 5 (arm) released
 
Side note: I strongly encourage everyone to repartition internal eMMC by using method #8 in wiki.

I was amongst few first "big" things that i did with my N900 (first week of having it, if i remember correctly), and that was my first linux device - Yea, despite my love to open source idea & practice, i wasn't involved in linux, cause i never was motivated enough to start learning it. shame on me. Sure, i was able to do some thing on it, but i was FAR away from even linux power user, not to mention gurus.

So, what i want to say by this post is that reformatting using backupmenu + aptosid (or whatever you want) on virtual machine/ live Cd / whatever again is easy simple and straightforward. You can also delete/resize swap partition if You use swap on microSD and do similiar things in one run.

I created other partitions - one for Easy debian (NOT as image file on partition, extracted) and another for nitdroid - obviously everything is running much faster.

So, dedicated partition for backtrack would also improve performance. Also, i agree with qole that there is no need for this in fact - you can built Your own in ED - but the same apply for x86 version of backtrack, still many people - including me - was using it for some time, cause it packs many things and save work for You. Even Easy debian incorporate some cool aps in base image - GIMP etc. no matter than user can install it, if he want ;) So pentests aren't as useless as some thought.

another thing - i strongly DISCOURAGE regular users from running 32GB rotfs. At least whole topic about this - it is mainly targeted at developers who wan't to test their aplications without optifing first, and if You use 32GB rotfs in daily basics, you will encounter big performance drop.

fatcobrah 2011-05-13 09:25

Re: BackTrack 5 (arm) released
 
Quote:

Originally Posted by SuperDumb (Post 1005268)
Just giving Backtrack a go on the N900 with android :rolleyes:

http://i54.tinypic.com/rsfl88.jpg

Not real fast, even if overclocked. Will have a look tomorrow how to get it up in maemo.

wow amazing :D im gonna put these pics on the first post :D :D
did u use the class 6 MicroSD?

mr_pingu 2011-05-13 14:30

Re: BackTrack 5 (arm) released
 
Quote:

Originally Posted by Estel (Post 1005356)
Side note: I strongly encourage everyone to repartition internal eMMC by using method #8 in wiki.

I was amongst few first "big" things that i did with my N900 (first week of having it, if i remember correctly), and that was my first linux device - Yea, despite my love to open source idea & practice, i wasn't involved in linux, cause i never was motivated enough to start learning it. shame on me. Sure, i was able to do some thing on it, but i was FAR away from even linux power user, not to mention gurus.

So, what i want to say by this post is that reformatting using backupmenu + aptosid (or whatever you want) on virtual machine/ live Cd / whatever again is easy simple and straightforward. You can also delete/resize swap partition if You use swap on microSD and do similiar things in one run.

I created other partitions - one for Easy debian (NOT as image file on partition, extracted) and another for nitdroid - obviously everything is running much faster.

So, dedicated partition for backtrack would also improve performance. Also, i agree with qole that there is no need for this in fact - you can built Your own in ED - but the same apply for x86 version of backtrack, still many people - including me - was using it for some time, cause it packs many things and save work for You. Even Easy debian incorporate some cool aps in base image - GIMP etc. no matter than user can install it, if he want ;) So pentests aren't as useless as some thought.

another thing - i strongly DISCOURAGE regular users from running 32GB rotfs. At least whole topic about this - it is mainly targeted at developers who wan't to test their aplications without optifing first, and if You use 32GB rotfs in daily basics, you will encounter big performance drop.


But how to use these partitions? Install the easy debian chroot and then boot into easy debian or boot maemo and use easy debian chroot as partition or bootable image?

Capt'n Corrupt 2011-05-13 14:57

Re: BackTrack 5 (arm) released
 
Very cool stuff!

What are some of your plans with this OS?

shardul 2011-05-13 15:17

Re: BackTrack 5 (arm) released
 
Instructions guys.

SuperDumb 2011-05-13 16:42

Re: BackTrack 5 (arm) released
 
I will be home in about six hours. Then i can make the howto for the nitdroid solution if you like.

shanewalsh247 2011-05-13 17:31

Re: BackTrack 5 (arm) released
 
do you reckon it will run better off of nitdroid or from the sd on maemo?

maxxdout 2011-05-13 20:14

Re: BackTrack 5 (arm) released
 
just confirmed. i dd the image to an sd. mounted it with easy chroot. ran the included startvnc script and vnc'd into it at localhost:2. just like they do it on android... just on maemo ;-) ill play more with it and ill report back!

SuperDumb 2011-05-13 21:24

Re: BackTrack 5 (arm) released
 
So i wait to see results. Still trying to find a way without vnc.It is not very useable on android. How is it on maemo ? My nitdroid and BT5 are both on EMMC.

arend79 2011-05-13 22:19

Re: BackTrack 5 (arm) released
 
I tried the same and got only errors.
Can you provide the steps you took.
thnx

maxxdout 2011-05-13 22:26

Re: BackTrack 5 (arm) released
 
im only at 600 mhz at the moment with bt5 on sd. speed comparable to easy debian. having some issue that may have to do with localization (all the keys do crazy stuff). over the weekend i wanna look into that and editing the startvnc script to make it fit the n900 screen. i think it will be nice and useable once sorted.
we have to look into using xephyr like easy debian does. ill probably tool around with that next week.

maxxdout 2011-05-13 22:28

Re: BackTrack 5 (arm) released
 
Quote:

Originally Posted by arend79 (Post 1005824)
I tried the same and got only errors.
Can you provide the steps you took.
thnx

absolutely but ill be out of town over the weekend. ill do a how too sunday or monday on how i did it

kingoddball 2011-05-13 23:18

Re: BackTrack 5 (arm) released
 
Nitdroid runs from SD which is slower than NAND.

If we can run in Maemo it will be much faster.

skykooler 2011-05-13 23:43

Re: BackTrack 5 (arm) released
 
If we can run this from a chroot in Nitdroid, can it be booted from multiboot using the nitdroid kernel?

SuperDumb 2011-05-14 01:23

Re: BackTrack 5 (arm) released
 
When i do this VNC thing on maemo side, it is freezing my Phone :mad:
Did not happen in nitdroid.
I need to add some things to my image i made and upload hopefully tomorrow it so you can give it a go yourself :)


All times are GMT. The time now is 21:33.

vBulletin® Version 3.8.8