Spider API: How to include subdomains to be crawled?

707 views
Skip to first unread message

rostik.s...@gmail.com

unread,
Feb 7, 2017, 10:12:40 AM2/7/17
to OWASP ZAP User Group
Hi All,

I am trying to use ZAP via python API client. I want to crawl web site at http://mysite.com, and if there are links to subdomain.mysite.com, include them into crawl.

I tried to use the following code:

zap.core.new_session(apikey=apikey)
zap.context.include_in_context(context_name, ".*mysite\.com.*", apikey)
zap.spider.scan(url=target, contextname=context_name, apikey=apikey)


However, even though spider starts with a specified context, it still ignores URLs to subdomain.mysite.com and reports them in Spider->Processed window with OUT_OF_SCOPE flag.

Would be grateful for your suggestions.

Thanks in advance!

- Rostik 


thc...@gmail.com

unread,
Feb 7, 2017, 10:33:30 AM2/7/17
to zaprox...@googlegroups.com
Hi.

Seems to be a bug. Would you mind raising an issue? [1]


[1] https://github.com/zaproxy/zaproxy/issues/new

Best regards.

rostik.s...@gmail.com

unread,
Feb 7, 2017, 10:43:56 AM2/7/17
to OWASP ZAP User Group
created https://github.com/zaproxy/zaproxy/issues/3192

- Rostik

вівторок, 7 лютого 2017 р. 16:33:30 UTC+1 користувач thc202 написав:

thc...@gmail.com

unread,
Feb 7, 2017, 11:33:36 AM2/7/17
to zaprox...@googlegroups.com
Thanks!

Best regards.

On 07/02/17 15:43, rostik.s...@gmail.com wrote:
> created https://github.com/zaproxy/zaproxy/issues/3192
>
> - Rostik
>
> вівторок, 7 лютого 2017 р. 16:33:30 UTC+1 користувач thc202 написав:
>>
>> Hi.
>>
>> Seems to be a bug. Would you mind raising an issue? [1]
>>
>>
>> [1] https://github.com/zaproxy/zaproxy/issues/new
>>
>> Best regards.
>>
Reply all
Reply to author
Forward
0 new messages