Chinaunix首页 | 论坛 | 博客
  • 博客访问: 987812
  • 博文数量: 78
  • 博客积分: 1473
  • 博客等级: 上尉
  • 技术积分: 2124
  • 用 户 组: 普通用户
  • 注册时间: 2012-05-23 12:50
文章分类

全部博文(78)

文章存档

2016年(6)

2015年(2)

2014年(13)

2013年(4)

2012年(53)

分类: 网络与安全

2014-09-04 18:00:34

官方文档地址:

准备:保证有比较顺畅的更新源,可以更新系统,下载安装包。

 

安装

第一步:sudo apt-get install build-essential cmake libgmp3-dev libpcap-dev gengetopt byacc flex git dwarfdump

正在读取软件包列表... 完成

正在分析软件包的依赖关系树      

正在读取状态信息... 完成      

下列软件包是自动安装的并且现在不需要了:

  baobab caribou caribou-antler dnsmasq-base empathy empathy-common

  fonts-cantarell gcalctool gdm3 gnome-backgrounds gnome-dictionary

  gnome-disk-utility gnome-font-viewer gnome-icon-theme-extras

  gnome-packagekit gnome-packagekit-data gnome-screenshot gnome-system-log

  gucharmap libavahi-gobject0 libavahi-ui-gtk3-0 libcaribou-gtk-module

  libcaribou-gtk3-module libchamplain-0.12-0 libchamplain-gtk-0.12-0

  libgdict-1.0-6 libgdict-common libgdu-gtk0 libgeocode-glib0 libjim0debian2

  libmozjs22d libmozjs24d libnl-route-3-200 libtelepathy-farstream2

  libunique-3.0-0 libwireshark2 libwiretap2 libwsutil2

  mobile-broadband-provider-info modemmanager nautilus-sendto-empathy

  network-manager network-manager-gnome sound-theme-freedesktop

  telepathy-gabble telepathy-logger telepathy-salut usb-modeswitch

  usb-modeswitch-data vino wpasupplicant xulrunner-22.0 xulrunner-24.0

Use 'apt-get autoremove' to remove them.

将会安装下列额外的软件包:

  libgmp-dev libgmpxx4ldbl libpcap0.8-dev

建议安装的软件包:

  libgmp10-doc libmpfr-dev

下列【新】软件包将被安装:

  gengetopt libgmp-dev libgmp3-dev libgmpxx4ldbl libpcap-dev libpcap0.8-dev

升级了 0 个软件包,新安装了 6 个软件包,要卸载 0 个软件包,有 15 个软件包未被升级。

需要下载 1,253 kB 的软件包。

解压缩后会消耗掉 3,444 kB 的额外空间。

您希望继续执行吗?[Y/n]Y

获取:1 kali/main libgmpxx4ldbl amd64 2:5.0.5+dfsg-2 [21.6 kB]

获取:2 kali/main gengetopt amd64 2.22.5-1 [322 kB]

获取:3 kali/main libgmp-dev amd64 2:5.0.5+dfsg-2 [610 kB]

获取:4 kali/main libgmp-dev amd64 2:5.0.5+dfsg-2 [610 kB]

获取:5 kali/main libgmp3-dev amd64 2:5.0.5+dfsg-2 [13.7 kB]

获取:6 kali/main libpcap0.8-dev amd64 1.3.0-1 [264 kB]

获取:7 kali/main libpcap-dev all 1.3.0-1 [22.2 kB]

第二步:

git clone git://github.com/zmap/zmap.git

root@kali:~# git clone git://github.com/zmap/zmap.git

正克隆到 'zmap'...

remote: Counting objects: 2935, done.

remote: Compressing objects: 100% (29/29), done.

remote: Total 2935 (delta 13), reused 0 (delta 0)

Receiving objects: 100% (2935/2935), 868.00 KiB | 141 KiB/s, done.

Resolving deltas: 100% (1934/1934), done.

第三步:cd zmap/

root@kali:~# cd zmap/

root@kali:~/zmap# ls

10gigE.md  CHANGELOG       conf      INSTALL  LICENSE  src

AUTHORS    CMakeLists.txt  examples  lib      README   test

第四步:cmake -DENABLE_HARDENING=ON

root@kali:~/zmap# cmake -DENABLE_HARDENING=ON

-- The C compiler identification is GNU 4.7.2

-- Check for working C compiler: /usr/bin/gcc

-- Check for working C compiler: /usr/bin/gcc -- works

-- Detecting C compiler ABI info

-- Detecting C compiler ABI info - done

-- Configuring done

