This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

TLS and TCL

Old posts that have not been replied to for several years.
Locked
F
Figga
Voice
Posts: 6
Joined: Tue Aug 30, 2005 10:25 am

TLS and TCL

Post by Figga »

Hi , nice forum by the way i have found some usefull information from here that has helped alot in my learning of tcl and eggdrops..
i recently started a script that logs into ftp sites to check for certain files in this case `*-missing` files...

Basically it took a list from a file delimited by full Colons ":" and split the list into IP:PORT:USER:PASS:DIRECTORY ....

This all worked fine with normal ftp's untill i tried to do it with SSL enabled FTPD's , i have googled and yahoo'd all sorts of questions in a quest for ideas on how to wrap the ftp_lib in tls / ssl but cannot find a way to do it and i dont know where to start wrapping the ftp:: connection into TLS , i have installed TLS 1.5 on the eggdrop / box and it works succesfully in a tclsh environment (i input "package require tls" and it returns "1.5") so i know its working ....

has anyone else ever tried to wrap FTP libs in SSL/TLS using eggdrop or is it something that annot be done ?

All help wil be greatly appreciated as its beginning to become rather annoying !!

Thanks in advance
-F
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

you can't do that, at least not with ftp package that is provided by TclLib

the thing is that - as far as I can see from its manpage - the ftp package provides no way of specifying that its (control or data) connection has to be piped through [::tls::socket] - as opposed to http package, which does that:

Code: Select all

package require http
package require tls

::http::register https 443 ::tls::socket

set token [::http::geturl https://my.secure.site/]
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
F
Figga
Voice
Posts: 6
Joined: Tue Aug 30, 2005 10:25 am

Okay m8 ty for looking much appreciated

Post by Figga »

I will struggle on to try and find a solution might look at lftp to do it or something else that has native SSL FTP with it
Locked