IRC bot

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

Postby Cnupo on Tue May 02, 2006 9:42 pm

If it is about mirc you need a socket bot ..search for that in all major sites for mirc scripts/addons/snippets and you will find what you need.
With every beggining comes an end...
Cnupo
Newbie
Newbie
 
Posts: 16
Joined: Fri Apr 28, 2006 5:06 pm
Location: Varna, Bulgaria

Postby alkaios on Tue May 02, 2006 11:30 pm

if you mean irc proxy and irc sockets,and also anonymous web surfing-definately you need to check this web site:
http://www.aliveproxy.com Cool
Hope that's gonna help you.But rememeber-use them only for good purpose.
The more you know
alkaios
Contributer
Contributer
 
Posts: 26
Joined: Tue Feb 14, 2006 3:05 am
Location: Bulgaria

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

pcweirdo wrote:jimie, the ones on SourceForge are pre-alpha at best, but you can steal code to get you started. I started on one but my comrades and I couldn't get a free web host that had the right conditions. Trawling through free web hosting listings on the Internet testing them is a pain in the arse.

http://users.on.net/~conheady/patbot.tar.gz is my code. It's partially functional; let me know what you think of the coding style and the commenting.

Basically, the blocker I ran into was that many PHP installations set a time limit of, say, 30 seconds, for a script to run. This is to stop bad code spawning never-ending loops, which just chew CPU time and waste money.

It also means that your bot will connect to the channel for a grand total of 30 seconds before it is killed.

You need a web host where either
a) there is no time limit
b) you can change the relevant INI setting in your PHP code. The name of this setting is buried in the PHP manual.

Another concern is the firewall on the web server. The web server might be blocked from making outgoing connections, or even specifically IRC might be blocked.

Alternatively, the firewall might be very relaxed, and you might be able to bind listening sockets from within PHP code. This would allow you to run, for example, an IRC server.

If you can get it working, it is extremely useful. It provides another IP address to connect to servers from (good for avoiding bans and clone limits), and doesn't affect your process count on any shell accounts. Plus, web hosting is probably easier to get anonymously from many sources simultaneously than shell accounts. More people give out web hosting than shell accounts.

An IRC bot is one thing, but if that works, hack up an SSH server, a proxy and more, all running in PHP.

As yet another approach you might take, you could use backticks to run binaries on your web server. This way, you could run eggdrop! Again, this is subject to countless restrictions by PHP and the server, and I can't even describe which parts of the fair usage agreements you might break.

Backticks also have the advantage that if the PHP script timeout is your only obstacle, backgrounding a shell script (or a PHP script through the CGI or CLI PHP binaries) will often allow you to run code all day.

