Is it posible for a ordinary mirc to be a psbnc?

Any other programming language that is not covered in the Web Scripting category.

Is it posible for a ordinary mirc to be a psbnc?

Postby blinker on Tue May 02, 2006 2:45 pm

1st of ol im a noob scripter in mirc. ive tried setting up an autorun mirc, a park bot it is. it can be commanded to join channel and part channel, say things in channel and more noobscript things, and i can change it variable by just sending command text. but can we make a scrift for it to be a psybnc? or can it be able for the mirc to dcc its owner and al those who send message to it sends to the owner too? pls give some info to those who can relate. thanx.

and nweiz this is my first time to post a tpic here.
as i read some topic which i can relate, i rili do think phoenix forums give a big help..
Very Happy
blinker
Contributer
Contributer
 
Posts: 50
Joined: Mon May 01, 2006 10:57 am
Location: Ph

Postby Lattyware on Tue May 02, 2006 5:01 pm

First of all, speaking in proper English would be nice, (when I say proper english, I am not talking about grammar etc... if you do not speak english as a first language, but rather the 'pls' '1st' etc..) I think it is even one of the rules.

Other than that, I'd suggest ditching mIRC in favor of Python, it will mean you can do alot more, as Python is a proper language.

http://www.devshed.com/c/a/Python/Python-and-IRC/
^ Is a great article.
Lattyware
Contributer
Contributer
 
Posts: 23
Joined: Mon May 01, 2006 5:46 pm

lattyware, pls help? or any one?

Postby blinker on Wed May 03, 2006 4:47 am

import socket
network = ***.215.99.57 <- this is my ip, do i rili have to use my ip?
port = 6669 <- can i use any other port?
irc = socket.socket ( socket.AF_INET, socket.SOCK_STREAM )
irc.connect ( ( ***.215.99.57, 6669 ) )
irc.send ( 'NICK PyIRC\r\n' )
irc.send ( 'USER PyIRC PyIRC PyIRC Razzython IRC\r\n' )
irc.send ( 'JOIN #testdrive\r\n' )
irc.send ( 'PRIVMSG #testdrive:Can you hear me?\r\n' )
irc.send ( 'PART #testdrive\r\n' )
irc.send ( 'QUIT\r\n' )
irc.close()

i put it in the remote.

and i run another mirc program and try to connect on it, /s ***.215.99.57:6669
and and it says * Unable to connect to server (Connection refused)
blinker
Contributer
Contributer
 
Posts: 50
Joined: Mon May 01, 2006 10:57 am
Location: Ph

Re: lattyware, pls help? or any one?

Postby al_tyranny on Wed May 03, 2006 6:20 am

blinker wrote:network = ***.215.99.57 <- this is my ip, do i rili have to use my ip?
port = 6669 <- can i use any other port?
irc = socket.socket ( socket.AF_INET, socket.SOCK_STREAM )
irc.connect ( ( ***.215.99.57, 6669 ) )

and i run another mirc program and try to connect on it, /s ***.215.99.57:6669
and and it says * Unable to connect to server (Connection refused)
Yeah, there's no surprise that it doesn't work :x
Where it says "network", it's the IP address of the IRC server (name may work as well). The "port" is the port number you use to connect to IRC (usually is 6667, more may be listed in the MOTD).

So when you do irc.connect( ("irc.anoxs.net", 6667) ), you're connecting to the IRCnet on port 6667. What you did amounts to "try to connect the socket to my home computer on port 6667"--it fails because you don't have a program running there.
mm_freak wrote:Slackware users are dreamers. Sorry to say.
al_tyranny
Phoenix Veteran
Phoenix Veteran
 
Posts: 294
Joined: Tue May 17, 2005 3:18 am
Location: Greater Boston Area

im rili not good at these..last 1.

Postby blinker on Wed May 03, 2006 8:57 am

