Welcome Guest [Log In] [Register]
Welcome to Pwnie Express. We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Please note you need to use a valid email address to register for member access.

Get your questions answered by other members, share your ideas and feedback, get your problems solved, and give back by helping others! It only takes a minute to get started. Registration is simple, fast, and completely free!

Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Post "successful install" KaliPwn Notes; After install notes-posts-fixes
Topic Started: Dec 13 2013, 06:27 PM (2,844 Views)
0ld3nglish800
Member Avatar

The other threads are getting up there with content, I hope nobody minds if I post this here.

I have successfully installed Binky's KaliPwn a few different ways, I wanted to share my experience and post a few issues with hopes that they can be resolved.

Model: Nexus 7 (2012)

ROM: [KK 4.4.1 KOT49E] ♦ PURITY ROM ♦ (Grouper) 08/12 (purity_grouper_ota_2013-12-08.zip)
link: http://forum.xda-developers.com/showthread.php?t=2222374

Kernel: Android 4.4 Based off metallice kernel a65. Forced module loading no longer works (Google disabled)

KaliPwn Image: update-kalipwn-v05.zip

GApps: 12-11_GApps_Core_4.4.2_signed.zip
link: http://www.androidfilehost.com/?a=show&w=files&flid=10306

Installation steps:

-Using Wugs Toolkit - Flashed nexus back to stock 4.2.2 / enabled usb debug

-Using Wugs Toolkit -Flashed custom recovery to most current CWM (clockworkmod recovery)

-Copied all zip files (rom, kernel, gapps, kalipwnv.5) to nexus 7 by connecting to computer and using filemanager.

-Rebooted into CWM recovery

-Installed Purity Rom (purity_grouper_ota_2013-12-08.zip) by flashing zip in CWM recovery
-rebooted enabled usb debugging -rebooted back to CWM recovery

-Installed Gapps by flashing zip in CWM recovery
-rebooted, verified playstore was installed -rebooted back to CWM recovery

-Installed update-kalipwn-v05.zip by flashing zip in CWM recovery
-rebooted, verified kalipwn icons - rebooted back into CWM recovery

-Installed Android 4.4 Based off metallice kernel a65 by flashing zip in CWM
-rebooted, verified root shell worked and config kali worked.

Verified TP link worked

[Screenshots]

Kali Desktop w/ Xfce 4.10 (VNC)
Posted Image

Armitage running (VNC)
Posted Image

I was able to resolve the metasploit bundle error by typing in terminal:
Quote:
 
chmod 755 /usr


