Much Respect! and Thanks! gos out to Binkybear for the Help in Resolving this issue...
FIX METASPLOIT CRASHING NEXUS10
How to fix metasploit and other tools crashing on nexus 10
1-First off we follow these directions from http://www.nethunter.com/
to unlock/root/install Kali Nethunter to our Nexus 10.
Install With windows installer
2-Open installer follow directions ,Now we install Google drivers once installed properly
& you turn USB debugging "ON" Hit "about tablet,hit build number 7 times, go back open developer options check USB Debugging is ON if not check the box and a box will pop up on tablet just check that box.
3-Now go and cut "MTU OFF", on your Nexus10 go to Settings ,storage ,upper right hand corner 3 little dots click them "uncheck MTU"
Make Sure DRIVERS install correctly! an USB Debugging ON!,an MTU OFF! OR!
quoteing this pic on a tut for kalipwn on another forum,forum user posted **** was funny but true!!
Now your Install will go smooth .
4-so with that out the way we Hit Next and Follow the rest of the directions in the Installer, if you have all ready unlocked your nexus10, then you can skip UNLOCK if you are already Stock android you can skip GO BACK TO STOCK as well . & hit INSTALL+ROOT But If you are NOT unlocked an stock then you need to follow ALL instructions!
Once you Have Kali Installed,Reboot.
5-Now its time to Update,Start postgresql First before updating because of metasploit,
"Service postgresql start" then you can apt-get update && apt-get upgrade && apt-get dist-upgrade
and chroot update kali
6-OK, so that's done. now to get Metasploit and other Ram intensive Tool's to run properly we need to make a swap Partition on our Nexus10,
we open terminal type "Su" without quotes that will put us in a ADB Shell root@manta: we don't want that,
so type "bootkali" an it will put us in a Kali shell,, root@kali if it don't say root@kali you need to reboot and do it again or it wont work.
Ok Swap file is recommended to be stored in /var and we will call it : “swapnethunter.img”, also we must set file permissions to 600 so none of the other users could use or read the file, this can cause problems to the system memory.
Write following commands:
root@kali:/# cd /var
root@kali:/var# touch swapnethunter.img
root@kali:/var# chmod 600 swapnethunter.img
Step 3. Set size for the Swap file
Now you should set Swap size , Swap can be set to 1Gb, if you have 1Gb of Ram, swap can be set to 2Gb,1Gb of swap, should be enough RAM.
Now we will fill the swap file with some size,and we will fill it with 1Gb of memory, follow the commands:
root@kali:/var# dd if=/dev/zero of=/var/swapnethunter.img bs=1024k count=1000
1000+0 records in
1000+0 records out
1048576000 bytes (1.0 GB) copied, 4.0868896 s, 287 MB/s
After command, we will have to wait a minute, and we will get the results that bytes have been copied and at what speed rate.
Step 4. Initialize Swap filesystem
Follow the commands:
root@kali:/var# mkswap /var/swapnethunter.img
Code:
Setting up swapspace version 1, size = 1020 GiB
no label, UUID=72761533-4bbe-316g-v02e-c0ssbe4cfdf2
If you got similar result, it means that swap was initialized.
Step 5. Enable Swap
To enable swap we will have just to turn it on, to check if it’s enabled type "free"
root@kali:/var# swapon /var/swapnethunter.img
Now you will have to type that last command in, each and every boot till i can figure out how to auto run it for your swap file to be activated on each boot. .
Now Metasploit and few other things that had problems will work as they should without crashing,
You can also read above to be able to change the ram specs on nexus10 from 268 to 468 if you need to,
so far i changed to and have left as 468 and no problems.
any problems just post up here i'm no guru but i will do my best to help out...
By the way this my first Tutorial ever! so give me some slack if not perfect lol hope it helps someone..
Again Much Respect! and Thanks! gos out to Binkybear. for the Help in Resolving this issue.
.
cr1p70
Edit:
Swearing