How To Install node-auth-header on Kali Linux
Introduction
In this tutorial we learn how to install node-auth-header
on Kali Linux.
What is node-auth-header
node-auth-header is:
auth-header deals with obscene HTTP “Authorization” and “WWW-Authenticate” headers.
The HTTP “Authorization” and “WWW-Authenticate” family of headers are both pretty nightmareish; there has been, up until recently, no wide consensus about how they should be formatted and so parsing them is lots of fun if fun is pulling your hair out.
This library provides an implementation of RFC7235 which allows for the parsing of many known existing authorization headers (like Basic and Digest) as well as any future ones which follow the standard. Noteably, this library is less strict than it could be to parse some of these legacy formats.
In addition to the format of the header itself being in flux, WWW-Authenticate has its own nasty surprise: sometimes multiple authentication prompts can appear in one header, sometimes they can appear in multiple headers; we ONLY support the latter case since trying to disambiguate between a second prompt and parameters for the first is just about impossible.
This package provides auth-header usable with Node.js - an event-based server-side JavaScript engine.
There are three methods to install node-auth-header
on Kali Linux. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install node-auth-header Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install node-auth-header
using apt-get
by running the following command:
sudo apt-get -y install node-auth-header
Install node-auth-header Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install node-auth-header
using apt
by running the following command:
sudo apt -y install node-auth-header
Install node-auth-header Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install node-auth-header
using aptitude
by running the following command:
sudo aptitude -y install node-auth-header
How To Uninstall node-auth-header on Kali Linux
To uninstall only the node-auth-header
package we can use the following command:
sudo apt-get remove node-auth-header
Uninstall node-auth-header And Its Dependencies
To uninstall node-auth-header
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove node-auth-header
Remove node-auth-header Configurations and Data
To remove node-auth-header
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge node-auth-header
Remove node-auth-header configuration, data, and all of its dependencies
We can use the following command to remove node-auth-header
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge node-auth-header
Dependencies
node-auth-header have the following dependencies:
References
Summary
In this tutorial we learn how to install node-auth-header
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.