Get armitage running by: (from: http://w11.zetaboards.com/Pwnie_Express/topic/9369003/5/ )
Quote:
 
nano /usr/bin/armitage

Replace with:
Quote:
 
#!/bin/bash
cd /usr/share/armitage/ && export PATH=/usr/lib/jvm/java-7-openjdk-armhf/bin:$$PATH && ./armitage "$@"

(will have to be done everytime armitage is updated)


Start msfrpcd manually in a seperate window using:
Quote:
 
msfrpcd -U msf -P test -f -S -a 127.0.0.1

Or create launcher on Kali desktop to execute before running armitage

When running armitage you will see fontconfig warnings, there is nothing wrong.
You can remove the warnings by editing:
Quote:
 
/etc/fonts/conf.d/65-droid-sans-fonts-conf

and removing the error'd lines. <test> </test>
(if you dont know what your doing, then skip this)
Edited by 0ld3nglish800, Jan 20 2014, 04:40 PM.
Offline Profile Quote Post Goto Top
 
binkybear
Member Avatar

0ld- Awesome write up! I love the pictures. As far as Armitage is concerned, in V5 I didn't have to change the v7 java. However, I did run into the same error=2 that you did. It turns out the fix was to start msfrpcd manually in a seperate window using: msfrpcd -U msf -P test -f -S -a 127.0.0.1

Why is this broken? No clue. Everything is installed and maybe it's looking in the wrong place.

Heck, I even made a video of me troubleshooting the problem! http://www.dailymotion.com/video/x18e7a6_fixing-armitage-kalipwn_tech

.It's a bit boring but might give some people an idea of what VNC looks like on a Nexus 7 (2012) running the latest version. I VNC'd (is that a word) into the Nexus from my computer and recorded it there.

Anyways, I also fixed the VNC kill problem in configkalipwn.sh. You can try running the update scripts inside then restarting configkalipwn. The trick was to run sed on the pid files then run killserver on all the results. The kill process error you are getting is okay but this should more reliably kill the pid files.
Edited by binkybear, Dec 14 2013, 03:27 AM.
Offline Profile Quote Post Goto Top
 
0ld3nglish800
Member Avatar

Thank you binkybear. I created a launcher with the command you posted ( msfrpcd -U msf -P test -f -S -a 127.0.0.1 ) and was able to (after some waiting) use armitage.

I am still having the same problem with the script now removing previous vnc sessions. I found a working screencast app for android and made a youtube video showing the error and also demonstrating armitage on the current v5 release.

http://www.youtube.com/watch?v=r7s7ou0SnPI
\\Spoiler\\
If you dont like generic video game background music::mute your speakers::

The vnc script error starts at 0:47 - 1:13

I also edit the video to speed up the time it took to launch armitage.
Edited by 0ld3nglish800, Dec 15 2013, 12:09 AM.
Offline Profile Quote Post Goto Top
 
binkybear
Member Avatar

Old- Just watched the video and it was really good. It's nice to see the set up other people have sometimes just to see if it matches up with. Anyhow, the biggest problem I see is it's not removing the lock files. I was kind of surprised it was already up to port 6 on yours and I need to find a better way to remove them.

It shouldn't be to hard to make a bash script to execute in armitage. Still a bit annoying but at least it's a work around for now. It does take a long time to load armitage but to be fair it takes a long time on a PC too.
Edited by binkybear, Dec 15 2013, 02:29 AM.
Offline Profile Quote Post Goto Top
 
0ld3nglish800
Member Avatar

@binkybear -

I think I found the fix for removing the /tmp/X1-lock sessions. I edited your configkalipwn script and
Quote:
 
changed rm -vrf /tmp/X*
(sorry don't remember exactly how you have it) to
Quote:
 
rm -r /tmp/X*


Im not sure why -vrf doesn't do it, but I noticed when I typed in console rm -r /tmp/X* that it actually removed those files.

---------

In case anyone is interested:
I was able to upgrade xfce 4.8 to xfce 4.10 on kalipwn by temporarily adding 'jessie' repo to sources.list and running apt-get update,
apt-get install xfce4 xfce4-goodies.
After all was downloaded, I commented out 'jessie' repo and rebooted.

I don't quite understand how androidvnc renders the desktop but I noticed a change after upgrade to xfce4.10
I also noticed (pretty sure) that response time was better after updating to xfce4.10

Side note: I am attempting a native Ubuntu 12.10 install w/ kali tools. The plan is to install Ubuntu *native* and modifying to run xfce instead of gnome (for performance) and then install the kali patched kernel and then kali tools. Wish me luck. =D

Update: took forever to find boot.img and rootfs.img for Ubuntu 12.10 for Nexus 7. Ubuntu is now just developing for Ubuntu-Touch. I was able to install Ubuntu 12.10 native on the Nexus 7, I was also able to add root user and install Xfce, however, after adding Kali repos, and trying to install the tools, I got stuck at installing wine. I am not trying to run x86 binaries but some kali-tools I guess depend on wine libraries. So I will try to compile wine for armfs or armv7 (?) The next issue I have is getting the kali kernel. In synaptic the 3.7-trunk kernels are for omap and mx5, does anyone know how I could go about manually compiling the kali kernel for armfs or armv7?
If I am unable to compile wine, I will try installing Ubuntu Raring natively on the Nexus 7 and see if I get better results.
Edited by 0ld3nglish800, Dec 16 2013, 07:18 PM.
Offline Profile Quote Post Goto Top
 
0ld3nglish800
Member Avatar

Just wanted to show off my KaliPwn Nexus 7 2012.

Added 'Jessie' main repo to sources, did a full dist-upgrade, upgraded Xfce to 4.10 from 4.8, added NovaLauncher, changed some icons, and created a few desktop backgrounds.

http://www.youtube.com/watch?v=NPCnWD5u0Mo

Rom: Purity Rom (kitkat)
Icon theme is: HexaPulse


Edited by 0ld3nglish800, Dec 24 2013, 04:51 PM.
Offline Profile Quote Post Goto Top
 
0ld3nglish800
Member Avatar

Some original KaliPwn wallpapers for you.

http://i.imgur.com/sD2BgBH.jpg

http://i.imgur.com/gvVt3tm.jpg

http://i.imgur.com/afSHpFT.jpg
Offline Profile Quote Post Goto Top
 
BeNe
Member Avatar

Cool idea. Thanks man!
Offline Profile Quote Post Goto Top
 
binkybear
Member Avatar

0ld3nglish800
Dec 24 2013, 04:57 PM


Sweet! I added a link on the main kalipwn update page. Thanks for making them!

Also, I just watched the video and I will say that your xfce desktop/vnc runs a lot smoother than mine. I need to look at adding the jessie repo. What's the advantage of that? Just newer apps?
Edited by binkybear, Dec 24 2013, 10:27 PM.
Offline Profile Quote Post Goto Top
 
0ld3nglish800
Member Avatar

Im no expert, it updated alot of packages and libraries. It also installed postgresql 9.3 which I wasn't sure how to make work with metasploit, so there was a command I typed in console that made it still use postgresql 9.1.
I didn't purposely upgrade everything, I meant only to just update xfce but I forgot to comment out the jessie repo after updateing xfce and ran the update script soon after, and just decided to go with the complete upgrade.

Im still trying to figure out how to better customize, I still need to test out a few other vnc clients. If you goto Settings, Appearances, you will see that even if you change the theme or icon theme that you wont notice the changes. Also, if you goto Settings - Display it complains about randr not being on display 0.

Hope everybody has a Merry Christmas.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Pwn Pad Community Edition Support Forum · Next Topic »
Add Reply