How To Install slowhttptest on CentOS 8

slowhttptest is An Application Layer DoS attack simulator

Introduction

In this tutorial we learn how to install slowhttptest on CentOS 8.

What is slowhttptest

SlowHTTPTest is a highly configurable tool that simulates some Application Layer Denial of Service attacks. It implements most common low-bandwidth Application Layer DoS attacks, such as slow-loris, Slow HTTP POST, Slow Read attack (based on TCP persist timer exploit) by draining concurrent connections pool, as well as Apache Range Header attack by causing very significant memory and CPU usage on the server.

We can use yum or dnf to install slowhttptest on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install slowhttptest.

Install slowhttptest on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install slowhttptest using dnf by running the following command:

sudo dnf -y install slowhttptest

Install slowhttptest on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install slowhttptest using yum by running the following command:

sudo yum -y install slowhttptest

How To Uninstall slowhttptest on CentOS 8

To uninstall only the slowhttptest package we can use the following command:

sudo dnf remove slowhttptest

slowhttptest Package Contents on CentOS 8

/usr/bin/slowhttptest
/usr/lib/.build-id
/usr/lib/.build-id/af
/usr/lib/.build-id/af/51e91eb423092ee893f94e4918aa53b7310e86
/usr/share/doc/slowhttptest
/usr/share/doc/slowhttptest/README.md
/usr/share/licenses/slowhttptest
/usr/share/licenses/slowhttptest/COPYING
/usr/share/licenses/slowhttptest/LICENSE
/usr/share/man/man1/slowhttptest.1.gz

References

Summary

In this tutorial we learn how to install slowhttptest on CentOS 8 using yum and dnf.