Skip to content

onlyvae/masscan-static

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Static Building

Download the compile tool chain based on musl from https://toolchains.bootlin.com/

# armv7
wget https://toolchains.bootlin.com/downloads/releases/toolchains/armv7-eabihf/tarballs/armv7-eabihf--musl--stable-2022.08-1.tar.bz2

# x86-64
wget https://toolchains.bootlin.com/downloads/releases/toolchains/x86-64/tarballs/x86-64--musl--stable-2022.08-1.tar.bz2

Download and build libpcap

wget https://www.tcpdump.org/release/libpcap-1.10.4.tar.gz
tar xvf libpcap-1.10.4.tar.gz

cd libpcap-1.10.4/
export CC="/path/x86-64--musl--stable-2022.08-1/bin/x86_64-linux-gcc"
./configure --host=$($CC -dumpmachine)
make

Download masscan in the same directory with libpcap and static build masscan.

git clone https://github.com/onlyvae/masscan.git

cd masscan
export CC="/path/x86-64--musl--stable-2022.08-1/bin/x86_64-linux-gcc"
make
strip bin/masscan

Referrence

https://github.com/robertdavidgraham/masscan/commit/e2e997331d07659f9f2fb05cd57f69f623618433?diff=split

About

Static build masscan for arm/x86/x86_64...

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 99.8%
  • Makefile 0.2%