Skip to content

Instantly share code, notes, and snippets.

@paveljurca
Last active July 24, 2017 13:24
Show Gist options
  • Save paveljurca/7ec374bd4ac624a99dae36dfe33d6d3d to your computer and use it in GitHub Desktop.
Save paveljurca/7ec374bd4ac624a99dae36dfe33d6d3d to your computer and use it in GitHub Desktop.

IIS FTP Server

FTP clients may fail to work with the IIS FTP built-in server.

mismatched SYST response,

ftp> quote SYST 215 Windows_NT

Seems client expects WINDOWS-NT string and gets Windows_NT.

"A system name may be up to 40 characters taken from the set of uppercase letters, digits, and the three punctuation characters hyphen, period, and slash. It must start with a letter, and end with a letter or digit."

Nothing about underscores

code 215 "NAME system type. Where NAME is an official system name from the registry kept by IANA."

https://www.iana.org/assignments/operating-system-names/operating-system-names.xhtml

Synopsis A 215 reply code is given in response to the SYST command. The response should contain an official system name from the list in the Assigned Numbers document.

As is a standard for MS products often fail to communicate with

Recommend FileZilla FTP Server.

IIS FTP Request Filtering

SYST command

looks like isn't disabled but does not return a word

IIS FTP log

C:\inetpub\logs\LogFiles\FTPSVC2\

2017-07-21 11:26:46 192.168.0.101 - 192.168.0.100 21 ControlChannelOpened - - 0 0 91e916e0-a1cb-4ce6-85a8-cbb4043865ea -
2017-07-21 11:26:46 192.168.0.101 - 192.168.0.100 21 USER FTPUser 331 0 0 91e916e0-a1cb-4ce6-85a8-cbb4043865ea -
2017-07-21 11:26:46 192.168.0.101 SERVER\FTPUser 192.168.0.100 21 PASS *** 230 0 0 91e916e0-a1cb-4ce6-85a8-cbb4043865ea /
2017-07-21 11:26:46 192.168.0.101 SERVER\FTPUser 192.168.0.100 21 FEAT - 211 0 0 91e916e0-a1cb-4ce6-85a8-cbb4043865ea -
2017-07-21 11:26:46 192.168.0.101 SERVER\FTPUser 192.168.0.100 21 OPTS UTF8+ON 200 0 0 91e916e0-a1cb-4ce6-85a8-cbb4043865ea -
2017-07-21 11:26:46 192.168.0.101 SERVER\FTPUser 192.168.0.100 21 TYPE I 200 0 0 91e916e0-a1cb-4ce6-85a8-cbb4043865ea -
2017-07-21 11:26:46 192.168.0.101 SERVER\FTPUser 192.168.0.100 21 SYST - 215 0 0 91e916e0-a1cb-4ce6-85a8-cbb4043865ea -
2017-07-21 11:26:46 192.168.0.101 SERVER\FTPUser 192.168.0.100 21 QUIT - 221 0 0 91e916e0-a1cb-4ce6-85a8-cbb4043865ea -
2017-07-21 11:26:46 192.168.0.101 SERVER\FTPUser 192.168.0.100 21 ControlChannelClosed - - 0 0 91e916e0-a1cb-4ce6-85a8-cbb4043865ea -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment