Previously configured Raspberry Pi installation Zmap has not been installed successfully, and today tried again, installed successfully, recorded.
Good Job.
Zmap Address:
Https://zmap.io/documentation.html
Step1:
git clone git://github.com/zmap/zmap.git
Step2:
Apt-get Install build-essential cmake libgmp3-dev libpcap-dev gengetopt BYACC Flex
Step3:
Cmake-dwith_redis=on-dwith_json=off-denable_development=off-denable_hardening=off./
STEP4:
Make
STEP5:
Make install
The above steps make error when making:
[email protected]:/data/tools/zmap# makescanning dependencies of target zblacklist[1%] Building C Object Src/cmake files/zblacklist.dir/zblacklist.c.o[2%] Building C object src/cmakefiles/zblacklist.dir/__/lib/blacklist.c.o[3%] Building C Object src/cmakefiles/zblacklist.dir/__/lib/constraint.c.o[5%] Building C object src/cmakefiles/ zblacklist.dir/__/lib/logger.c.o[6%] Building C object src/cmakefiles/zblacklist.dir/__/lib/pbm.c.o[7%] Building c OB Ject src/cmakefiles/zblacklist.dir/__/lib/random.c.o[9%] Building C object src/cmakefiles/zblacklist.dir/__/lib/ Rijndael-alg-fst.c . o[10%] Building C Object Src/cmakefiles/zblacklist.dir/__/lib/xallo c.c.o[11%] Building C object src/cmakefiles/zblacklist.dir/__/lib/lockfd.c.o[13%] Building C object src/cmakefiles/ zblacklist.dir/__/lib/util.c.o[14%] Building C object src/cmakefiles/zblacklist.dir/__/lib/queue.c.o[15%] Building C object src/cmakefiles/zblacklist.dir/__/lib/ Csv.c.olinking C executable zblacklist[15%] Built target zblacklist[17%] generating parser.c[18%] generating zopt.h[19 %] Generating lexer.cscanning dependencies of target zmap[21%] Building C object src/cmakefiles/zmap.dir/aesrand.c.o[22% ] Building C object src/cmakefiles/zmap.dir/cyclic.c.o[23%] Building C object src/cmakefiles/zmap.dir/expression.c.o[ 25%] Building C object src/cmakefiles/zmap.dir/fieldset.c.o[26%] Building C object src/cmakefiles/zmap.dir/filter.c.o[ 27%] Building C object src/cmakefiles/zmap.dir/get_gateway.c.o[28%] Building C object src/cmakefiles/zmap.dir/ iterator.c.o[30%] Building C object src/cmakefiles/zmap.dir/monitor.c.o[31%] Building C object Src/cmakefiles/zmap.dir /recv.c.o[32%] Building C object src/cmakefiles/zmap.dir/send.c.o[34%] Building C object Src/cmakefiles/zmap.dir/shard . c.o[35%] Building C object Src/cmakefiles/zmap.dir/socket.c.o[36%] Building C object src/cmakefiles/zmap.dir/state.c.o[38%] Building C object src/cmakefiles/zmap.dir/ summary.c.o[39%] Building C object src/cmakefiles/zmap.dir/validate.c.o[40%] Building C object Src/cmakefiles/zmap.dir /zmap.c.o[42%] Building C object src/cmakefiles/zmap.dir/zopt_compat.c.o[43%] Building C object src/cmakefiles/ zmap.dir/lexer.c.o[44%] Building C object src/cmakefiles/zmap.dir/parser.c.o[46%] Building C object src/cmakefiles/ Zmap.dir/probe_modules/module_icmp_echo. c.o[47%] Building C Object Src/cmakefiles/zma P.dir/probe_modules/module_tcp_synsca n.c.o[48%] Building C object Src/cmakefiles/zmap. dir/probe_modules/module_udp.c.o[50%] Building c objECT SRC/CMAKEFILES/ZMAP.DIR/PROBE_MODULES/MODULE_UDP_DNS.C. OIn file included From/dat A/tools/zmap/src/probe_modules/module_udp_dns.c:25:0:/data/tools/zmap/src/probe_modules/module_udp_dns.h:17:2: Warning:type of Bit-f Ield ' Rd ' is a GCC extension [-pedantic]/data/tools/zmap/src/prob E_modules/module_udp_dns.h:18:2: Warning:type of Bit-f Ield ' TC ' is a GCC extension [-P Edantic]/data/tools/zmap/src/probe_modules/module_udp_dns.h:19:2: Warning:type of Bit-f Ield ' AA ' is a GCC extension [-peda Ntic]/data/tools/zmap/src/probe_modules/module_udp_dns.h:20:2: Warning:type of Bit-f Ie ld ' opcode ' is a GCC extension [-pedantic]/data/tools/zmap/src/probe_modules/module_udp_dns.h:21:2: Warning:type of Bit-f Ield ' QR ' is a GCC extension [-pedantic]/data/tools/zmap/src/probe_modules/module_ Udp_dns.h:23:2: Warning:type of Bit-f Ield ' Rcode ' is a GCC extension [-pedantic]/data/ tools/zmap/src/probe_modules/Module_udp_dns.h:24:2: Warning:type of Bit-f Ield ' CD ' is a GCC extension [-pedantic]/d Ata/tools/zmap/src/probe_modules/module_udp_dns.h:25:2: Warning:type of Bit-f Ield ' ad ' is a GCC extension [-pedantic]/data/tools/zmap/src/probe_modules/module_udp_dns.h:26:2: Warning:type of Bit-f Ield ' Z ' is a GCC extension [-pedantic]/data/tools/zmap/src/probe_modules/module_udp_dns.h:27:2: W Arning:type of Bit-f Ield ' Ra ' is a GCC extension [-pedantic]in file included From/data/tools/zmap/src/probe_m Odules/module_udp_dns.c:26:0:/data/tools/zmap/src/probe_modules/module_udp.h:60:20:warning:redundant redecl Aration of ' udp_unreach_strings ' [-wredundant-decls]/data/tools/zmap/src/probe_modules/module_udp_dn S.h:66:20:note:previous Declar ation of ' udp_unreach_strings ' was here[51%] Building C Object src/cmakefiles/zmap.dir/probe_modules/module_dns_mx.c.o[52%] Building C object src/cmakefiles/zmap.dir/ probe_modules/packet.c.o[53%] Building C object src/cmakefiles/zmap.dir/probe_modules/probe_modules.c.o[55%] Building C Object Src/cmakefiles/zmap.dir/probe_modules/module_ntp.c.o[56%] Building C object src/cmakefiles/zmap.dir/probe_modules/module_upnp.c.o[57%] Building C Object src/cmakefiles/zmap.dir/output_modules/module_csv.c.o[59%] Building C object src/cmakefiles/ Zmap.dir/output_modules/output_modules.c . o[60%] Building C object Src/cmakefiles/zmap. dir/__/lib/blacklist.c.o[61%] Building C object src/cmakefiles/zmap.dir/__/lib/constraint.c.o[63%] Building C Object src/cmakefiles/zmap.dir/__/lib/logger.c.o[64%] Building C object src/cmakefiles/zmap.dir/__/lib/pbm.c.o[65%] Building C Object src/cmakefiles/zmap.dir/__/lib/random.c.o[67%] Building C object src/cmakefiles/zmap.dir/__/lib/ rijndael-alg-fst.c.o[68%] Building C object src/cmakefiles/zmap.dir/__/lib/xalloc.c.o[69%] Building C object src/ cmakefiles/zmap.dir/__/lib/lockfd.c.o[71%] Building C object Src/cmakefiles/zmap.dir/__/lib/util.c.o[72%] Building C object src/cmakefiles/zmap.dir/__/lib/queue.c.o[73%] Building C object src /cmakefiles/zmap.dir/__/lib/csv.c.o[75%] Building C object src/cmakefiles/zmap.dir/socket-linux.c.o[76%] Building C Object src/cmakefiles/zmap.dir/recv-pcap.c.o[77%] Building C object Src/cmakefiles/zmap.dir/__/lib/redis.c.oin file Included From/data/tools/zmap/lib/redis.c:9:0:/data/tools/zmap/lib/redis.h:3:29:fatal Error:hiredis/hiredis.h:no Such file or Directorycompilation Terminated.src/cmakefiles/zmap.dir/build.make:1058:r Ecipe for Target ' Src/cmakefiles/zmap. DIR/__/LIB/REDIS.C.O ' failedmake[2]: * * * [src/cm AKEFILES/ZMAP.DIR/__/LIB/REDIS.C.O] Error 1cmakefiles/makefile2:114:recipe for Target ' Src/cmakefiles/zmap.dir/all ' failedmake[1]: * * * [src/cmakefiles/ Zmap.dir/all] Error 2makefile:133:recipe for target ' all ' failedmake: * * * [ALL] Error 2
Workaround:
Apt-get Install Libhiredis-dev
Installation Result:
[email protected]:/data/tools/zmap# apt-get Install libhiredis-devreading package lists ... Donebuilding dependency treereading state information ... Donethe following extra packages would be installed:libhiredis0.10the following NEW packages would be installed:libhired Is-dev libhiredis0.100 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 55.2 kB of archives. After this operation, 211 KB of additional disk space would be used. Want to continue [y/n]? Yget:1 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/wheezy/main libhiredis0.10 armhf 0.10.1-7 [21.6 kb]get : 2 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/wheezy/main Libhiredis-dev ARMHF 0.10.1-7 [33.6 kb]fetched 55.2 kB in 1s (43.5 kb/s) Selecting previously unselected package LIBHIREDIS0.10:ARMHF. (Reading database ... 84759 files and directories currently installed.) Unpacking LIBHIREDIS0.10:ARMHF (from .../libhiredis0.10_0.10.1-7_armhf.deb) ... Selecting previously unselected package LibHIREDIS-DEV:ARMHF. Unpacking LIBHIREDIS-DEV:ARMHF (from .../libhiredis-dev_0.10.1-7_armhf.deb) ... Setting up LIBHIREDIS0.10:ARMHF (0.10.1-7) ... Setting up LIBHIREDIS-DEV:ARMHF (0.10.1-7) ... [email protected]:/data/tools/zmap# make[15%] Built target zblacklist[17%] Building C Object src/cmakefiles/ zmap.dir/__/lib/redis.c.o[18%] Building C object src/cmakefiles/zmap.dir/output_modules/module_redis.c.o[19%] Building C Object src/cmakefiles/zmap.dir/output_modules/module_csvredis.c.o[21%] Building C object src/cmakefiles/ Zmap.dir/output_modules/module_redis_csv.c.olinking C executable zmap[81%] Built target zmap[82%] Generating topt.hscanning dependencies of Target ztee[84%] Building C object src/cmakefiles/ztee.dir/ztee.c.o[85%] Building c objec T src/cmakefiles/ztee.dir/topt_compat.c.o[86%] Building C object src/cmakefiles/ztee.dir/__/lib/blacklist.c.o[88%] Building C Object src/cmakefiles/ztee.dir/__/lib/constraint.c.o[89%] Building C object Src/cmakefiles/ztee.dir/__/lib/logger.c.o[90%] Building C object src/cmakefiles/ztee.dir/__/lib/pbm.c.o[92%] Building C object src/cmakefiles/ ztee.dir/__/lib/random.c.o[93%] Building C object src/cmakefiles/ztee.dir/__/lib/rijndael-alg-fst.c.o[94%] Building C Object src/cmakefiles/ztee.dir/__/lib/xalloc.c.o[96%] Building C object src/cmakefiles/ztee.dir/__/lib/lockfd.c.o[ 97%] Building C object src/cmakefiles/ztee.dir/__/lib/util.c.o[98%] Building C object src/cmakefiles/ztee.dir/__/lib/ queue.c.o[100%] Building C object src/cmakefiles/ztee.dir/__/lib/csv.c.olinking C executable ztee[100%] Built target ztee[email protected]:/data/tools/zmap# make install[15%] Built target zblacklist[81%] Built target zmap[100%] Bui Lt Target Zteeinstall The project...--Install configuration: ""--Installing:/etc/zmap/blacklist.conf--Installing:/et c/zmap/zmap.conf--Installing:/usr/local/sbin/zmap--Installing:/usr/local/sbin/zblacklist--Installing:/usr/ local/sbin/ztee--Installing:/usr/local/share/man/man1/zmap.1[email protected]:/data/tools/zmap# zmapapr 23:51:08.588 [FATAL] zmap:target port (-p) is required for this type of probe
Raspberry PI (Raspberry Pi) installation Zmap