Last active
July 22, 2024 21:20
-
-
Save navicore/c12eddbc59bd9d58409889f3d11143c4 to your computer and use it in GitHub Desktop.
install masscan on ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ubuntu | |
sudo apt-get -y install git gcc make libpcap-dev | |
git clone https://github.com/robertdavidgraham/masscan | |
cd masscan/ | |
make | |
sudo make install |
gcc (Ubuntu 4.8.4-2ubuntu1~14.04.4) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Interesting. I just ran through it and it still works for me. My gcc is a lot newer;
☁ masscan [master] gcc --version
gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This worked for Ubuntu 24.04 LTS - codename : Noble
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
root@ubuntu:~/masscan# make
gcc -g -ggdb -Wall -O2 -c src/massip-addr.c -o tmp/massip-addr.o
src/massip-addr.c: In function ‘ipv6address_selftest’:
src/massip-addr.c:244:5: error: invalid use of non-lvalue array
if (strcmp(ipaddress_fmt(ip).string, "1.255.0.163") != 0)
^
In file included from /usr/include/string.h:635:0,
from src/massip-addr.c:2:
src/massip-addr.c:244:9: error: invalid operands to binary + (have ‘char[48]’ and ‘int’)
if (strcmp(ipaddress_fmt(ip).string, "1.255.0.163") != 0)
^
src/massip-addr.c:244:5: error: cannot convert to a pointer type
if (strcmp(ipaddress_fmt(ip).string, "1.255.0.163") != 0)
^
src/massip-addr.c:244:5: error: invalid use of non-lvalue array
In file included from /usr/include/string.h:635:0,
from src/massip-addr.c:2:
src/massip-addr.c:244:9: error: invalid operands to binary + (have ‘char[48]’ and ‘int’)
if (strcmp(ipaddress_fmt(ip).string, "1.255.0.163") != 0)
^
src/massip-addr.c:244:5: error: cannot convert to a pointer type
if (strcmp(ipaddress_fmt(ip).string, "1.255.0.163") != 0)
^
src/massip-addr.c:244:5: error: invalid use of non-lvalue array
src/massip-addr.c:244:5: error: invalid use of non-lvalue array
src/massip-addr.c:244:5: error: cannot convert to a pointer type
src/massip-addr.c:244:5: error: cannot convert to a pointer type
src/massip-addr.c:244:5: error: cannot convert to a pointer type
src/massip-addr.c:244:5: error: cannot convert to a pointer type
In file included from /usr/include/string.h:635:0,
from src/massip-addr.c:2:
src/massip-addr.c:244:9: error: invalid operands to binary + (have ‘char[48]’ and ‘int’)
if (strcmp(ipaddress_fmt(ip).string, "1.255.0.163") != 0)
^
src/massip-addr.c:244:5: error: cannot convert to a pointer type
if (strcmp(ipaddress_fmt(ip).string, "1.255.0.163") != 0)
^
src/massip-addr.c:244:5: error: invalid use of non-lvalue array
src/massip-addr.c:244:5: error: cannot convert to a pointer type
src/massip-addr.c:244:5: error: invalid use of non-lvalue array
make: *** [tmp/massip-addr.o] Error 1