You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I generally have the luxury of using Masscan in linux, but regrettably there are some remote testing setups that force me to find a way to use masscan in Windows. I do have WSL installed, but unfortunately it has to be version 1 because of virtual environment, which limits anything I can do with Masscan, Nmap, etc.
Therefore, I am trying to compile now in Windows 10 so that I can leverage a python scanning script I developed. I am using mingw64 with npcap installed. I have been able to resolve the majority of compile errors so far, but I am stuck at the end of the make where I am presented with the following:
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lwpcap: No such file or directory
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lcrt: No such file or directory
I have tried to modify the LDFLAGS and LIBS lines, to include paths to mingw64/lib and npcap/lib, in the Makefile with no success. I tried to order the paths in different ways also and it makes no difference. Any ideas? Thanks for any suggestions.
The text was updated successfully, but these errors were encountered:
I have no idea if this thing will run and perform, but got around the issues.
For the -lwpcap not found error: this was resolved by downloading the npcap sdk, extracting and copying the lib directory of the SDK to here: C:\Program Files\Npcap. I then had to add that path to the Makefile of Masscan under the Mingw section shown below:
MinGW on Windows
ifneq (, (SYS)))
INCLUDES = -Ivs10/include
CFLAGS = -g -ggdb -I. -Wall -O2 -DWIN32 -nostartfiles -nodefaultlibs
LDFLAGS = -L"C:\Program Files\Npcap\Lib\x64" -lwpcap -lws2_32 -lIPHLPAPI /mingw64/lib/crt1.o
endif_
For the -lcrt not found error: this was resolved by placing the -nostartfiles in the following line of the Makefile:
I generally have the luxury of using Masscan in linux, but regrettably there are some remote testing setups that force me to find a way to use masscan in Windows. I do have WSL installed, but unfortunately it has to be version 1 because of virtual environment, which limits anything I can do with Masscan, Nmap, etc.
Therefore, I am trying to compile now in Windows 10 so that I can leverage a python scanning script I developed. I am using mingw64 with npcap installed. I have been able to resolve the majority of compile errors so far, but I am stuck at the end of the make where I am presented with the following:
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lwpcap: No such file or directory
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lcrt: No such file or directory
I have tried to modify the LDFLAGS and LIBS lines, to include paths to mingw64/lib and npcap/lib, in the Makefile with no success. I tried to order the paths in different ways also and it makes no difference. Any ideas? Thanks for any suggestions.
The text was updated successfully, but these errors were encountered: