source: networking/netutils/nmap.xml@ bd80dca7

ken/TL2024 lazarus trunk xry111/llvm18
Last change on this file since bd80dca7 was bd80dca7, checked in by Xi Ruoyao <xry111@…>, 3 months ago

nmap: Use a patch to allow building with pcre2

BTW fix another "imp removal" error in the test suite.

  • Property mode set to 100644
File size: 8.6 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY nmap-download-http "https://nmap.org/dist/nmap-&nmap-version;.tar.bz2">
8 <!ENTITY nmap-download-ftp " ">
9 <!ENTITY nmap-md5sum "4f65e08148d1eaac6b1a1482e7185e1d">
10 <!ENTITY nmap-size "11 MB">
11 <!ENTITY nmap-buildsize "138 MB (add 17 MB for tests)">
12 <!ENTITY nmap-time "0.3 SBU (Using parallelism=4; add 0.1 SBU for tests)">
13]>
14
15<sect1 id="nmap" xreflabel="Nmap-&nmap-version;">
16 <?dbhtml filename="nmap.html"?>
17
18
19 <title>Nmap-&nmap-version;</title>
20
21 <indexterm zone="nmap">
22 <primary sortas="a-Nmap">Nmap</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to Nmap</title>
27
28 <para>
29 <application>Nmap</application> is a utility for network exploration
30 and security auditing. It supports ping scanning, port scanning and
31 TCP/IP fingerprinting.
32 </para>
33
34 &lfs121_checked;
35
36 <bridgehead renderas="sect3">Package Information</bridgehead>
37 <itemizedlist spacing="compact">
38 <listitem>
39 <para>
40 Download (HTTP): <ulink url="&nmap-download-http;"/>
41 </para>
42 </listitem>
43 <listitem>
44 <para>
45 Download (FTP): <ulink url="&nmap-download-ftp;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download MD5 sum: &nmap-md5sum;
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download size: &nmap-size;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Estimated disk space required: &nmap-buildsize;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated build time: &nmap-time;
66 </para>
67 </listitem>
68 </itemizedlist>
69
70 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
71 <itemizedlist spacing='compact'>
72 <listitem>
73 <para>
74 Recommended patch: <ulink url=
75 "&patch-root;/nmap-&nmap-version;-pcre_2-1.patch"/>
76 </para>
77 </listitem>
78 </itemizedlist>
79
80 <bridgehead renderas="sect3">Nmap Dependencies</bridgehead>
81
82 <bridgehead renderas="sect4">Recommended</bridgehead>
83 <note>
84 <para>
85 These packages are recommended because if they're not installed, the
86 build process will compile and link against its own (often older)
87 version.
88 </para>
89 </note>
90
91 <para role="recommended">
92 <xref linkend="liblinear"/>,
93 <xref linkend="libpcap"/>,
94 <xref linkend="libssh2"/>,
95 <xref linkend="lua"/>,
96 <xref linkend="pcre2"/>, and
97 <xref linkend="pygobject3"/>
98<!-- libdnet is not recommended, see:
99 http://nmap.org/svn/libdnet-stripped/NMAP_MODIFICATIONS
100-->
101 </para>
102
103 <bridgehead renderas="sect4">Optional</bridgehead>
104 <para role="optional">
105 <ulink url="http://code.google.com/p/libdnet/">libdnet</ulink>
106 </para>
107
108 </sect2>
109
110 <sect2 role="installation">
111 <title>Installation of Nmap</title>
112
113 <para>
114 If and only if the recommended dependency
115 <xref linkend='pcre2'/> is installed, apply a patch to allow building
116 this package with system <xref linkend='pcre2'/> instead of an
117 internal copy of the outdated PCRE1:
118 </para>
119
120 <screen><userinput>patch -Np1 -i ../nmap-&nmap-version;-pcre_2-1.patch</userinput></screen>
121
122 <para>
123 Install <application>Nmap</application> by running the following
124 commands:
125 </para>
126
127<screen><userinput>./configure --prefix=/usr &amp;&amp;
128make</userinput></screen>
129
130 <para>
131 If you wish to run the test suite, run the following command:
132 </para>
133
134 <screen><userinput>sed -e '/import imp/d' \
135 -e 's/^ndiff = .*$/import ndiff/' \
136 -i ndiff/ndifftest.py</userinput></screen>
137
138 <para>
139 To test the results, issue: <command>make check</command> as the
140 <systemitem class="username">root</systemitem> user. Tests need a
141 graphical session.
142 </para>
143
144 <para>
145 Now, as the <systemitem class="username">root</systemitem> user:
146 </para>
147
148<screen role="root"><userinput>make install</userinput></screen>
149
150 </sect2>
151
152<!-- nmap-7.90: everything seems ok without this switch
153 <sect2 role="commands">
154 <title>Command Explanations</title>
155 <para>
156 <parameter>- -with-liblua=included</parameter>: This switch is
157 required to fix compilation with <application>lua</application> 5.4.
158 </para>
159
160 </sect2>
161-->
162
163 <sect2 role="content">
164 <title>Contents</title>
165
166 <segmentedlist>
167 <segtitle>Installed Programs</segtitle>
168 <segtitle>Installed Libraries</segtitle>
169 <segtitle>Installed Directories</segtitle>
170
171 <seglistitem>
172 <seg>
173 ncat, ndiff, nmap, nping, uninstall_ndiff, uninstall_zenmap,
174 zenmap, and 2 symlinks to zenmap: nmapfe and xnmap
175 </seg>
176 <seg>
177 None
178 </seg>
179 <seg>
180 /usr/lib/python&python3-majorver;/site-packages/{radialnet,zenmapCore,zenmapGUI,zenmap-&nmap-version;-py&python3-majorver;.egg-info},
181 and /usr/share/{ncat,nmap,zenmap}
182 </seg>
183 </seglistitem>
184 </segmentedlist>
185
186 <variablelist>
187 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
188 <?dbfo list-presentation="list"?>
189 <?dbhtml list-presentation="table"?>
190
191 <varlistentry id="ncat">
192 <term><command>ncat</command></term>
193 <listitem>
194 <para>
195 is a utility for reading and writing data across networks from
196 the command line
197 </para>
198 <indexterm zone="nmap ncat">
199 <primary sortas="b-ncat">ncat</primary>
200 </indexterm>
201 </listitem>
202 </varlistentry>
203
204 <varlistentry id="ndiff">
205 <term><command>ndiff</command></term>
206 <listitem>
207 <para>
208 is a tool to aid in the comparison of Nmap scans
209 </para>
210 <indexterm zone="nmap ndiff">
211 <primary sortas="b-ndiff">ndiff</primary>
212 </indexterm>
213 </listitem>
214 </varlistentry>
215
216 <varlistentry id="nmap-prog">
217 <term><command>nmap</command></term>
218 <listitem>
219 <para>
220 is a utility for network exploration and security auditing. It
221 supports ping scanning, port scanning and TCP/IP fingerprinting
222 </para>
223 <indexterm zone="nmap nmap-prog">
224 <primary sortas="b-nmap">nmap</primary>
225 </indexterm>
226 </listitem>
227 </varlistentry>
228
229<!-- removed in 7.90, see CHANGELOG
230 <varlistentry id="nmap-update">
231 <term><command>nmap-update</command></term>
232 <listitem>
233 <para>
234 is an updater for Nmap architecture-independent files.
235 </para>
236 <indexterm zone="nmap nmap-update">
237 <primary sortas="b-nmap-update">nmap-update</primary>
238 </indexterm>
239 </listitem>
240 </varlistentry>
241-->
242 <varlistentry id="nping">
243 <term><command>nping</command></term>
244 <listitem>
245 <para>
246 is an open-source tool for network packet generation, response
247 analysis and response time measurement
248 </para>
249 <indexterm zone="nmap nping">
250 <primary sortas="b-nping">nping</primary>
251 </indexterm>
252 </listitem>
253 </varlistentry>
254
255 <varlistentry id="uninstall_ndiff">
256 <term><command>uninstall_ndiff</command></term>
257 <listitem>
258 <para>
259 is a Python script to uninstall <command>ndiff</command>
260 </para>
261 <indexterm zone="nmap uninstall_ndiff">
262 <primary sortas="b-uninstall_ndiff">uninstall_ndiff</primary>
263 </indexterm>
264 </listitem>
265 </varlistentry>
266
267 <varlistentry id="uninstall_zenmap">
268 <term><command>uninstall_zenmap</command></term>
269 <listitem>
270 <para>
271 is a Python script to uninstall <command>zenmap</command>
272 </para>
273 <indexterm zone="nmap uninstall_zenmap">
274 <primary sortas="b-uninstall_zenmap">uninstall_zenmap</primary>
275 </indexterm>
276 </listitem>
277 </varlistentry>
278
279 <varlistentry id="zenmap">
280 <term><command>zenmap</command></term>
281 <listitem>
282 <para>
283 is a Python based graphical nmap frontend viewer
284 </para>
285 <indexterm zone="nmap zenmap">
286 <primary sortas="f-zenmap">zenmap</primary>
287 </indexterm>
288 </listitem>
289 </varlistentry>
290
291 </variablelist>
292
293 </sect2>
294
295</sect1>
Note: See TracBrowser for help on using the repository browser.