使用 libxslt 通过 xml 生成 Nmap HTML 报告
Contents
libxslt
libxslt command line tool: xsltproc
自动安装
Red Hat / CentOS / Fedora
yum install libxslt -y
手动安装
安装依赖
m4
http://www.gnu.org/software/m4/m4.html
wget http://mirrors.kernel.org/gnu/m4/m4-latest.tar.gz \
&& mkdir m4-latest \
&& tar -xzvf m4-latest.tar.gz -C ./m4-latest \
&& cd m4-latest \
&& ./configure --prefix=/usr/local
make && make install
cd ..
autoconf
http://www.gnu.org/software/autoconf
wget http://mirrors.kernel.org/gnu/autoconf/autoconf-latest.tar.gz \
&& tar -xzvf autoconf-latest.tar.gz \
&& cd autoconf-latest \
&& ./configure --prefix=/usr/local
make && make install
cd ..
# 检查
autoconf -h
libtool
http://www.gnu.org/software/libtool/
wget http://mirrors.kernel.org/gnu/libtool/libtool-2.4.6.tar.gz \
&& tar xzvf libtool-2.4.6.tar.gz \
&& cd libtool-2.4.6 \
&& ./configure --prefix=/usr/local
make && make install
cd ..
# 检查
libtool -h
help2man
https://www.gnu.org/software/help2man/
automake
http://www.gnu.org/software/automake/
遇到的问题
help2man: can't get
–help’ info from automake-1.16`
wget https://ftp.gnu.org/gnu/help2man/help2man-1.47.7.tar.xz \
&& tar xvJf help2man-1.47.7.tar.xz \
&& cd help2man-1.47.7 \
&& ./configure --prefix=/usr/local
make && make install
cd ..
libxslt
git clone https://gitlab.gnome.org/GNOME/libxslt/
cd libxslt
./autogen.sh
使用
另外,如果是 Widnows 10 系统可以尝试直接用 Edge 打开 nmap xml 文件。
xsltproc ./demo.xml -o demo.html
xsltproc -o r1.html beautiful.xsl r1.xml
VPGame DevOps Team
beautiful_nmap_xsl.zip 下载
nmap-bootstrap-xsl
https://github.com/honze-net/nmap-bootstrap-xsl/
其他在线工具
XSL Transformer – XSLT
https://www.freeformatter.com/xsl-transformer.html
参考资料
Chapter 13. Nmap Output Formats: Creating HTML Reports
https://nmap.org/book/output-formats-output-to-html.html
XSLT
http://xmlsoft.org/XSLT/downloads.html
libxslt – gitlab
https://gitlab.gnome.org/GNOME/libxslt/
初学者连载系列之十三:手动安装m4, autoconf, automake, libtool
https://blog.csdn.net/u011334621/article/details/44035295
如何给领导呈现更好看的Nmap扫描报告
https://www.secpulse.com/archives/76226.html
Leave a Reply