实验按照对每个工具运行每个基准
RAZOR
- 获取镜像
sudo docker pull chenxiong/razor:0.01
- 运行镜像
sudo docker run --name container_name -d -it chenxiong/razor:0.01
- 更新razor仓库
- 替换debian源为阿里源
sudo vim /etc/apt/sources.list
deb http://mirrors.aliyun.com/debian/ buster main non-free contrib
deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
deb http://mirrors.aliyun.com/debian-security buster/updates main
deb-src http://mirrors.aliyun.com/debian/ buster main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian-security buster/updates main
- 下载Clang
apt install clang
nginx
lighttpd
- 克隆并更新仓库
# initial checkout
git clone https://git.lighttpd.net/lighttpd/lighttpd1.4.git
cd lighttpd1.4
# subsequent updates (to obtain latest source)
#cd lighttpd1.4
git pull
- 更新依赖
apt-get build-dep lighttpd
- automake
#cd lighttpd1.4
./autogen.sh
CC=clang ./configure -C --prefix=/usr/local # ./configure --help for additional options
make -j 4
make check
- 出现问题
configure: error: pcre2-config not found, install the pcre2-devel package or build with --without-pcre2
解决方法:apt install libpcre2-dev
- 编译完成后,在
src
目录下生成lighttpd
可执行文件 - 结合
razor
运行
nmap
CC=clang CXX=clang++ ./configure
make