Jump to content

no telnet solution yet?


Recommended Posts

Hi,

I searched on this forum, i kinda stuck on finding working telnet script. the one frank10 posted, was only receiving raw packets of TCP. further reading, i saw someone said, telnet is using ANSI chars, which is why frank10 script doesn't work well (showing weird chars instead of ASCII text). so, perhaps, anyone already got solution from other forum maybe?

thank you.

Link to comment
Share on other sites

For OEM->ANSI is possible conversion.

For Telnet is working solution with alternative telnet client which (opposite to Microsoft standard client) supports standard output stream,

so you can use StdOutRead()

Search forum for this.

EDIT: here is code for OemToAnsi conversion

$currentRead = StdoutRead($ourProcess)
$currentRead = DllCall('user32.dll','Int','OemToChar','str',$currentRead,'str','') ; translate from OEM to ANSI
$currentRead = $currentRead[2]
Edited by Zedna
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...