diff --git a/nmap-7.92.tar.bz2 b/nmap-7.92.tar.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..7b37e216f5f5b48846cd121641ecc42851b12b0a Binary files /dev/null and b/nmap-7.92.tar.bz2 differ diff --git a/nmap-7.92.tar.bz2.asc b/nmap-7.92.tar.bz2.asc new file mode 100644 index 0000000000000000000000000000000000000000..d7b6e7973792d7739286a004336c41bb3b013b3b --- /dev/null +++ b/nmap-7.92.tar.bz2.asc @@ -0,0 +1,6 @@ +-----BEGIN PGP SIGNATURE----- + +iF0EABECAB0WIQRDbWarmnmEJf2g4/gBr58Da5NV0AUCYQ8ebgAKCRABr58Da5NV +0CueAJ4qDsTIi6sJ521jJutUvrAsqoaSaACfX8sECeGHSnV3VPsTzvj7QxoqiAA= +=TLt7 +-----END PGP SIGNATURE----- diff --git a/nmap.spec b/nmap.spec new file mode 100644 index 0000000000000000000000000000000000000000..c6a9037dd75c3dae284fbb262b4c20782cfa1cc7 --- /dev/null +++ b/nmap.spec @@ -0,0 +1,129 @@ +%define anolis_release 1 +%global _hardened_build 1 + +Name: nmap +Epoch: 3 +Version: 7.92 +Release: %{anolis_release}%{?dist}.1 +Summary: Network exploration tool and security scanner +URL: http://nmap.org/ +# Uses combination of licenses based on GPL license, but with extra modification +License: Nmap +Source0: http://nmap.org/dist/%{name}-%{version}.tar.bz2 +Source1: https://nmap.org/dist/sigs/%{name}-%{version}.tar.bz2.asc +Source2: https://svn.nmap.org/nmap/docs/nmap_gpgkeys.txt + +BuildRequires: automake make +BuildRequires: autoconf +BuildRequires: gcc-c++ +BuildRequires: gettext-devel +BuildRequires: libpcap-devel +BuildRequires: libssh2-devel +BuildRequires: libtool +BuildRequires: lua-devel +BuildRequires: openssl-devel +BuildRequires: pcre-devel +BuildRequires: zlib-devel +BuildRequires: gnupg2 +Requires: %{name}-ncat = %{epoch}:%{version}-%{release} + +Obsoletes: nmap-frontend +Obsoletes: nmap-ndiff + +%define pixmap_srcdir zenmap/share/pixmaps + +%description +Nmap is a utility for network exploration or security auditing. It supports +ping scanning (determine which hosts are up), many port scanning techniques +(determine what services the hosts are offering), and TCP/IP fingerprinting +(remote host operating system identification). Nmap also offers flexible target +and port specification, decoy scanning, determination of TCP sequence +predictability characteristics, reverse-identd scanning, and more. In addition +to the classic command-line nmap executable, the Nmap suite includes a flexible +data transfer, redirection, and debugging tool (netcat utility ncat), a utility +for comparing scan results (ndiff), and a packet generation and response +analysis tool (nping). + +%package ncat +Summary: Nmap's Netcat replacement +Requires(post): %{_sbindir}/alternatives +Requires(preun): %{_sbindir}/alternatives +Obsoletes: nc < 1.109.20120711-2 +Obsoletes: nc6 < 1.00-22 +Provides: nc nc6 + +%description ncat +Ncat is a feature packed networking utility which will read and +write data across a network from the command line. It uses both +TCP and UDP for communication and is designed to be a reliable +back-end tool to instantly provide network connectivity to other +applications and users. Ncat will not only work with IPv4 and IPv6 +but provides the user with a virtually limitless number of potential +uses. + + +%prep +%{gpgverify} --keyring=%{SOURCE2} --signature='%{SOURCE1}' --data='%{SOURCE0}' +%autosetup -p1 + + +#be sure we're not using tarballed copies of some libraries +#rm -rf liblua libpcap libpcre macosx mswin32 ###TODO### + +rm -rf libpcap libpcre macosx mswin32 libssh2 libz + +%build +export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" +export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" +### TODO ## configure --with-libpcap=/usr ###TODO### +%configure --with-libpcap=yes --with-liblua=included \ + --without-zenmap --without-ndiff \ + --with-libssh2=yes \ + --enable-dbus + +%make_build + +sed -i 's/-md/-mf/' nping/docs/nping.1 + +%install +#prevent stripping - replace strip command with 'true' +make DESTDIR=%{buildroot} STRIP=true install + +rm -f %{buildroot}%{_datadir}/ncat/ca-bundle.crt +rmdir %{buildroot}%{_datadir}/ncat + +touch %{buildroot}%{_mandir}/man1/nc.1.gz +touch %{buildroot}%{_bindir}/nc + +%find_lang nmap --with-man + +%post ncat +%{_sbindir}/alternatives --install %{_bindir}/nc nc %{_bindir}/ncat 10 \ + --slave %{_mandir}/man1/nc.1.gz nc-man %{_mandir}/man1/ncat.1.gz + +%preun ncat +if [ $1 -eq 0 ]; then + %{_sbindir}/alternatives --remove nc %{_bindir}/ncat +fi + +%files -f nmap.lang +%license LICENSE +%doc docs/README +%doc docs/nmap.usage.txt +%{_bindir}/nmap +%{_bindir}/nping +%{_mandir}/man1/nmap.1.gz +%{_mandir}/man1/nping.1.gz +%{_datadir}/nmap + +%files ncat +%license LICENSE +%doc ncat/docs/AUTHORS ncat/docs/README ncat/docs/THANKS ncat/docs/examples +%ghost %{_bindir}/nc +%{_bindir}/ncat +%ghost %{_mandir}/man1/nc.1.gz +%{_mandir}/man1/ncat.1.gz + +%changelog +* Fri Apr 15 2022 zhang xianting - 3:7.92-1 +- Initial build for Anolis V23 diff --git a/nmap_gpgkeys.txt b/nmap_gpgkeys.txt new file mode 100644 index 0000000000000000000000000000000000000000..6aa509445dc35de1caa7efee46408f41a506c7da --- /dev/null +++ b/nmap_gpgkeys.txt @@ -0,0 +1,95 @@ +GPG detached signatures and MD5/SHA-1 hashes for each Nmap release are +available from https://nmap.org/dist/sigs/?C=M;O=D . The +releases are signed by the Nmap project GPG key (KeyId 6B9355D0). +Some messages to Nmap mailing lists may be signed by Nmap author and +maintainer Fyodor. Fyodor's KeyID is 33599B5F. Those two keys and +their fingerprints are reproduced below. The latest version of this +file is always available at +https://nmap.org/data/nmap_gpgkeys.txt . + +To verify a file with GPG, obtain and import the keys with a command +such as "gpg --import nmap_gpgkeys.txt" and then verify the obtained +files as shown in this example: + + > gpg --verify nmap-3.81.tar.bz2.gpg.txt nmap-3.81.tar.bz2 + gpg: Signature made Sat 23 Apr 2005 11:34:32 PM PDT using DSA key ID 6B9355D0 + gpg: Good signature from "Nmap Project Signing Key (http://www.insecure.org/)" + +Here are the GPG keys for the Nmap Project and Fyodor: + +pub 1024D/6B9355D0 2005-04-24 + Key fingerprint = 436D 66AB 9A79 8425 FDA0 E3F8 01AF 9F03 6B93 55D0 +uid Nmap Project Signing Key (http://www.insecure.org/) +sub 2048g/A50A6A94 2005-04-24 + +-----BEGIN PGP PUBLIC KEY BLOCK----- +Version: GnuPG v1.4.1 (GNU/Linux) + +mQGiBEJrBfgRBADogo5DEoGsm2C3OC3NoKBQ0J7Ixp/cymuMeGQmDhqP6Vfmxmso +BGln4nhDr3WMDW76Q2p6dHTZEbWx3NAna8q3wa3PrPTVRcmEgEgUd8y086I33NqW +BV5Fz4bvPWtSGc/4MxXwac+XqrGY+iTkaO3sd4/eEKa/KkJlXpIGAbGbZwCgq9HS +bHctYmUWmvz1YXJmFlQvnTsD/RRyTlnQ/AOpq2XPYy5AlUzHMWAef2Dt+wXYKSjp +zvqVWtl8QigrWSOP3ia39v+rDUF/CHb1U8mmx9XzRpy9KgS99Wi4IUnBCYM/e/IP +K5ReAoNoPMjLmLU4cxYzOxF1yzuSFvhXiKVy/QW6Qo9AP9YdlhlxxXrJA+HrAcXb +UE/SBACsoJRsIEyzcfm7Y/KA11enEhxo2nVZ/HpJCq8RHcaXxWFaCglKlydNaw1S +vlZkLggRXQrig6aHgVva3WC+gSYMk+SPtzYNrjWiDE+v+DoEFdNEuO8DXScTMGmB +pmUtZNWGoK9ewo9kE/ccGDl6lmrxfC9x2nYFHlCvV/PJrbTbfLQzTm1hcCBQcm9q +ZWN0IFNpZ25pbmcgS2V5IChodHRwOi8vd3d3Lmluc2VjdXJlLm9yZy8piF4EExEC +AB4FAkJrBfgCGwMGCwkIBwMCAxUCAwMWAgECHgECF4AACgkQAa+fA2uTVdBGbACf +e4qpukKV23yZjlbjEzJeCN8Gyh4AniXrbP7M+ul6zzWTFBgB6heYjKT8iEYEEBEC +AAYFAkJrGVAACgkQGvbsUDNZm1+kXgCfbBGI8UxrwiKRbtgYHOUYd6u5qdwAnRFZ +ryKFEzkuQGBQWfd6ys6ygjgtuQINBEJrBfoQCADUNWhc7n68jANoWAWl38itVGqI +qZEEvchV3m/uslVD0BSn/KRSY9/cZbMTX2hV8eemlGV2suJW4jWB0cQXjZQap4OL +WmMexeFA+q1YE803k0X4XgzRuJXkLaX3isCJGbgFRF6IfWmK38/gXz4YVBQXFQXy +4M2Y/o2GBsq8cQVgRAZNTQvN5oh2u8WN0wANk+iKySKqBG3Twgh4BbTaoajidSFR +hv3xFPw6dQFTd3fYyDlMcOQQcAdzzlS6hTyZuZLOXLdWckilnlP2/orQ5wUs6nXd +QeWuxME56z2vwNNeufoLWqNUlR1/IyRAfownDuvdjxYeIgsDd4DP+jInCpPzAAMG +CACZ8ewQdpWJ/4CgC7OT865DurNIQH0udm/CSB0mb3v0IxuuXMJml2yMi2NkJh8X +KMaluTznz2x8kpPXgmhu+qosAi+YUbdbP+/ilY6+WqLVQewSr7GmxJy6EWW5s2+S +3V7yneiDQXBUBMr4WwjfOxX7m/+Io7RSLQaWNq82C2fSukqpootVgLV7CaVJMHvZ +iA+3AL32N1d6O6h8bUqEyfOw3kIr19e0OhqWSpQrZs3tkUpwH7/vn/4NkAxjodkP +JChf1Y89pU98GBC9JxF+mc2mnDVUnUs31S8kQ/6PhZP8ldn47W2CakHSA3S/M99A +gltKiG6MR2z018fqD8FJC3tLiEkEGBECAAkFAkJrBfoCGwwACgkQAa+fA2uTVdBM +QgCfciVPJeohzn5mJ4WGE/6B1CyCOIYAn2ghTW1IKTP+tfOgxVg/p8HJOoiz +=18Dk +-----END PGP PUBLIC KEY BLOCK----- + + +pub 1024D/33599B5F 2005-04-24 + Key fingerprint = BB61 D057 C0D7 DCEF E730 996C 1AF6 EC50 3359 9B5F +uid Fyodor +sub 2048g/D3C2241C 2005-04-24 + +-----BEGIN PGP PUBLIC KEY BLOCK----- +Version: GnuPG v1.4.1 (GNU/Linux) + +mQGiBEJrBG4RBADfjVQenTh2v1NK2N0Wi83pGMm0u/IDDX8eT8lxSR+XdevdcK+F +bRhVh+tMhTo1T2OoZkBfYj+OVCWsBZlIxZtGycWaGAwn3MbUEiUJD0YVv4pm4KVk +HEZSOYEkzUFIw3IP03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