Crawl Web Application
Crawl Web Application mode crawls the web application and will list all the webpages crawled. This mode will not set up the K2agent.
Crawl Web Application
Crawl Web Application mode of K2HackBot works as a basic web application crawler. It will try to access all the HTML components present across the application.
This mode does not require K2agent installation.
Options
Note: The options marked with ** are MANDATORY.
Option
Description
--isAuthRequired
Set this to true when application has authenticated routes.
--applicationLoginUrl
Provide the URL of the login page when --isAuthRequired is set to true
**--applicationUrl
The URLs pointing to the application.
--applicationLoginIdentifier
Provide the application login identifier when --isAuthRequired is set to true.
How to prepare the application login identifier?
--ignoreUrl
Provide a list of keywords/URLs that will be ignored while crawling.
--allowedDomain
Provide a list of domains that will be considered while crawling.
--config
Provide the config file path. How to setup config file?
Commands
Make sure that K2HackBot is setup correctly at this point before running crawl-web-application commands.
Command to display the help page:
Command to crawl applications without authentication:
Command to scan applications with authentication:
Config File Setup
K2HackBot support two ways to define options:
CLI
Config File
The Hierarchy for reading config is as follows:
The config file can be created with any name but it MUST be in JSON format. Below is a sample config file for Crawl Web Application:
Command to run crawl-web-application using the config file:
Last updated
Was this helpful?