Home page logo

nmap-dev logo Nmap Development mailing list archives

Re: Last chance to test 4.50! New candidate binaries.
From: Kris Katterjohn <katterjohn () gmail com>
Date: Wed, 12 Dec 2007 14:34:34 -0600

João Medeiros wrote:

    No, because raw_output is a vector and the return value must be a string.

Att, João Medeiros.

On Dec 12, 2007 5:27 PM, Kris Katterjohn <katterjohn () gmail com> wrote:
João Medeiros wrote:

    I made two patchs to solve this problem. See attachments.

Att, João Medeiros.

 From NmapCommand.py.diff:

-        return "\\n".join(raw_output)
+        return "".join(raw_output)

Isn't "".join(raw_output) the same as just raw_output?

Surely correct me if I'm wrong as the only experience with Python I have
is the brief bit I worked on UMIT during the SoC :)

Kris Katterjohn

Sorry! :)

In your patch I saw this line:

          raw_output = raw_desc.readlines()

And assumed readlines() returns a string.

Kris Katterjohn

Sent through the nmap-dev mailing list
Archived at http://SecLists.Org

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]