Burp Suite User Forum

Create new post

DNS requests

Robin | Last updated: Oct 06, 2017 09:44AM UTC

I'm using the following Python to try to make DNS requests from my extension: import dns.resolver ... myResolver = dns.resolver.Resolver() try: myResolver.query(domain, "MX") except dns.exception.Timeout: self._printError("Timeout while requesting MX record") This works fine on the command line but times out every time from in my extension. Is there an obvious reason for this or do I need to do more debugging?

PortSwigger Agent | Last updated: Oct 06, 2017 09:59AM UTC

Hi Robin, Just to be clear - does it work ok in command line Jython? CPython and Jython are not identical. You'll need to get it working in Jython first, before trying within Burp. Please let us know if you need any further assistance.

Burp User | Last updated: Oct 06, 2017 11:50AM UTC

It works in CPython, I'll try to get my test script running with jython, not used that on the command line before.

You must be an existing, logged-in customer to reply to a thread. Please email us for additional support.