From 079c224f177a573bb4231a15885dc40641e10028 Mon Sep 17 00:00:00 2001 From: Alex <61382599+NeffIsBack@users.noreply.github.com> Date: Tue, 31 Oct 2023 14:29:15 +0100 Subject: [PATCH] Fix import error on windows --- nxc/netexec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nxc/netexec.py b/nxc/netexec.py index deeda945..e09e249e 100755 --- a/nxc/netexec.py +++ b/nxc/netexec.py @@ -26,7 +26,7 @@ from rich.progress import Progress import platform # Increase file_limit to prevent error "Too many open files" -if platform != "Windows": +if platform.system() != "Windows": import resource file_limit = list(resource.getrlimit(resource.RLIMIT_NOFILE))