Skip to content

Commit 5d58371

Browse files
committed
remove unuseful data from nmap services file
1 parent 346967e commit 5d58371

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,9 @@ pack_core() {
206206
for f in $nmap_data; do
207207
cp "${jni_root}/nmap/$f" "${out}/tools/nmap/" >&3 2>&1 || die
208208
done
209+
210+
# strip out useless data
211+
sed -i -E '/^unknown/d;/^\s*#/d' "${out}/tools/nmap/nmap-services" >&3 2>&1 || die
209212

210213
mkdir -p "${out}/tools/ettercap/share" || die
211214

0 commit comments

Comments
 (0)