import socket
network = ***.215.99.56
port = 6669
irc = socket.socket ( socket.AF_INET, socket.SOCK_STREAM )
irc.connect ( ( "redemption.ix.us.dal.net", 6669 ) )
irc.send ( 'NICK sunoy\r\n' )
irc.send ( 'USER sunoy sunoy sunoy :sunoy\r\n' )
irc.send ( 'JOIN #testdrive\r\n' )
irc.send ( 'PRIVMSG #testdrive:Can you hear me?\r\n' )
irc.send ( 'PART #testdrive\r\n' )

why can't i make it work? what could be the problem? errr..
im rili is lousy in these things.. nweiz thanx for those who help..
if i cant make it work, i think im gonna leave this prob.
blinker
Contributer
Contributer
 
Posts: 50
Joined: Mon May 01, 2006 10:57 am
Location: Ph

Postby bart416 on Wed May 03, 2006 6:44 pm

Uhm, if i don't mistake you will need to wait till you received the MOTD before you will be able to join a channel.
Its not cause you created a socket and connected that the server accepted the connection as completly valid...
bart416
Valued Member
Valued Member
 
Posts: 164
Joined: Fri Sep 30, 2005 6:50 pm

Postby hellboy on Thu May 04, 2006 4:56 pm

My advice...download a psyBNC for windows or search on google fro mIRC scripts!
Image

Looking for a HellGirl...
hellboy
Contributer
Contributer
 
Posts: 71
Joined: Sun Apr 09, 2006 9:00 pm
Location: Miami

Postby blinker on Fri May 05, 2006 3:35 am

i do prefer psy in mirc. >_<
i dont know how to code tcl script.
blinker
Contributer
Contributer
 
Posts: 50
Joined: Mon May 01, 2006 10:57 am
Location: Ph

Postby hellboy on Fri May 05, 2006 5:45 pm

you don`t need to code in TCL .There is psyBNC for Windows platform!!!
Image

Looking for a HellGirl...
hellboy
Contributer
Contributer
 
Posts: 71
Joined: Sun Apr 09, 2006 9:00 pm
Location: Miami

quite..

Postby blinker on Sat May 06, 2006 1:42 am

yeah.. but i want my own script to run.. ^^,
that's why i lyk mirc, bcos i know how to script a little n mirc.
blinker
Contributer
Contributer
 
Posts: 50
Joined: Mon May 01, 2006 10:57 am
Location: Ph

Could i?

Postby blinker on Tue May 09, 2006 12:00 pm

Could anyone give me a config? or a sample?
Pls pls pls pls pls pls...???
pretty pls... Crying or Very sad Crying or Very sad Crying or Very sad Crying or Very sad
blinker
Contributer
Contributer
 
Posts: 50
Joined: Mon May 01, 2006 10:57 am
Location: Ph

Postby luq on Thu May 11, 2006 4:15 am

blinker wrote:but can we make a scrift for it to be a psybnc?

Yes, it is possible.

Long time ago I coded a "BNC script" for mIRC which allowed one client to use my mIRC like a psyBNC.

Basically you need to know about IRC protocol and SOCKET's management.

Take a look at the IRC RFC (search it in google) to see how works the protocol. After doing this, you need to learn about SOCKOPEN, SOCKREAD, SOCKWRITE and SOCKLISTEN functions.

The matter is: you need to establish a connection between an IRCD and an IRC client. An application that makes that is called "gateway". You need to receive a connection from the IRC client using SOCKLISTEN (defining a port, for example, the 31337), process the information using SOCKREAD function, and send this information to the IRCD opening a connection to the server with SOCKOPEN function (sending the data with SOCKWRITE).

The rest, it's your matter.

I hope this can help you a little.

Regards.

PS: And pay attention to Lattyware, using a correct way of speaking is important, specially for "foreigner" people like me who aren't used to read texts written in english :)
luq
Contributer
Contributer
 
Posts: 23
Joined: Thu May 11, 2006 12:00 am


Return to Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron