Skip to content

Commit

Permalink
Space
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramdhan Firmansyah committed Jun 7, 2020
1 parent 925c981 commit 1c8283a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/SqlScan.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Cvar1984\SqlScan;

use Cvar1984\SqlScan\Cli as Cout;
Expand Down Expand Up @@ -71,13 +72,14 @@ public function scan(string $url, string $filename) : void
if (preg_match('/' . $sqli . '/Usi', $result)) {
Cout::printSuccess('Hit (' . $sqli . ')');
Cout::printSuccess('Url (' . $urls . ')');
Cout::printSuccess('Saved (' . $filename . ')');

$file = @fopen($filename, 'a');
if (!$file) {
Cout::printWarning('warning can\'t write result');
} else {
fprintf($file, $urls . PHP_EOL);
fclose($file);
Cout::printSuccess('Saved (' . $filename . ')');
}
break;
}
Expand Down

0 comments on commit 1c8283a

Please sign in to comment.