Re: Send control character in telnet from NASL?

From: Renaud Deraison (deraisonat_private)
Date: Wed Feb 26 2003 - 07:21:41 PST

  • Next message: Minderhout, Doug: "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 : Wed Feb 26 2003 - 07:21:22 PST