meefik / linuxdeploy

Install and run GNU/Linux on Android
https://meefik.github.io/linuxdeploy
GNU General Public License v3.0
5.17k stars 678 forks source link

Ruby 'Killed' #65

Open freeload101 opened 11 years ago

freeload101 commented 11 years ago

maybe one of these other limits is cauing it to get killed ?

Linux localhost 2.6.35.14-cyanogenmod #1 PREEMPT Mon Nov 26 06:41:27 EST 2012 armv7l GNU/Linux

Exhibit 4G

[](27/28 [0 sessions]): Launching exploit/windows/smb/psexec_psh against 172.16.2.133:445... [](28/28 [0 sessions]): Launching exploit/windows/smb/timbuktu_plughntcommand_bof against 172.16.2.133:445... [](28/28 [0 sessions]): Waiting on 24 launched modules to finish execution... [](28/28 [0 sessions]): Waiting on 24 launched modules to finish execution... [](28/28 [0 sessions]): Waiting on 24 launched modules to finish execution... [](28/28 [0 sessions]): Waiting on 23 launched modules to finish execution... [](28/28 [0 sessions]): Waiting on 23 launched modules to finish execution... [](28/28 [0 sessions]): Waiting on 23 launched modules to finish execution... [](28/28 [0 sessions]): Waiting on 23 launched modules to finish execution... [](28/28 [0 sessions]): Waiting on 22 launched modules to finish execution... [](28/28 [0 sessions]): Waiting on 22 launched modules to finish execution... [](28/28 [0 sessions]): Waiting on 22 launched modules to finish execution... [](28/28 [0 sessions]): Waiting on 22 launched modules to finish execution... [](28/28 [0 sessions]): Waiting on 22 launched modules to finish execution... [*](28/28 [0 sessions]): Waiting on 22 launched modules to finish execution... Killed

source: https://raw.github.com/PsychoSpy/metasploit-framework/autopwn-modules/plugins/db_autopwn.rb

gets to about 48% RAM but never anything close to 100% etc... and its not CPU thing because on install CPU is pegged most the time its something with memory I think in ruby

android says I have about a gig free RAM in the GUI not sure how that works

Every 2.0s: cat /proc/meminfo |grep -ia free;netstat -... Mon Aug 19 15:23:55 2013

MemFree: 4404 kB SwapFree: 0 kB

top - 15:23:56 up 2:27, 2 users, load average: 11.77, 13.08, 12.65 Tasks: 162 total, 3 running, 159 sleeping, 0 stopped, 0 zombie %Cpu(s): 31.5 us, 11.8 sy, 0.5 ni, 38.4 id, 17.4 wa, 0.0 hi, 0.4 si, 0.0 st KiB Mem: 374064 total, 370528 used, 3536 free, 3756 buffers KiB Swap: 0 total, 0 used, 0 free, 122792 cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 12459 10127 20 0 321m 31m 15m R 16.0 8.6 0:00.69 fik.linuxdeploy 338 aid_syst 20 0 379m 40m 9512 S 10.7 11.1 7:25.04 system_server 12549 root 20 0 4188 1152 824 R 10.7 0.3 0:00.04 top 12550 root 20 0 916 420 188 S 10.7 0.1 0:00.02 linuxdeploy

freeload101 commented 11 years ago

ulimit was 1024

ulimit -n 50000

meefik commented 11 years ago

Thanks!

freeload101 commented 11 years ago

Still having the 'killed' issue even if I envoke ulimit within msfconsole :+1:

ulimit -s unlimited ulimit -l unlimited ulimit -n 50000 ulimit -q unlimited ulimit -e unlimited ulimit -i unlimited ulimit -u unlimited ulimit -c unlimited

I also removed a noisy plugin for samba that brutes address space: find /usr/share/metasploit-framework -iname "trans2open" -exec rm '{}' \;

still no luck it still dies randomly .. if I just do plugins by hand it works fine. No other issues with the image etc.

top output:

9951 0 83% S 61 228976K 156536K fg root ruby 9951 0 69% S 68 236316K 156840K fg root ruby 9951 0 23% S 70 237912K 157512K fg root ruby 9951 0 47% S 69 239968K 157396K fg root ruby 9951 0 31% S 73 242300K 157740K fg root ruby 9951 0 30% S 74 242964K 158088K fg root ruby 9951 0 61% S 75 247076K 158252K fg root ruby 9951 0 27% S 80 249796K 159124K fg root ruby 9951 0 50% S 72 249796K 158884K fg root ruby 9951 0 43% S 73 249796K 158896K fg root ruby 9951 0 36% R 78 251248K 161012K fg root ruby 9951 0 76% S 72 253756K 163456K fg root ruby 9951 0 27% S 80 254784K 163544K fg root ruby 9951 0 57% S 72 253384K 162304K fg root ruby 9951 0 29% S 72 253384K 162188K fg root ruby 9951 0 16% S 72 253384K 162320K fg root ruby 9951 0 17% S 74 255588K 162384K fg root ruby 9951 0 33% S 77 256536K 163052K fg root ruby 9951 0 25% S 74 257564K 162988K fg root ruby 9951 0 3% S 74 257564K 162852K fg root ruby 9951 0 2% S 75 257564K 162968K fg root ruby 9951 0 4% S 83 257708K 163024K fg root ruby 9951 0 3% S 77 257708K 163068K fg root ruby