egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TLS and TCL

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
Figga
Voice


Joined: 30 Aug 2005
Posts: 6

PostPosted: Wed Sep 21, 2005 5:13 am    Post subject: TLS and TCL Reply with quote

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
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sat Sep 24, 2005 10:15 pm    Post subject: Reply with quote

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:

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] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
Figga
Voice


Joined: 30 Aug 2005
Posts: 6

PostPosted: Mon Sep 26, 2005 4:04 am    Post subject: Okay m8 ty for looking much appreciated Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber