RE: Send control character in telnet from NASL?

From: Minderhout, Doug (dminderhoutat_private)
Date: Thu Feb 27 2003 - 07:53:43 PST

  • Next message: John Q. Public: "RE: Send control character in telnet from NASL?"

    My god, how long have you been waiting to use that one?
    
    > -----Original Message-----
    > From: John Q. Public [mailto:tpublicat_private]
    > Sent: Wednesday, February 26, 2003 4:04 PM
    > To: plugins-writersat_private
    > Subject: RE: Send control character in telnet from NASL?
    > 
    > 
    > you're not a dumbass, it's actually very common.  exactly why 
    > Christmas and
    > Halloween are often confused.  after all, Dec 25 = Oct 31
    > 
    > 
    > On Wed, 26 Feb 2003, Minderhout, Doug wrote:
    > 
    > |durf... I forgot od is OCTAL...
    > |
    > |Thanks for letting me know I'm a dumbass.
    > |
    > |> -----Original Message-----
    > |> From: Renaud Deraison [mailto:deraisonat_private]
    > |> Sent: Wednesday, February 26, 2003 9:22 AM
    > |> To: plugins-writersat_private
    > |> Subject: Re: Send control character in telnet from NASL?
    > |>
    > |>
    > |> On Wed, Feb 26, 2003 at 10:08:26AM -0500, Minderhout, Doug wrote:
    > |> > I need to send a Ctrl+Y in a telnet session for a nasl I'm
    > |> working on, does
    > |> > anyone know how to do this?
    > |> >
    > |> > I have tried the following code to no avail:
    > |> >
    > |> > test = raw_string(0x31);
    > |> > send(socket:soc, data:test);
    > |> >
    > |> > I tried 0x25 and 0x31 as the value for "Ctrl+Y" as I got
    > |> one from an ASCII
    > |> > chart (0x25) and one from the 'od' program (0x31).
    > |>
    > |> 0x25 is "%" and 0x31 is "1" so I doubt these codes are 
    > correct. Try to
    > |> send raw_string(0x19).
    > |>
    > |>
    > |> 				-- Renaud
    > |>
    > |
    > 
    



    This archive was generated by hypermail 2b30 : Thu Feb 27 2003 - 07:59:56 PST