背景

某天上午虚拟机突然卡死崩溃,再次启动我的cobaltstrike,运行发现报java空指针错误,搞了一上午也没找到原因,下午睡觉起来找到了是颜色设置的问题

错误和解决

报错内容大概是这样的:

java.lang.NumberFormatException during cortana bridge: &openEventLog [Aggressor Script Event Queue]:
Zero length string java.lang.NumberFormatException: Zero length string at java.base/java.lang.Integer.decode
(Integer.java:1401) at java.desktop/java.awt.Color.decode(Color.java:729) at aggressor.Prefs.
getColor(Unknown Source) at console.StatusBar.<init>(Unknown Source) at console.Console
.<init>(Unknown Source) at console.ActivityConsole.<init>(Unknown Source) at
aggressor.windows.EventLog.<init>(Unknown Source) at 
aggressor.bridges.AggressorBridge.evaluate(Unknown Source) at 
cortana.SafeFunction.evaluate(Unknown Source) at sleep.engine.CallRequest$FunctionCallRequest.execute(Unknown Source) 
at sleep.engine.CallRequest.CallFunction(Unknown Source) at sleep.engine.atoms.Call.evaluate(Unknown 
Source) at sleep.engine.Block.evaluate(Unknown Source) at sleep.engine.Block.evaluate
(Unknown Source) at sleep.bridges.SleepClosure.evaluate(Unknown Source) at 
sleep.engine.CallRequest$ClosureCallRequest.execute(Unknown Source) at sleep.engine.CallRequest.CallFunction(Unknown Source) 
at sleep.runtime.SleepUtils.runCode(Unknown Source) at sleep.runtime.SleepUtils.runCode(Unknown Source) at 
cortana.core.EventManager.fireEventNoQueue(Unknown Source) at cortana.core.EventQueue.run(Unknown Source)
at java.base/java.lang.Thread.run(Thread.java:829)

解决需要一个个把所有的颜色配置都加上,崩溃之后似乎全都初始化了:

还有这里的别忘了:

重启CS之后就正常了,懒得截图了,看到有颜色的地方就全部勾上吧,补一个最近推的美少女的表情包:

没了,不过改了字体确实好看不少,默认界面太土了,用起来还一卡一卡的,不过确实也没更好的远控了,刚写完虚拟机又卡死了,继续睡一下。