Skip to content

Commit

Permalink
Merge pull request 'fix progress bug, add dockerfile' (#7) from dev i…
Browse files Browse the repository at this point in the history
  • Loading branch information
oyeaussie committed Jun 19, 2024
2 parents e25f29f + 5e2d1f5 commit 0a137e9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#Docker File for SP using oyeaussie/docker-phalcon
FROM oyeaussie/docker-phalcon

WORKDIR /var/www/html/


RUN git clone https://github.com/oyeaussie/PHPPwnedPasswordsDownloader.git
RUN mkdir /var/www/html/PHPPwnedPasswordsDownloader/data
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
RUN php composer-setup.php
RUN php -r "unlink('composer-setup.php');"
RUN mv composer.phar /var/www/html/PHPPwnedPasswordsDownloader/composer
ENV COMPOSER_ALLOW_SUPERUSER=1
3 changes: 3 additions & 0 deletions src/Downloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,9 @@ public function run($arg = [])
if ($this->check) {
$message = 'Checking hash ' . strtoupper($convertedHash) . '... (' . ($hashCounter + 1) . '/' . $this->hashRangesEnd . ')';
}
if ($this->concurrent > 0) {
$message = 'Adding hash to pool ' . strtoupper($convertedHash) . '... (' . ($hashCounter + 1) . '/' . $this->hashRangesEnd . ')';
}

$this->updateProgress($message);
}
Expand Down

0 comments on commit 0a137e9

Please sign in to comment.