-- Generating done

CMake Warning:

  Manually-specified variables were not used by the project:

 

    ENABLE_HARDENING

 

 

-- Build files have been written to: /root/zmap

第五步:make

root@kali:~/zmap# make

[  2%] Generating parser.c

[  5%] Generating zopt.h

[  7%] Generating lexer.c

Scanning dependencies of target zmap

[ 10%] Building C object src/CMakeFiles/zmap.dir/aesrand.c.o

[ 12%] Building C object src/CMakeFiles/zmap.dir/cyclic.c.o

[ 15%] Building C object src/CMakeFiles/zmap.dir/expression.c.o

[ 17%] Building C object src/CMakeFiles/zmap.dir/fieldset.c.o

[ 20%] Building C object src/CMakeFiles/zmap.dir/filter.c.o

[ 22%] Building C object src/CMakeFiles/zmap.dir/get_gateway.c.o

[ 25%] Building C object src/CMakeFiles/zmap.dir/iterator.c.o

[ 27%] Building C object src/CMakeFiles/zmap.dir/monitor.c.o

[ 30%] Building C object src/CMakeFiles/zmap.dir/recv.c.o

[ 32%] Building C object src/CMakeFiles/zmap.dir/send.c.o

[ 35%] Building C object src/CMakeFiles/zmap.dir/shard.c.o

[ 37%] Building C object src/CMakeFiles/zmap.dir/socket.c.o

[ 40%] Building C object src/CMakeFiles/zmap.dir/state.c.o

[ 42%] Building C object src/CMakeFiles/zmap.dir/summary.c.o

[ 45%] Building C object src/CMakeFiles/zmap.dir/validate.c.o

[ 47%] Building C object src/CMakeFiles/zmap.dir/zmap.c.o

[ 50%] Building C object src/CMakeFiles/zmap.dir/zopt_compat.c.o

[ 52%] Building C object src/CMakeFiles/zmap.dir/lexer.c.o

[ 55%] Building C object src/CMakeFiles/zmap.dir/parser.c.o

[ 57%] Building C object src/CMakeFiles/zmap.dir/probe_modules/module_icmp_echo.c.o

[ 60%] Building C object src/CMakeFiles/zmap.dir/probe_modules/module_tcp_synscan.c.o

[ 62%] Building C object src/CMakeFiles/zmap.dir/probe_modules/module_udp.c.o

[ 65%] Building C object src/CMakeFiles/zmap.dir/probe_modules/packet.c.o

[ 67%] Building C object src/CMakeFiles/zmap.dir/probe_modules/probe_modules.c.o

[ 70%] Building C object src/CMakeFiles/zmap.dir/output_modules/module_csv.c.o

[ 72%] Building C object src/CMakeFiles/zmap.dir/output_modules/output_modules.c.o

[ 75%] Building C object src/CMakeFiles/zmap.dir/__/lib/blacklist.c.o

[ 77%] Building C object src/CMakeFiles/zmap.dir/__/lib/constraint.c.o

[ 80%] Building C object src/CMakeFiles/zmap.dir/__/lib/logger.c.o

[ 82%] Building C object src/CMakeFiles/zmap.dir/__/lib/pbm.c.o

[ 85%] Building C object src/CMakeFiles/zmap.dir/__/lib/random.c.o

[ 87%] Building C object src/CMakeFiles/zmap.dir/__/lib/rijndael-alg-fst.c.o

[ 90%] Building C object src/CMakeFiles/zmap.dir/__/lib/xalloc.c.o

[ 92%] Building C object src/CMakeFiles/zmap.dir/__/lib/lockfd.c.o

[ 95%] Building C object src/CMakeFiles/zmap.dir/__/lib/util.c.o

[ 97%] Building C object src/CMakeFiles/zmap.dir/socket-linux.c.o

[100%] Building C object src/CMakeFiles/zmap.dir/recv-pcap.c.o

Linking C executable zmap

[100%] Built target zmap

第六步:make install

root@kali:~/zmap# make install

[100%] Built target zmap

Install the project...

-- Install configuration: ""

-- Installing: /etc/zmap/zmap.conf

-- Installing: /etc/zmap/blacklist.conf

-- Installing: /usr/local/sbin/zmap

-- Installing: /usr/local/share/man/man1/zmap.1

 安装完毕。

 

原文链接:

 

ps:对此文章感兴趣的读者,可以加qq群:Hacking:303242737;Hacking-2群:147098303Hacking-3群:31371755hacking-4:201891680;Hacking-5群:316885176

阅读(10074) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~