Guest User

Untitled

a guest
Jan 21st, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. <?php
  2. /* IdleClient v0.8 written by Milotic1406
  3. */
  4.  
  5. $username = "#";
  6. $token = "#";
  7.  
  8. function Send($data, $boic = FALSE ){
  9. global $socket;
  10. @socket_send($socket, $data, strlen($data), 0x0);
  11. }
  12.  
  13. $socket=socket_create(AF_INET,SOCK_STREAM,SOL_TCP);
  14. if($socket){
  15. @socket_connect($socket,"chat.deviantart.com",3900);
  16. $connected=TRUE;
  17. }
  18. // include 'rooms.php';
  19. function Startup() {
  20. // global $rooms;
  21. // foreach($rooms as $room) {
  22. Send("join chat:Bothub\n", chr(0));
  23. // }
  24. }
  25.  
  26. Send("dAmnClient 0.3\nagent=IdleClient\n".chr(0));
  27. Send("login ".$username."\npk=".$token."\n".chr(0));
  28. Startup();
  29. while($connected) {
  30. $response = "";
  31. @socket_recv($socket,$response,8192,0);
  32. echo $response."\n";
  33. Send("pong\n".chr(0));
  34. }
  35. ?>
Add Comment
Please, Sign In to add comment