krmaxwell / maltrieve

A tool to retrieve malware directly from the source for security researchers.
GNU General Public License v3.0
563 stars 184 forks source link

lxml not playing nicely #48

Closed krmaxwell closed 10 years ago

krmaxwell commented 10 years ago

lxml is not playing well with requests. Data incoming.

krmaxwell commented 10 years ago
Traceback (most recent call last):
  File "./maltrieve.py", line 297, in <module>
    main()
  File "./maltrieve.py", line 242, in main
    get_xml_list('http://www.malwaredomainlist.com/hostslist/mdl.xml', malq)
  File "./maltrieve.py", line 118, in get_xml_list
    tree = ET.parse(r.text)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1182, in parse
    tree.parse(source, parser)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 647, in parse
    source = open(source, "rb")
IOError: [Errno 36] File name too long:

Followed by the contents of the page.

krmaxwell commented 10 years ago

lxml / etree no longer used so this no longer applies