Your message dated Tue, 3 Mar 2020 10:09:27 +0100
with message-id 
<cagfmkp9+suy2uhabxfqe6q690rrsle0njt59tdm7dwciyde...@mail.gmail.com>
and subject line Re: Bug#952733: dnsrecon fails in Google Search enumeration 
due to incorrect urllib functions being used
has caused the Debian Bug report #952733,
regarding dnsrecon fails in Google Search enumeration due to incorrect urllib 
functions being used
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
952733: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=952733
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dnsrecon
Version: 0.9.1-3
Severity: normal

Dear Maintainer,

When using dnsrecon and requesting it to use the Google search (-t goo), it
fails due to an invocation to "urllib.urlopen(url)", which fails with an error
informing that there is no urlopen attribute in the module urllib, as can be
seen in the following example run.  I would like to point out that the same
command did work on February 26th 2020, and stopped working on February 28th
2020, after some apt upgrade (however, I cannot provide which packages were
updated).

$ dnsrecon -d debian.org -t goo
[*] Performing Google Search Enumeration against debian.org
Traceback (most recent call last):
  File "/usr/share/dnsrecon/lib/gooenum.py", line 54, in scrape_google
    sock = urllib.urlopen(url)
AttributeError: module 'urllib' has no attribute 'urlopen'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./dnsrecon.py", line 1788, in <module>
    main()
  File "./dnsrecon.py", line 1672, in main
    goo_enum_records = se_result_process(res, scrape_google(domain))
  File "/usr/share/dnsrecon/lib/gooenum.py", line 58, in scrape_google
    sock = urllib.request.urlopen(request)
  File "/usr/lib/python3.7/urllib/request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.7/urllib/request.py", line 531, in open
    response = meth(req, response)
  File "/usr/lib/python3.7/urllib/request.py", line 641, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python3.7/urllib/request.py", line 563, in error
    result = self._call_chain(*args)
  File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.7/urllib/request.py", line 755, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/usr/lib/python3.7/urllib/request.py", line 531, in open
    response = meth(req, response)
  File "/usr/lib/python3.7/urllib/request.py", line 641, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python3.7/urllib/request.py", line 569, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.7/urllib/request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 429: Too Many Requests



-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.4.0-4-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages dnsrecon depends on:
ii  python3            3.7.5-3
ii  python3-dnspython  1.16.0-1
ii  python3-lxml       4.5.0-1
ii  python3-netaddr    0.7.19-3

dnsrecon recommends no packages.

dnsrecon suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Hi Raphael,

Thanks for looking into this.  It seems it is an issue in Python3, and
there is even a pull request upstream to fix it:
https://github.com/darkoperator/dnsrecon/pull/107/files

Cheers,
Jonas.

On Tue, Mar 3, 2020 at 9:45 AM Raphael Hertzog <[email protected]> wrote:

> Right, on a second look, the real exception is related to some HTTP
> error returned by google (423 Too Many Requests) so the error is not
> due to any code mistake.
>
> The first one is AttributeError due to Python2 syntaxt but it's properly
> caught and turned into a Python 3 compatible syntax.
>
> So I'm closing the bug, thanks.
>
> On Tue, 03 Mar 2020, Jonas Andradas wrote:
> > My best guess is there was an update to one of the underlying libraries I
> > did not notice (note that this was on Sid, so frequent updates).
> >
> > Other option would be that the error only happens if the functionality
> > fails (e.g. Google blocking the request), so the full error trace is
> shown,
> > meaning that the urllib error is not fatal, and is only shown when the
> > functionality actually fails.
> >
> > I replied to the bug because trying to reproduce it some time after
> raising
> > it (and retrying now), I get the expected behavior and not the error...
> >
> > On Tue, 3 Mar 2020, 09:32 Raphael Hertzog, <[email protected]> wrote:
> >
> > > On Fri, 28 Feb 2020, Jonas Andradas wrote:
> > > > new updates performed along the day fixed the issue... sorry for
> > > reporting it
> > > > too soon!
> > >
> > > What updates? It seems weird that this issue would fix itself.
> > >
> > > Cheers,
> > > --
> > >   ⢀⣴⠾⠻⢶⣦⠀   Raphaël Hertzog <[email protected]>
> > >   ⣾⠁⢠⠒⠀⣿⡁
> > >   ⢿⡄⠘⠷⠚⠋    The Debian Handbook: https://debian-handbook.info/get/
> > >   ⠈⠳⣄⠀⠀⠀⠀   Debian Long Term Support: https://deb.li/LTS
> > >
>
> --
>   ⢀⣴⠾⠻⢶⣦⠀   Raphaël Hertzog <[email protected]>
>   ⣾⠁⢠⠒⠀⣿⡁
>   ⢿⡄⠘⠷⠚⠋    The Debian Handbook: https://debian-handbook.info/get/
>   ⠈⠳⣄⠀⠀⠀⠀   Debian Long Term Support: https://deb.li/LTS
>


-- 
Jonás Andradas

GPG Fingerprint:  678F 7BD0 83C3 28CE 9E8F
                           3F7F 4D87 9996 E0C6 9372
Keyservers:  pgp.mit.edu | pgp.rediris.es

--- End Message ---

Reply via email to