Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* IdleClient v0.8 written by Milotic1406
- */
- function send($data, $socketname, $boic = FALSE) {
- global $socket;
- @socket_send($socket[$socketname], $data, strlen($data), 0x0);
- }
- include 'rooms.php';
- function Startup() {
- global $rooms, $username;
- foreach($rooms as $room) {
- Send("join chat:".$room."\n".chr(0), $username);
- }
- }
- include 'users.php';
- include 'passwords.php';
- foreach($users as $username) {
- $socket[$username] = socket_create(AF_INET,SOCK_STREAM,SOL_TCP);
- @socket_connect($socket[$username], "chat.deviantart.com", 3900);
- $connected = TRUE;
- Send("dAmnClient 0.3\nagent=IdleClient\n".chr(0), $username);
- $password = $passwords[$username];
- $tokenarray = getCookie($username, $password);
- $token = $tokenarray['cookie'];
- echo $username.' | '.$password."\n";
- echo $token."\n";
- Send("login ".$username."\npk=".$token."\n".chr(0), $username);
- Startup();
- }
- while($connected) {
- global $socket;
- foreach($socket as $username => $sock) {
- $response = "";
- @socket_recv($sock, $response,8192,0);
- echo $response."\n"; send("pong\n",$username);
- }
- }
- ?>
Add Comment
Please, Sign In to add comment