Mailing List Archive

Pb with smb_dom2sid.nasl
Hello,

There a problem in smb_dom2sid.nasl:
We lose the variable s at output of the function long.
I don't understand why.

so I made a dirty modification:

num = long(s:s, index:index);
sid = sid + num + "-";
index = index+4;
num = long(s:s, index:index);
sid = sid + num + "-";
index = index+4;
num = long(s:s, index:index);
sid = sid + num+ "-";
index = index+4;
num = long(s:s, index:index);
sid = sid + num;

is now

r = s;
num = long(s:r, index:index);
sid = sid + num + "-";
index = index+4;
num = long(s:r, index:index);
sid = sid + num + "-";
index = index+4;
num = long(s:r, index:index);
sid = sid + num+ "-";
index = index+4;
num = long(s:r, index:index);
sid = sid + num;

I'm using Nessus 1.1.4.

Can somebody tell me what is the problem?

Georges Dagousset
Re: Pb with smb_dom2sid.nasl [ In reply to ]
Hi,

It sounds like a NASL parser problem, rather than a NASL plugin code problem.

Thanks
Noam Rathaus
http://www.SecurITeam.com
http://www.BeyondSecurity.com

----- Original Message -----
From: "Georges Dagousset" <georges.dagousset@alert4web.com>
To: <plugins-writers@list.nessus.org>
Sent: Monday, September 24, 2001 22:02
Subject: Pb with smb_dom2sid.nasl


Hello,

There a problem in smb_dom2sid.nasl:
We lose the variable s at output of the function long.
I don't understand why.

so I made a dirty modification:

num = long(s:s, index:index);
sid = sid + num + "-";
index = index+4;
num = long(s:s, index:index);
sid = sid + num + "-";
index = index+4;
num = long(s:s, index:index);
sid = sid + num+ "-";
index = index+4;
num = long(s:s, index:index);
sid = sid + num;

is now

r = s;
num = long(s:r, index:index);
sid = sid + num + "-";
index = index+4;
num = long(s:r, index:index);
sid = sid + num + "-";
index = index+4;
num = long(s:r, index:index);
sid = sid + num+ "-";
index = index+4;
num = long(s:r, index:index);
sid = sid + num;

I'm using Nessus 1.1.4.

Can somebody tell me what is the problem?

Georges Dagousset
Re: Pb with smb_dom2sid.nasl [ In reply to ]
On Mon, Sep 24, 2001 at 10:02:57PM +0200, Georges Dagousset wrote:
> Hello,
>
> There a problem in smb_dom2sid.nasl:
> We lose the variable s at output of the function long.
> I don't understand why.
>
> so I made a dirty modification:
>
> num = long(s:s, index:index);

This problem has now (hopefully) been fixed in the CVS tree (1.1.x)


-- Renaud
Re: Pb with smb_dom2sid.nasl [ In reply to ]
Can you tell me the impacted source, because I made a comparaison of
parser.c.
I've got the last one.

Georges

----- Original Message -----
From: "Renaud Deraison" <deraison@cvs.nessus.org>
To: <plugins-writers@list.nessus.org>
Sent: Monday, September 24, 2001 10:22 PM
Subject: Re: Pb with smb_dom2sid.nasl


> On Mon, Sep 24, 2001 at 10:02:57PM +0200, Georges Dagousset wrote:
> > Hello,
> >
> > There a problem in smb_dom2sid.nasl:
> > We lose the variable s at output of the function long.
> > I don't understand why.
> >
> > so I made a dirty modification:
> >
> > num = long(s:s, index:index);
>
> This problem has now (hopefully) been fixed in the CVS tree (1.1.x)
>
>
> -- Renaud