Government Security
Network Security Resources

Jump to content

Photo

Mzk - Mezzenger Klient (php Class)

- - - - - server bug .net php spam
  • Please log in to reply
2 replies to this topic

#1 sirdarckcat

sirdarckcat

    Private

  • Members
  • 8 posts

Posted 27 January 2007 - 04:39 PM

Hello

I have made a PHP class for making bots and webmessengers with PHP.

Its use is very simple for example:

This function will simply login to the .NET Passport account.. and show the response of the server.
<?php
	include("mzk.php"); 
	$t = new MezzengerKlient; 
	$t->debug=true; 
	$t->init("mail@mail.com","password"); 
	$t->login(); 
	$t->main(); 
	$t->quit(); 
?>
This function will say "Hello" to all contacts online.
<?php
	include("mzk.php"); 
	$t = new MezzengerKlient; 
	$t->debug=true;
	$t->onLogin="spam";
	$t->init("mail@mail.com","password"); 
	$t->login(); 
	$t->main(); 
	$t->quit(); 
	
	function spam(){
		global $t;
		for ($i=0;isset($t->onlinefriends[$i]);$i++){
			$cont=@split(' ',$t->onlinefriends[$i]);
			$t->MessageToNew($cont[0],"Hello");
		}
	}
?>
This function will change the bot's nick to "I am a bot" when logged in.
<?php
	include("mzk.php"); 
	$t = new MezzengerKlient; 
	$t->debug=true;
	$t->onLogin="change_nick";
	$t->init("mail@mail.com","password"); 
	$t->login(); 
	$t->main(); 
	$t->quit(); 
	
	function change_nick(){
		global $t;
		$t->setNick('I am a bot');
	}
?>

The project page is: http://code.google.com/p/mzk/
The documentation of the use of the class can be found in the wiki.
The code can be found here: http://mzk.googlecode.com/svn/trunk/

The difference between this class and others is that this is commented in english (the other one I found was in chinese), uses Events :P and is fully documented.

Later I will add compatibility for exchanging "emoticons" and file transfer.. :)

Thats all and I hope its usefull ;)
Greetz!!

PS.
More examples can be found at the download section here (a contact grabber and a bot): http://code.google.c.../downloads/list

#2 Guest_Dennis_*

Guest_Dennis_*
  • Guests

Posted 31 January 2007 - 05:16 PM

moved :)

#3 The_deViL

The_deViL

    Private First Class

  • Members
  • 30 posts

Posted 08 April 2010 - 10:26 PM

Hi,

Looks like an awesome class. How hard do you think it would be to implement a function to grab someones profile picture? My MSNP9 is a bit rusty (haven't done anything on MSN for about 2 years). I'm checking if it's possible to make a bot that saves your profile image if you sends it a message.

Regards,
Niklas





Also tagged with one or more of these keywords: server, bug, .net, php, spam