protected function saveTxtBtwp($data, $filename)
{
$file = __DIR__ . '/../results/exploits/btwp/' . $filename . '.txt';
$myfile = fopen($file, 'w') or die('Unable to open file!');
$msg = '';
if (is_array($data)) {
foreach ($data as $keyResult => $results) {
foreach ($results as $keyResult => $result) {
$msg .= $keyResult . ' : ' . $result . ' -- ';
}
fwrite($myfile, $msg);
}
}
fclose($myfile);
}