kali zmap 安装 json-c === c4bbage

apt-get install build-essential autoconf cmake libgmp3-dev libpcap-dev gengetopt byacc flex pkg-config libjson0-dev libtool
git clone https://github.com/json-c/json-c.git
cd json-c
sh autogen.sh
sh autogen.sh
./configure
make
make install
echo /usr/local/lib/ >> /etc/ld.so.conf
ldconfig
cd ../
git clone git://github.com/zmap/zmap.git zmap
cd zmap/
cmake -DENABLE_HARDENING=ON
make
make install
zmap -h


<pre class="brush:shell; toolbar: true; auto-links: true;">以下未成功:</pre><pre class="brush:shell; toolbar: true; auto-links: true;">cd examples/forge-socket
mv Makefile Makefile.bak
cat > Makefile << EOF
CFLAGS+=-I../../lib/ -I../../forge_socket -Wall
LDFLAGS+=-lpcap -levent -levent_extra -lm
VPATH=../../lib/

# from dpkg-buildflags --get CFLAGS, but use stack-protector-all and fPIC
GCCHARDENING=-g -O2 -fstack-protector-all --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -fPIC -shared
# from gpkg-buildflags --get LDFLAGS, + -z,now
LDHARDENING=-Wl,-Bsymbolic-functions -Wl,-z,relro,-z,now

CFLAGS+=$(GCCHARDENING)
LDFLAGS+=$(LDHARDENING)


all: forge-socket

forge-socket: forge-socket.o xalloc.o logger.o
	$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)

clean:
	rm -f forge-socket *.o
EOF</pre>make


你可能感兴趣的:(kali zmap 安装 json-c === c4bbage)