Skip to content

Commit

Permalink
Better interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Cvar1984 committed Dec 23, 2019
1 parent 2f74ffc commit d1a8c2a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Binary file modified build/main.phar
Binary file not shown.
4 changes: 3 additions & 1 deletion main.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
use Cvar1984\SqlScan\Cli;
use Cvar1984\SqlScan\Dorker;
try {
$path = 'phar://main.phar/assets/banner_' . rand(0, 7) . '.txt';
$count = scandir('phar://main.phar/assets/');
$count = sizeof($count);
$path = 'phar://main.phar/assets/banner_' . rand(0, ($count - 2)) . '.txt';
$file = fopen($path, 'r');
if ($file) {
$file = fread($file, filesize($path));
Expand Down
4 changes: 2 additions & 2 deletions src/SqlScan.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ public function scan(string $url, string $filename)
Cli::printError('Please insert url');
}

Cli::printLine('extracting links');
Cli::printLine('Extracting : ' . $url);
$url = $parser->getHrefLinks();
$count = sizeof($url);
Cli::printLine('Total raw urls : ' . $count);

if (!empty($count)) {
$urlz=array();
$urlz = array();
foreach ($url as $urls) {
if (pathinfo($urls[0], PATHINFO_EXTENSION) == 'pdf') continue;
elseif (pathinfo($urls[0], PATHINFO_EXTENSION) == 'zip') continue;
Expand Down

0 comments on commit d1a8c2a

Please sign in to comment.