How to Install BlackDir-Framework in Linux?
Last Updated :
23 Aug, 2021
Vulnerability scanning is the process of discovering, analyzing, and reporting on security flaws and vulnerabilities. Vulnerability scans can be run frequently on assets to find known vulnerabilities are detected and patched. The vulnerability scanning process can be performed in Automated and Manual ways. In the Automated way, various automated scripts or tools provide the Vuln Scan process from beginning to end. At the final stage, you get the report of detected vulnerabilities and the impact of exposure. BlackDir-Framework is a suite that helps the penetration testers with Vulnerability Scanning. BalckDir-Framework is an automated tool designed in the Python language. This Framework supports various vulnerability scanning such as XSS, SQL, HTML Injection, etc. Along with Vulnerability detection, this Framework allows gathering information about the target domain.
Note: Make Sure You have Python Installed on your System, as this is a python-based tool. Click to check the Installation process: Python Installation Steps on Linux
Features of BlackDir-Framework
- BlackDir-Framework allows automated Vulnerability Scanning.
- BlackDir-Framework supports XSS, SQL, HTML Injection vulnerabilities scanning
- BlackDir-Framework is an open-source tool and free to use.
- BlackDir-Framework gathers the port information about the target.
- BlackDir-Framework gathers the associated subdomains of the primary domain.
- BlackDir-Framework supports the Brute Force WordPress feature.
- BlackDir-Framework supports Hash Encryption like [md4,md5,sha1,sha256,sha384,sha512].
Installation of BlackDir-Framework Suite in Kali Linux OS
Step 1: Check whether Python Environment is Established or not, use the following command.
python3

Step 2: Open up your Kali Linux terminal and move to Desktop using the following command.
cd Desktop

Step 3: You are on Desktop now create a new directory called BlackDir-Framework using the following command. In this directory, we will complete the installation of the BlackDir-Framework tool.
mkdir BlackDir-Framework

Step 4: Now switch to the BlackDir-Framework directory using the following command.
cd BlackDir-Framework

Step 5: Now you have to install the tool. You have to clone the tool from Github.
git clone https://github.com/RedVirus0/BlackDir-Framework.git

Step 6:The tool has been downloaded successfully in the BlackDir-Framework directory. Now list out the contents of the tool by using the below command.
ls

Step 7: You can observe that there is a new directory created of the BlackDir-Framework tool that has been generated while we were installing the tool. Now move to that directory using the below command:
cd BlackDir

Step 8: Once again to discover the contents of the tool, use the below command.
ls

Step 9: Download the required packages for running the tool, use the following command.
pip3 install -r requirements.txt

Step 10: Now we are done with our installation, Use the below command to view the help (gives a better understanding of tool) index of the tool.
python3 BlackDir.py -h

Working with BlackDir-Framework on Kali Linux OS
Example 1: Spidering the Target
python3 BlackDir.py --spider http://geeksforgeeks.org
1. In this example, We will be spidering our Target domain geeksforgeeks.org for some sensitive directories or files hosted on the webserver.

Example 2: Enumerating Subdomains
python3 BlackDir.py --subdomain geeksforgeeks.org
1. In this example, We will be Enumerating Subdomains associated with the main domain geeksforgeeks.org.

Example 3: Checking XSS Vulnerability
python3 BlackDir.py --xss "http://vulnweb.com/search.php?test=query"
1. In this example, We will be testing the target domain for the XSS vulnerability flaw. Our target is http://vulnweb.com/search.php?test=query.

2. In the below Screenshot, You can see that our target domain has the parameter named ‘query’. The tool will insert some malicious JavaScript code to test the availability of XSS.

python3 BlackDir.py –xss “https://practice.geeksforgeeks.org/topic-tags/?ref=shm”
1. In this Example, Our target is https://practice.geeksforgeeks.org/topic-tags/?ref=shm, this URL has a parameter named ‘ref’ which will be tested by inserting malicious JavaScript code into it.

BlackDir-Framework suite is a complete all-in-one bundle that provides the Vulnerability Scanning and the Information Collection of the Target domain. We can even use Google Dorking for Advanced searches. This suite also supports reverse IP Lookup, Port Scan, Subdomain Enumeration. So we can use this Suite for Vulnerability Scanning and along with the Information Gathering phase.
Similar Reads
How to Install Darktable in Linux
Darktable is a free and open-source photographic workflow program and RAW developer. A photographer's virtual light table and darkroom. It keeps track of your digital negatives in a database, allows you to examine them on a zoomable light table, and allows you to develop raw photographs and improve
2 min read
How to Install FFmpeg in Linux?
FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter, and play pretty much anything that humans and machines have created. It supports the most obscure ancient formats up to the cutting edge. No matter if they were designed by some standards commi
2 min read
How to install Docker in Kali Linux?
Docker is a powerful tool that allows you to automate the deployment of applications inside lightweight containers. If you're using Kali Linux, setting up Docker can greatly enhance your ability to manage and deploy various applications securely and efficiently. This article will walk you through ho
3 min read
How to Install Bodhi Linux?
Bodhi Linux is very light which can run on 256 Mb of RAM, but packed with cool features Linux distribution featuring fast and customizable desktop system Moksha Desktop, which is a fork of the old enlightenment desktop. Enlightenment desktop was a bit of an unusual specimen because it was very attra
5 min read
How to Install Atom Text Editor in Linux?
"Atom - A Hackable Text Editor of 21st Century", as the line indicates Atom is an open-source, cross-platform, feature enrich text editor developed by Github. Atom has attractive features like cross-platform editing, built-in package manager, smart auto-completion, file-system browser, and many more
3 min read
How to Install Apache Pig in Linux?
Pig is a high-level platform or tool which is used to process large datasets. It provides a high-level of abstraction for processing over the MapReduce. It provides a high-level scripting language, known as Pig Latin which is used to develop the data analysis codes. In order to install Apache Pig, y
2 min read
How to Install Dart on Linux?
This article will cover the topic of how you can install Dart SDK on a Linux system. Before we dive into installation let's first take a small overview of Dart, its applications, and system requirements to install Dart in a Linux system. At the time of writing this article, the latest stable release
4 min read
How to Install python-gadfly in Linux?
In this article, we will be looking at the stepwise procedure to install the python-gadfly for Python in Linux. Gadfly is a relational database management system written in Python. Gadfly is a collection of Python modules that provides relational database functionality entirely implemented in Python
2 min read
How To Install Qt Creator On Linux?
Qt Creator is a cross-platform C++, JavaScript, and QML integrated environment that simplifies GUI application development. It is currently available for Windows, macOS, and Linux. It is part of the SDK for the Qt GUI application development framework and uses the Qt API, which encapsulates host OS
2 min read
How to Install Etcher on Linux
Etcher also known as balenaEtcher is an open-source tool to create bootable pen drives, and SD cards by using the ISO images of the operating systems. This tool is developed by Balena. Etcher has a very simple user interface and provides a 4-step  process to create a bootable pen drive, and it is ea
5 min read