masscan: initial commit, v1.0.5

This commit is contained in:
Alexandr Savca 2020-11-23 12:43:41 +02:00
parent 0115ffd720
commit faca667716
4 changed files with 61 additions and 0 deletions

7
masscan/.footprint Normal file
View File

@ -0,0 +1,7 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/masscan
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/man/
drwxr-xr-x root/root usr/share/man/man8/
-rw-r--r-- root/root usr/share/man/man8/masscan.8.gz

5
masscan/.signature Normal file
View File

@ -0,0 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF35IeA5tjtYFqqKQsPk1b+g5MAGjlTKEdFgYmt0Zrtuil2xdsCzyc0XCUIhQn/B26pcsjggULouGAON3pIQ4GxgY=
SHA256 (Pkgfile) = cad5609a3e634b7fccc3c598cba2507e795b43e82460c2cd4a01830096873bac
SHA256 (.footprint) = 2d96074301a7cf53f19ea0ff3f5ecc6935a9f4385c02cc1f34c9e1fcfd0421ea
SHA256 (masscan-1.0.5.tar.gz) = a0686929888674892f464014806444d26ded56838d45035221ff88ee9f6ead73

26
masscan/Pkgfile Normal file
View File

@ -0,0 +1,26 @@
# Description: Fast scan of the Internet
# URL: https://github.com/robertdavidgraham/masscan
# Maintainer: Alexandr Savca, alexandrsavca89 at gmail dot com
# Depends on: libpcap
name=masscan
version=1.0.5
release=1
source=(https://github.com/robertdavidgraham/$name/archive/$version/$name-$version.tar.gz)
build() {
cd $name-$version
sed -i \
-e '/$(CC)/s!$(CFLAGS)!$(LDFLAGS) $(CFLAGS)!g' \
-e '/^GITVER :=/s!= .(.*!=!g' \
-e '/^SYS/s|gcc|$(CC)|g' \
-e '/^CFLAGS =/{s,=,+=,;s,-g -ggdb,,;s,-O.,,;}' \
-e '/^CC =/d' \
Makefile
make
make DESTDIR=$PKG install
install -Dm644 doc/masscan.8 -t "$PKG/usr/share/man/man8"
}

23
masscan/README Normal file
View File

@ -0,0 +1,23 @@
README for masscan
NOTES
PF_RING
To get beyond 2 million packets/second, you need an Intel 10-gbps Ethernet
adapter and a special driver known as "PF_RING ZC" from ntop:
http://www.ntop.org/products/packet-capture/pf_ring/pf_ring-zc-zero-copy/
Masscan doesn't need to be rebuilt in order to use PF_RING.
To use PF_RING, you need to build the following components:
libpfring.so (installed in /usr/lib/libpfring.so)
pf_ring.ko (their kernel driver)
ixgbe.ko (their version of the Intel 10-gbps Ethernet driver)
You don't need to build their version of libpcap.so.
When Masscan detects that an adapter is named something like zc:enp1s0
instead of something like enp1s0, it'll automatically switch to PF_RING ZC
mode.