I try to use a ftp daemon and a Telnet daemon with inetd and the BusyBox v1.19.0 on a linux 2.6.24.
When running inetd and then checking what is listening with "netstat -an |grep LISTEN" i have :
Code:
netstat: /proc/net/tcp6: No such file or directory netstat: /proc/net/udp6: No such file or directory netstat: /proc/net/raw6: No such file or directory tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN
ftp port 21 and Telnet port 23 seems to be listening.
My inetd.conf file is :
Code:
#<service_name> <sock_type> <proto> <flags> <user> <server_path> <args> 21 stream tcp nowait root ftpd ftpd /etc telnet stream tcp nowait root /usr/sbin/telnetd
I have no rule in my hosts.deny so nothing should be stopped and i have no iptables firewall in place too.
When typing "ftp://ipofthetarget" in a web browser i have a error :
Code:
504 Gateway Timeout Gateway timeout expired while waiting for server response.
And when trying to Telnet from another computer or "Telnet localhost" from the board i have :
Code:
# telnet 10.2.29.201 Trying 10.2.29.201... connected to 10.2.29.201. Escape character is '^]' Connection closed by foreign host.
This would mean that the connection for Telnet exist but why is it closing ?
Thank you for your future answers !
UPDATE 1 :
If i try to run telnetd like this :
/usb/sbin/telnet -l /bin/sh
i can connect anonymously from another computer, not perfect because i would like a user/password but still of use.
The problem with the ftp daemon still exist.
UPDATE 2 :
Trying from Windows cmd or linux terminal : ftp ipofthetarget seems to work
Not perfect because i would like a user/password too but still of use.
I am still open for suggestion for the user/password thing. I am not deleting the thread in case someone interested about this exist.