[Twisted-Python] log irc bot example problem
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi! I'm playing with the twisted irclogbot example .. I've no problem in the ircnet, but it I always get disconnected from the efnet, but a eggdrop on the same machine has no problem [21:34:05] [connected at Thu Nov 27 21:34:05 2003] [21:34:51] [disconnected at Thu Nov 27 21:34:51 2003 reason([Failure instance: Traceback: twisted.internet.error.ConnectionDone, Connection was closed cleanly. ])] I've looked at it with tcpdump and got following, but what should that tell me: NICK bla! NOTICE AUTH :*** Looking up your hostname. USER bla! foo bar :None NOTICE AUTH :*** Checking Ident NOTICE AUTH :*** Found your hostname NOTICE AUTH :*** Got Ident response :efnet.demon.co.uk 432 * rim! :Erroneous NERROR :Closing Link: mydnsname.com - -- Regards, Robert - ---------- Robert Penz robert dot penz at outertech dot com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux) iD8DBQE/xmWB8tTsQqJDUBMRApfXAJ0a5qB4qcIm4cX1e1M1qBuQY7femACfby7W DLQgXXnZXNiJanDLBA9VxK0= =D0R7 -----END PGP SIGNATURE-----
On Thu, Nov 27, 2003 at 09:58:41PM +0100, Robert Penz wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi!
I'm playing with the twisted irclogbot example .. I've no problem in the ircnet, but it I always get disconnected from the efnet, but a eggdrop on the same machine has no problem
[21:34:05] [connected at Thu Nov 27 21:34:05 2003] [21:34:51] [disconnected at Thu Nov 27 21:34:51 2003 reason([Failure instance: Traceback: twisted.internet.error.ConnectionDone, Connection was closed cleanly. ])]
I've looked at it with tcpdump and got following, but what should that tell me:
NICK bla! NOTICE AUTH :*** Looking up your hostname. USER bla! foo bar :None NOTICE AUTH :*** Checking Ident NOTICE AUTH :*** Found your hostname NOTICE AUTH :*** Got Ident response :efnet.demon.co.uk 432 * rim! :Erroneous NERROR :Closing Link: mydnsname.com
432 is erroneous nickname. Likely, the server doesn't like the "!" in your nick. Jp
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday 28 November 2003 02:34, Jp Calderone wrote:
432 is erroneous nickname. Likely, the server doesn't like the "!" in your nick.
ok changed the nick now I get following NICK blabla31 NOTICE AUTH :*** Looking up your hostname. USER blabla31 foo bar :None NOTICE AUTH :*** Checking Ident NOTICE AUTH :*** Found your hostname NOTICE AUTH :*** Got Ident response :efnet.demon.co.uk NOTICE blabla31 :*** BaERROR :Closing Link: mydnsname.com whats this ? - -- Regards, Robert - ---------- Robert Penz robert dot penz at outertech dot com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux) iD8DBQE/x4BG8tTsQqJDUBMRApLpAKCPXikRxQ9H3PEIoq3Hx/ZhBCY6EACfZ+Tq oMms6KhRVXKf822ZMbX5+k4= =o87D -----END PGP SIGNATURE-----
Robert Penz [Fri, Nov 28, 2003 at 06:05:10PM +0100]:
:efnet.demon.co.uk NOTICE blabla31 :*** BaERROR :Closing Link: mydnsname.com
whats this ?
Robert, your questions have nothing to do with Twisted, those are IRC problems. It's closing link, because - propably - mydnsname.com is not allowed to connect to that IRC server. I'd suggest e-mailing some local irc-oriented newsgroup or list. Thank you. -- Michal Pasternak :: http://pasternak.w.lub.pl
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday 28 November 2003 18:38, Michal Pasternak wrote:
your questions have nothing to do with Twisted, those are IRC problems. It's closing link, because - propably - mydnsname.com is not allowed to connect to that IRC server. I'd suggest e-mailing some local irc-oriented newsgroup or list. Thank you.
but if I start eggdrop on the same machine it works. - -- Regards, Robert - ---------- Robert Penz robert dot penz at outertech dot com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux) iD8DBQE/x5DF8tTsQqJDUBMRAs1rAJ0cepGVJ8RcFbwzWEzNN2BjWbsrKwCdGdxw f045prIe9eLmyRnEJP7YhqY= =dA+w -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday 28 November 2003 19:15, Robert Penz wrote:
On Friday 28 November 2003 18:38, Michal Pasternak wrote:
your questions have nothing to do with Twisted, those are IRC problems. It's closing link, because - propably - mydnsname.com is not allowed to connect to that IRC server. I'd suggest e-mailing some local irc-oriented newsgroup or list. Thank you. but if I start eggdrop on the same machine it works.
found the problem ... - -- Regards, Robert - ---------- Robert Penz robert dot penz at outertech dot com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux) iD8DBQE/yGBQ8tTsQqJDUBMRAmrqAJ0ZRZxsFMFbpfNsJwYF5wB4Wbl7PACfSVpC wc/6F6wT5yLQQ/+6Wws8WfE= =MTiQ -----END PGP SIGNATURE-----
Hi, This is an initial inquiry to find out if anyone really familiar with Twisted would want to join me in the development of a Spammer honeypot system to release into the public domain. A recent "securityfocus" article seems to indicate some project like this might be worthwhile, and Twisted seems to be the perfect tool for this.... Not only would it be used to "fool" spammers, but it also could be used to "detect" proxy connections from IRC bots, and return the proper "fingerprints" to convince the spammers this is a really legit proxy. I've done a lot of research in this project, and come to the realization that the ONLY way to catch these people who write such viruses, is to "suck them into" a honeypot. Anyone interested, please Email me at 'crunch at shopip dot com' Don't reply to my 'lists' mailbox, as this is only for my mailing lists. Regards John
http://www.twistedmatrix.com/documents/howto/listings/finger/finger22.py Error: 2003/11/29 18:00 EST [-] NameError: global name 'SSL' is not defined Is it because someone commented out from OpenSSL import SSL? I uncomment it and emerge pyOpennSSL but it still doesn't work. :( Yun
On Sat, Nov 29, 2003 at 06:06:05PM -0500, Yun Mao wrote:
http://www.twistedmatrix.com/documents/howto/listings/finger/finger22.py
Error:
2003/11/29 18:00 EST [-] NameError: global name 'SSL' is not defined
Is it because someone commented out from OpenSSL import SSL?
Probably. It is unclear why this has been done.
I uncomment it and emerge pyOpennSSL but it still doesn't work. :(
How does it not work? Jp
I see what's wrong here. This is part of finger22.py def getContext(self): """Create an SSL context. This is a sample implementation that loads a certificate from a file called 'server.pem'.""" ctx = SSL.Context(SSL.SSLv23_METHOD) ctx.use_certificate_file('server.pem') ctx.use_privatekey_file('server.pem') return ctx I should have substituted the certificate_file to the certificate file.. Yun On Sat, 29 Nov 2003, Jp Calderone wrote:
On Sat, Nov 29, 2003 at 06:06:05PM -0500, Yun Mao wrote:
http://www.twistedmatrix.com/documents/howto/listings/finger/finger22.py
Error:
2003/11/29 18:00 EST [-] NameError: global name 'SSL' is not defined
Is it because someone commented out from OpenSSL import SSL?
Probably. It is unclear why this has been done.
I uncomment it and emerge pyOpennSSL but it still doesn't work. :(
How does it not work?
Jp
participants (5)
-
JD
-
Jp Calderone
-
Michal Pasternak
-
Robert Penz
-
Yun Mao