Kali Linux 渗透测试-nmap与zmap

Nmap-主机扫描类型

NMAP-端口扫描技术

NMAP 扫描命令格式

Nmap-主机扫描

NMAP-端口扫描

NMAP-操作系统探测

NMAP-服务程序探测

NMAP---一些高级选项

NMAP---脚本使用

ZMAP

ZMAP-安装

ZMAP—常规选项

ZMAP—网络选项

ZMAP—附加选项

ZMAP-简单案例

ZMAP ICMP扫描

ZMAP--UDP扫描

ZMAP—使用配置文件

Kali linux系列之 zmap 安装

Kali linux系列之 zmap 安装

官方文档地址:https://zmap.io/

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

安装

第一步: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 http://mirror.nus.edu.sg/kali/kali/ kali/main libgmpxx4ldbl amd64 2:5.0.5+dfsg-2 [21.6 kB]

获取:2 http://mirror.nus.edu.sg/kali/kali/ kali/main gengetopt amd64 2.22.5-1 [322 kB]

获取:3 http://mirror.nus.edu.sg/kali/kali/ kali/main libgmp-dev amd64 2:5.0.5+dfsg-2 [610 kB]

获取:4 http://mirror.nus.edu.sg/kali/kali/ kali/main libgmp-dev amd64 2:5.0.5+dfsg-2 [610 kB]

获取:5 http://mirror.nus.edu.sg/kali/kali/ kali/main libgmp3-dev amd64 2:5.0.5+dfsg-2 [13.7 kB]

获取:6 http://mirror.nus.edu.sg/kali/kali/ kali/main libpcap0.8-dev amd64 1.3.0-1 [264 kB]

获取:7 http://mirror.nus.edu.sg/kali/kali/ 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

安装完毕。

原文发布于微信公众号 - 玄魂工作室(xuanhun521)

原文发表时间:2018-11-26

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

发表于

我来说两句

0 条评论
登录 后参与评论

相关文章

来自专栏iOS Developer

FFmpeg-iOS推流器的简单封装

22440
来自专栏JavaEdge

Shiro 实战(一)-简介介绍

Authentication: Sometimes referred to as ‘login’, this is the act of proving a u...

10530
来自专栏冷冷

JAVA服务端配置允许跨域请求

CORS是一个W3C标准,全称是”跨域资源共享”(Cross-origin resource sharing)。 它允许浏览器向跨源服务器,发出XMLHttpR...

81160
来自专栏IT笔记

SpringBoot开发案例之微信小程序录音上传

书接上回的《SpringBoot开发案例之微信小程序文件上传》,正常的业务流程是,口语测评需要学生通过前端微信小程序录入一段音频,通过调用第三方音频处理服务商进...

1K80
来自专栏Ceph对象存储方案

由OSD class配置引发的PG异常状态修复

ceph版本12.2.8,一个PG卡在remapped状态,但是集群状态是OK的,为了修复这个remapped状态,才有了下面的操作。

22630
来自专栏青玉伏案

PHP中AJAX的使用(完整实例【大牛可飘过】)

  有一段时间不写关于AJAX的东西了,最近和同学参加个比赛,要做一个类似博客的东西,用到了AJAX的东西,在写东西之前为了再熟悉一下AJAX,自己做了个关于A...

20680
来自专栏信安之路

必知必会的安全工具

渗透测试中手工测试固然重要,但是测试工具也是必不可少的,一个好的工具可以让我们在渗透测试中事半功倍,俗话说,工欲善其事必先利其器,所以工具是很重要的,本文就主要...

13800
来自专栏吴伟祥

Linux命令缩写英文对照记忆(〇) 转

13920
来自专栏Android小菜鸡

解决横竖屏切换导致自定义View切换Fragment失败

  自定义的BottomSelectView,在切换横竖屏后,底部选择器点击后Fragment不切换,失去效果。

11040
来自专栏Java成神之路

hadoop_异常_01_ Unable to determine address of the host-falling back to "localhost" address java.net.U

1.Unable to determine local hostname -falling back to "localhost"

9300

扫码关注云+社区

领取腾讯云代金券