OP, to make multiple connections with the one process (I rudely assume you're trying to circumvent the shell account process limit), you might need to edit some code yourself. Threads might be what you are after, but I'm not sure how multithreading interacts with the process limit. Editing code can be messy, but if you'll feel really good if you introduce new and useful functionality to an open-source product.

-pcweirdo.

Uhm you mean the execution time limit that you can set within the script Razz

Code: Select all
set_time_limit(0);

Should do the trick...

But PHP is not fit for IRC bots Neutral
bart416
Valued Member
Valued Member
 
Posts: 164
Joined: Fri Sep 30, 2005 6:50 pm

Postby pcweirdo on Thu May 04, 2006 11:08 am

bart416 wrote:Uhm you mean the execution time limit that you can set within the script Razz
Code: Select all
set_time_limit(0);

Should do the trick...
That's a handy bit of information, when the site administrator hasn't set a web server time limit.

bart416 wrote:But PHP is not fit for IRC bots Neutral
O rly? When you have a certain server, and that server will not allow you to run code except PHP code, what would you do instead?

PHP is horrible for coding IRC bots, which is why almost nobody does it. But using PHP does open up more possibilities.

-pcweirdo.
I love logic, therefore a polar bear is gay and I am the President. Or I'm thinking too much. I love this website.
pcweirdo
Contributer
Contributer
 
Posts: 58
Joined: Mon Aug 29, 2005 11:26 pm
Location: Melbourne, Australia

Re: IRC bot

Postby luq on Sun May 14, 2006 4:07 am

koncept wrote:Does anyone know a irc script (bot) that once you connect on a channel make like your are 3 user connect or more on the channel.
Make several connection with only one process?

I think u are looking for a script like "ClonesX". Search "ClonesX" in google (i advice u: making "clone" connections is forbidden in almost all irc networks).

blinker wrote:do anyone know some links or where can i get free mrc proxy?

Google and the proxyscanners are ur friends.
luq
Contributer
Contributer
 
Posts: 23
Joined: Thu May 11, 2006 12:00 am

Hmm.. its quite lyk that

Postby blinker on Sat May 20, 2006 6:55 am

I think u are looking for a script like "ClonesX". Search "ClonesX" in google (i advice u: making "clone" connections is forbidden in almost all irc networks).

its not that im gonna flood a channel or something. i just wanna park my nicks.. Smile Very Happy Smile
Try genocide too.. search in google. im looking for it too. Smile

Koncept do u have that script your saying?
blinker
Contributer
Contributer
 
Posts: 50
Joined: Mon May 01, 2006 10:57 am
Location: Ph

Postby bart416 on Sat May 20, 2006 7:28 am

pcweirdo wrote:
bart416 wrote:Uhm you mean the execution time limit that you can set within the script Razz
Code: Select all
set_time_limit(0);

Should do the trick...
That's a handy bit of information, when the site administrator hasn't set a web server time limit.

bart416 wrote:But PHP is not fit for IRC bots Neutral
O rly? When you have a certain server, and that server will not allow you to run code except PHP code, what would you do instead?

PHP is horrible for coding IRC bots, which is why almost nobody does it. But using PHP does open up more possibilities.

-pcweirdo.

You will force PHP into an endless loop.
That will cause serious memory usage and the bot will needed to be restarted several times / day. Unless you set the memory limit to an insane high value.

Basically the script just puts its code in:
while(1) {} tags in most cases.
Thats just plain stupid in fact.
bart416
Valued Member
Valued Member
 
Posts: 164
Joined: Fri Sep 30, 2005 6:50 pm

Postby pcweirdo on Sun May 21, 2006 3:02 am

bart416 wrote:You will force PHP into an endless loop.
That will cause serious memory usage and the bot will needed to be restarted several times / day. Unless you set the memory limit to an insane high value.
PHP doesn't generally leak memory in loops, by virtue of its garbage collection. Of course, the PHP programmer/scripter/coder/waiter still needs to make sure they aren't accumulating huge dynamic arrays or something.

bart416 wrote:Basically the script just puts its code in:
while(1) {} tags in most cases.
Thats just plain stupid in fact.
An endless loop (which often isn't endless, since facilities such as the break command are available) is commonly employed by software ranging from games, network servers and the Linux kernel. It is a convenient away to run a "main loop" that runs again and again, each time with new input from the user or the network. Is that so stupid?

In my IRC bot, I used:
Code: Select all
while(!feof($irc_sock))     // (where $irc_sock is a socket connected to a remote server)
which would have essentially the same functionality if it was:
Code: Select all
while(1)
with a test for 'end of file' on the socket at the start of each iteration. Is that less stupid?

How else would you have an application listen to the network and respond to each line in input?

-pcweirdo.
I love logic, therefore a polar bear is gay and I am the President. Or I'm thinking too much. I love this website.
pcweirdo
Contributer
Contributer
 
Posts: 58
Joined: Mon Aug 29, 2005 11:26 pm
Location: Melbourne, Australia

Postby darkwizzard on Tue May 23, 2006 11:21 am

Does anyone know good IRC proxy servers ? Smile
Why do you need clones? You can easely get G-lined
darkwizzard
Contributer
Contributer
 
Posts: 32
Joined: Tue May 23, 2006 10:41 am

Postby chiron on Fri May 26, 2006 5:53 pm

most shared hosting will have safe_mode enabled on php and so therefore
Code: Select all
set_time_limit(0);

will be restricted, however you could still run a bot for 30 seconds or < max execution time.
chiron
Newbie
Newbie
 
Posts: 9
Joined: Fri May 26, 2006 5:01 pm
Location: England

Postby bart416 on Sat May 27, 2006 10:58 am

chiron wrote:most shared hosting will have safe_mode enabled on php and so therefore
Code: Select all
set_time_limit(0);

will be restricted, however you could still run a bot for 30 seconds or < max execution time.

That isn't restricted actually.
bart416
Valued Member
Valued Member
 
Posts: 164
Joined: Fri Sep 30, 2005 6:50 pm

Postby Gimly on Sat May 27, 2006 11:20 am

Try mircscripts.com - good scripts there
Gimly
Newbie
Newbie
 
Posts: 14
Joined: Sat May 27, 2006 10:59 am

emech

Postby Narkoleptic on Wed May 31, 2006 1:16 pm

i didn't know where to start a new post , anyway can anyone help me i want to enable -seen command on emechs in the mech.set file it shows me this things " # If you compiled with SEEN support and decide not to use it, uncomment this.
#NOSEEN " what can i do ? it's my first time when i"m using this bot or better said it's first time when i use a bot in other operating system then win32 .
not another brick on the wall
Narkoleptic
Newbie
Newbie
 
Posts: 12
Joined: Wed Feb 01, 2006 12:17 am
Location: constanta

emech

Postby Narkoleptic on Fri Jun 02, 2006 4:51 am

all done i managed to see where was the problem it seemed that the emech archive that i got it was incomplete it didn't compiled corectly Razz
not another brick on the wall
Narkoleptic
Newbie
Newbie
 
Posts: 12
Joined: Wed Feb 01, 2006 12:17 am
Location: constanta

Re: nice.

Postby YoungD on Sun Oct 08, 2006 5:48 pm

blinker wrote:hmm.. nice topic. Very Happy hmm.. do anyone know some links or where can i get free mrc proxy?


You can google some
personally i like this site
lets u check the proxies online
http://www.aliveproxy.com/irc-proxy-list/
im sure there are better ones....

and for the clones topic....i know some servers hav 2 sessions per IP
but, with good program\script such as clonex
i could give u the url if i find it
here it is
http://usuarios.lycos.es/speaker7clonesx.zip
unzip it in ur scripts folder and type
/load -rs clonesx.mrc
then go in ur status window and right click
very useful tool that lets u use a proxylist (imported as a txt file, ip:port)
sock4 or sock5
give it a try Smile
YoungD
Contributer
Contributer
 
Posts: 34
Joined: Thu Sep 28, 2006 6:13 pm
Location: Italy

PreviousNext

Return to Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron