3

Using Putty, how can someone send a null character, ie \0

I have seen control+@ but that doesnt seem to work.

I'm trying to do manual SMTP AUTH:

EHLO
AUTH PLAIN username\0\0password
4
  • Use %x00 - this is known as UTF8NUL.
    – ott--
    Commented Mar 16, 2013 at 16:45
  • Another possible issue: in the examples I've seen using AUTH PLAIN, it looks like the user name and password need to be Base64 encoded.
    – vjones
    Commented Mar 16, 2013 at 16:49
  • none of the methods from wikipedia or "alt+000" or "alt+256" seem to work for me. related: superuser.com/questions/61742/… Commented Mar 16, 2013 at 22:17
  • control+@ is under Mac OSX only
    – benathon
    Commented Mar 17, 2014 at 0:56

1 Answer 1

4

The following worked for me when using PuTTY on windows with a local serial port.

  1. Under Window->Translation choose "ISO-8859-1:1998 (Latin-1, West Europe)"
  2. Send your null using alt+0256

On Mac I used the 'screen' program.

  1. Open the OS X terminal program, and run screen /dev/tty.SLAB_USBtoUART 115200 Use the path of your own serial device, something in /dev/tty.* 115200 was the baud for my specific device.
  2. Send null with ^@ (Ctrl+Shift+2). See This SU Post

References:

  1. Serial Console on OSX
  2. SU Post
1
  • When using alt+025 it works, thanks for the trick. But if I paste "^@" into PuTTY it doesn't, the receiver SMS shows "Üi".? Another thing the manual to my Siemens TC65 modem says the escape sequence is "\\00". It worked a few days ago but suddenly it doesn't. I can't get wise on thoses escape-sequences :-(
    – MrCalvin
    Commented Feb 11, 2018 at 9:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .