Jump to content

Remote zFTPServer Commands via Telnet


Recommended Posts

Hi,

I am looking at using zFTPServer for, obviously, a FTP server mainly because your can create / modify users via a Telnet session. So, I am trying to build a very simple program which will take input of the username, password, realname and group membership and parse it out via Telnet.

Looking through the forums I should use the TCPConnect() and TCPSend() functions. I have the following test and appear to get the TCPConnect() to work as it doesn't error, but the TCPSend() does produce an @error:

$strIP = "127.0.0.1"
TCPStartup()
$StrConnectedSocket = TCPConnect($strIP, 3145)
TCPSend($strConnectedSocket, "user admin" & @CR)
TCPCloseSocket($strConnectedSocket)

Anyone have any suggestions?

Thanks.

Pete.

Edited by pshankland
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...