Execute leaves prompt in buffer - WeOnlyDo Discussion board

Execute leaves prompt in buffer (wodSSH / wodSSH.NET)

by Rodney Snell, Thursday, March 23, 2006, 18:23 (6617 days ago)

I have a firewall that I SSH into. I execute 'get config' and it will return it's configuration (ASCII) data. But it does it in chunks in a 'More' fashion so that you have to hit a space to get the next page of data.

This is fine and I have programmed it using Execute and a regex prompt. But when I look at the full buffer received, the More prompts (in this case '--- More ---' are present in the data with a number of backspace/space characters (eg. --- More --- 08 20 08 08 20 08 08...). When displayed (I'm using VBScript, wscript.echo) everything looks fine because of the trailing backspaces are actually executed and they write over '--- More ---'. But when I write to a file I get the '--- More ---' and all the backspace characters.

Do I have to remove this prompt after SSH.Execute myself or is there a mode that wodSSH will do this for me?


Complete thread: