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.
Last updated
Was this helpful?
Crawl Web Application mode crawls the web application and will list all the webpages crawled. This mode will not set up the K2agent.
Last updated
Was this helpful?
Was this helpful?
$ k2hackbot crawl-web-application --help
Options:
--applicationLoginUrl TEXT Provide Login Url for your application.
Eg. k2hackbot crawl-web-application
--applicationLoginUrl
https://myapplication.com/login
--isAuthRequired BOOLEAN If your applications requires authentication
using login.
Eg. k2hackbot crawl-web-application
--isAuthRequired true
--applicationUrl TEXT [REQUIRED] Provide Application URls to be
crawled.
Eg. k2hackbot crawl-web-application
--applicationUrl http://myapplication.com
--applicationLoginIdentifier TEXT
If your Application needs a user to be
authenticated using login, we need
identifier to do that ourself. Provide
identifier for Application form fields in
format as string:
'{"username": {"identification":
"user_field_id","value":
"user_name"},"password": {"identification":
"password_field_id","value":
"password"},"submit": {"identification":
"submit_button_id","value": "Nothing"}}'
You can find Guide to Do so on following git
repository https://github.com/k2io/K2ADS
Eg. k2hackbot crawl-web-application
--applicationLoginIdentifier '{"username":
{"identification": "user_field_id","value":
"user_name"},"password": {"identification":
"password_field_id","value":
"password"},"submit": {"identification":
"submit_button_id","value": "Nothing"}}'
--ignoreUrl TEXT Provide Application URLs to be skipped for
crawling.
Eg. k2hackbot crawl-web-application
--ignoreUrl
['http://myapplication.com/contact']
--allowedDomain TEXT Application Domains to be used for crawling
Eg. k2hackbot crawl-web-application
--allowedDomain
['http://myapplication.com/home']
--force TEXT Enable Hackbot to take over and execute
forcefully
--config FILE Read configuration from FILE.
--help Show this message and exit.k2hackbot crawl-web-application --applicationUrl 'https://example.com'k2hackbot crawl-web-application --applicationUrl 'https://example.com' --isAuthRequired true --applicationLoginUrl 'http://my-application.com/login' --applicationLoginIdentifier "{\"username\": {\"identification\": \"name='user'\",\"value\": \"cody\"},\"password\": {\"identification\": \"name='password'\",\"value\": \"cody\"}, \"submit\": {\"identification\": \"type='submit'\",\"value\": \"Nothing\"}}" CLI > Environment > Configuration file > Default$ cat k2config.json
{
"applicationurl": ["https://example.com"],
"isauthrequired": true,
"applicationloginurl": "https://example.com/login",
"applicationloginidentifier": {
"username": {
"identification": "name='user'",
"value": "test"
},
"password": {
"identification": "name='password'",
"value": "PASSWORD"
},
"submit": {
"identification": "type='submit'",
"value": "Nothing"
}
}
}k2hackbot crawl-web-application --config k2config.json