Skip to content

Commit f1b07f7

Browse files
author
Wolfgang Hotwagner
committed
added static compiled nmap
1 parent aee9a5c commit f1b07f7

File tree

4 files changed

+23
-0
lines changed

4 files changed

+23
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ postexploit_files:
2828
# password: haveityourway
2929
- name: pam_unix.so
3030
path: linux-pam-backdoor/pam_unix.so
31+
- name: nmap
32+
path: Nmap/nmap-7.94_amd64
3133
3234
postexploit_destpath: "/var/www/html"
3335
postexploit_apache: True

defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ postexploit_files:
1010
# password: haveityourway
1111
- name: pam_unix.so
1212
path: linux-pam-backdoor/pam_unix.so
13+
- name: nmap
14+
path: Nmap/nmap-7.94_amd64
1315

1416
postexploit_destpath: "/var/www/html"
1517
postexploit_apache: True

files/Nmap/nmap-7.94_amd64

5.39 MB
Binary file not shown.

files/Nmap/nmap_static_compile.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
WORKDIR="~/tmp"
4+
5+
6+
cd $WORKDIR
7+
8+
sudo apt install build-essential wget
9+
10+
wget https://nmap.org/dist/nmap-7.94.tar.bz2
11+
12+
tar xvfj nmap-7.94.tar.bz2
13+
14+
cd nmap-7.94
15+
16+
export CFLAGS="-march=core2 -O2 -fomit-frame-pointer -pipe -fPIC"
17+
export CXXFLAGS="-march=core2 -O2 -fomit-frame-pointer -pipe -fPIC"
18+
./configure --without-subversion --without-liblua --without-zenmap --with-pcre=/usr --with-libpcap=included --with-libdnet=included --without-ndiff --without-nmap-update --without-ncat --without-liblua --without-nping --without-openssl
19+
make static

0 commit comments

Comments
 (0)