Skip to content

Commit b637ffc

Browse files
committed
v1.0.0
1 parent eb65f2e commit b637ffc

16 files changed

+112
-88
lines changed

Changelog.txt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,30 @@ Versioning guidelines for SemVer can be found at: https://semver.org/
99

1010
(none)
1111

12+
=== Version/Release 1.0.0 ===
13+
MAJOR RELEASE (BACKWARDS COMPATIBLE).
14+
15+
- [2020.03.01; Maikuolan]: Renamed "sigtool.php" to "SigTool.php" to align the
16+
name of the file more closely to the name of the class. Added a separate YAML
17+
class to handle all YAML functionality; SigTool will now extend that YAML
18+
class, instead of trying to define any YAML functionality itself (strictly
19+
speaking, this violates the idea of SigTool existing purely as a singular
20+
file, free of any dependencies; but, having now two files instead of one, in
21+
my opinion, isn't really a big deal, and its more maintainable now anyway, so
22+
I think, a good way to proceed moving forward; this violation is also the
23+
reason why I've opted to mark this release as a major release, as opposed to
24+
minor or patch). Added some code to guard against regular expression-based
25+
signatures that contain quantifiers that might exceed PCRE's limits, which
26+
could result in compilation failure.
27+
28+
- [2020.03.07; Bug-fix; Maikuolan]: A reconstructed "signatures.dat", after
29+
processing new signature files, should be prefixed by "---"; not by
30+
"0: false". The code wasn't properly accommodating this; Fixed.
31+
Refer github.com/phpMussel/SigTool/issues/5
32+
33+
Caleb M (Maikuolan),
34+
March 7, 2020.
35+
1236
=== Version/Release 0.2.3 ===
1337
PATCH RELEASE.
1438

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Before installing, please check the requirements. If these aren't met, SigTool w
1818
- >= 1GB free disk space (if working directly from disk) or available RAM (if using a RAM drive; recommended).
1919
- Ability to operate PHP in CLI-mode (command prompt, terminal, shell, etc).
2020

21-
SigTool exists as a stand-alone PHP file and doesn't have any external dependencies (other than the requirements listed above), and so, the only thing you need to do to "install" it, is download `sigtool.php`.
21+
To install SigTool, just download `SigTool.php` and `YAML.php`. :-)
2222

2323
SigTool can operate normally from a disk or storage medium in the same manner as any other PHP script. However, due to the large number of read/write operations it performs, it is highly recommended to operate it from a RAM drive, as this will slightly increase its speed and decrease excess disk read/write operations. Final output should not exceed approximately ~64MBs, but approximately ~1GB of free disk space or available RAM is required during normal operation due to temporary working files and in order to avoid read/write errors.
2424

@@ -27,9 +27,9 @@ SigTool can operate normally from a disk or storage medium in the same manner as
2727

2828
### How to use:
2929

30-
Note that SigTool is NOT a web-based PHP application (or web-app)! SigTool is a CLI-based PHP application (or CLI-app) intended to be used with terminal, shell, etc. It can be invoked by calling the PHP binary with the `sigtool.php` file as its first argument:
30+
Note that SigTool is NOT a web-based PHP application (or web-app)! SigTool is a CLI-based PHP application (or CLI-app) intended to be used with terminal, shell, etc. It can be invoked by calling the PHP binary with the `SigTool.php` file as its first argument:
3131

32-
`$ php sigtool.php`
32+
`$ php SigTool.php`
3333

3434
Help information will be displayed when SigTool is invoked, listing the possible flags (second argument) that can be used when operating SigTool.
3535

@@ -57,4 +57,4 @@ More information can be found in the documentation herein.
5757
---
5858

5959

60-
Last Updated: 24 December 2018 (2018.12.24).
60+
Last Updated: 7 March 2020 (2020.03.07).

_docs/readme.de.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Vor der Installation, bitte überprüfen Sie, was erforderlich ist. Wenn was erf
77
- >= 1GB freier Festplattenspeicher (wenn direkt von der Festplatte arbeiten) oder verfügbarer RAM (wenn Sie ein RAM-Laufwerk verwenden; empfohlen).
88
- Möglichkeit für PHP im CLI-Modus zu betreiben (Eingabeaufforderung, Terminal, Shell, u.s.w.).
99

10-
SigTool existiert als eigenständige PHP-Datei und hat keine externen Abhängigkeiten (abgesehen von den oben aufgeführten), und so, um es zu "installieren", müssen Sie `sigtool.php` herunterladen (nichts anderes wird benötigt).
10+
Um SigTool zu installieren, laden Sie einfach `SigTool.php` und `YAML.php` herunter. :-)
1111

1212
SigTool kann auf normale Weise von einem Datenträger oder Speichermedium auf die gleiche Weise wie jedes andere PHP-Skript arbeiten. Aufgrund jedoch der großen Anzahl der ausgeführten Lese/Schreibvorgänge, es wird dringend empfohlen, es von einem RAM-Laufwerk aus zu betreiben, weil dies seine Geschwindigkeit etwas erhöhen und überschüssige Lese/Schreibvorgänge reduzieren. Die endgültige Ausgabe sollte ungefähr ~64MB nicht überschreiten, aber im normalen Betrieb sind ungefähr ~1GB freier Festplattenspeicher oder verfügbarer RAM erforderlich aufgrund temporärer Arbeitsdateien und um Lese/Schreibfehler zu vermeiden.
1313

@@ -16,9 +16,9 @@ SigTool kann auf normale Weise von einem Datenträger oder Speichermedium auf di
1616

1717
### Benutzung:
1818

19-
Beachten Sie dass SigTool ist KEINE PHP-basierte Web-App! SigTool ist eine PHP-basierte CLI-App, bestimmt zur Verwendung mit Terminal, Shell, u.s.w. Es kann aufgerufen werden, indem die PHP-Binärdatei mit der Datei `sigtool.php` als erstes Argument aufgerufen:
19+
Beachten Sie dass SigTool ist KEINE PHP-basierte Web-App! SigTool ist eine PHP-basierte CLI-App, bestimmt zur Verwendung mit Terminal, Shell, u.s.w. Es kann aufgerufen werden, indem die PHP-Binärdatei mit der Datei `SigTool.php` als erstes Argument aufgerufen:
2020

21-
`$ php sigtool.php`
21+
`$ php SigTool.php`
2222

2323
Hilfeinformationen werden angezeigt, wenn SigTool aufgerufen wird, der möglichen Flaggen auflistet (das zweite Argument), die beim Betrieb von SigTool verwendet werden können.
2424

@@ -28,13 +28,13 @@ Möglichen Flaggen:
2828
- `p`: Verarbeitet Signaturdateien zur Verwendung mit phpMussel.
2929
- `m`: Holt `main.cvd` vor der Verarbeitung.
3030
- `d`: Holt `daily.cvd` vor der Verarbeitung.
31-
- `u`: Aktualisiert SigTool (lädt `sigtool.php` erneut herunter und die; es werden keine Prüfungen durchgeführt).
31+
- `u`: Aktualisiert SigTool (lädt `SigTool.php` erneut herunter und die; es werden keine Prüfungen durchgeführt).
3232

3333
Die Ausgabe ist verschiedenen phpMussel-Signaturdateien, direkt aus der ClamAV-Signaturdatenbank in zwei Formen generiert:
3434
- Signaturdateien, die direkt in das `/vault/signatures/`-Verzeichnis eingefügt werden können.
3535
- GZ-komprimierte Kopien der Signaturdateien, mit denen das `phpMussel/Signatures`-Repository aktualisiert werden kann.
3636

37-
Die Ausgabe wird direkt in demselben Verzeichnis wie `sigtool.php` erzeugt. Quelldateien und alle temporären Arbeitsdateien werden im laufenden Betrieb gelöscht (so, wenn Sie Kopien von `daily.cvd` und `main.cvd` behalten möchten, Sie sollten Kopien erstellen, bevor Sie die Signaturdateien verarbeiten).
37+
Die Ausgabe wird direkt in demselben Verzeichnis wie `SigTool.php` erzeugt. Quelldateien und alle temporären Arbeitsdateien werden im laufenden Betrieb gelöscht (so, wenn Sie Kopien von `daily.cvd` und `main.cvd` behalten möchten, Sie sollten Kopien erstellen, bevor Sie die Signaturdateien verarbeiten).
3838

3939
Wenn Sie mit SigTool neue Signaturdateien erstellen, kann es sein dass der Antiviren-Scanner Ihres Computers versucht, die neu erstellten Signaturdateien zu löschen oder in die Quarantäne zu stellen. Dies ist darauf zurückzuführen, dass die Signaturdateien manchmal Daten enthalten, die den Daten sehr ähnlich sind, nach denen Ihr Antivirus beim Scannen sucht. Die von SigTool erzeugten Signaturdateien enthalten jedoch keinen ausführbaren Code und sind völlig harmlos. Wenn dieses Problem auftritt, können Sie versuchen, Ihren Antiviren-Scanner vorübergehend zu deaktivieren, oder Ihren Antiviren-Scanner so konfigurieren, dass das Verzeichnis, in dem Sie neue Signaturdateien erstellen, in die Whitelist aufgenommen wird.
4040

@@ -98,4 +98,4 @@ clamav_swf_regex.db | Es handelt sich um SWF-Dateien; Funktioniert mit Rohdaten;
9898
---
9999

100100

101-
Zuletzt aktualisiert: 26 Dezember 2018 (2018.12.26).
101+
Zuletzt aktualisiert: 7 März 2020 (2020.03.07).

_docs/readme.en.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Before installing, please check the requirements. If these aren't met, SigTool w
77
- >= 1GB free disk space (if working directly from disk) or available RAM (if using a RAM drive; recommended).
88
- Ability to operate PHP in CLI-mode (command prompt, terminal, shell, etc).
99

10-
SigTool exists as a stand-alone PHP file and doesn't have any external dependencies (other than the requirements listed above), and so, the only thing you need to do to "install" it, is download `sigtool.php`.
10+
To install SigTool, just download `SigTool.php` and `YAML.php`. :-)
1111

1212
SigTool can operate normally from a disk or storage medium in the same manner as any other PHP script. However, due to the large number of read/write operations it performs, it is highly recommended to operate it from a RAM drive, as this will slightly increase its speed and decrease excess disk read/write operations. Final output should not exceed approximately ~64MBs, but approximately ~1GB of free disk space or available RAM is required during normal operation due to temporary working files and in order to avoid read/write errors.
1313

@@ -16,9 +16,9 @@ SigTool can operate normally from a disk or storage medium in the same manner as
1616

1717
### How to use:
1818

19-
Note that SigTool is NOT a PHP-based web application (or web-app)! SigTool is a PHP-based CLI application (or CLI-app) intended to be used with terminal, shell, etc. It can be invoked by calling the PHP binary with the `sigtool.php` file as its first argument:
19+
Note that SigTool is NOT a PHP-based web application (or web-app)! SigTool is a PHP-based CLI application (or CLI-app) intended to be used with terminal, shell, etc. It can be invoked by calling the PHP binary with the `SigTool.php` file as its first argument:
2020

21-
`$ php sigtool.php`
21+
`$ php SigTool.php`
2222

2323
Help information will be displayed when SigTool is invoked, listing the possible flags (second argument) that can be used when operating SigTool.
2424

@@ -28,13 +28,13 @@ Possible flags:
2828
- `p`: Process signature files for use with phpMussel.
2929
- `m`: Download `main.cvd` before processing.
3030
- `d`: Download `daily.cvd` before processing.
31-
- `u`: Update SigTool (redownloads `sigtool.php` and dies; no checks performed).
31+
- `u`: Update SigTool (redownloads `SigTool.php` and dies; no checks performed).
3232

3333
Output produced is various phpMussel signature files generated directly from the ClamAV signatures database, in two forms:
3434
- Signature files that can be inserted directly into the `/vault/signatures/` directory.
3535
- GZ-compressed copies of the signature files that can be used to update the `phpMussel/Signatures` repository.
3636

37-
Output is produced directly into the same directory as `sigtool.php`. Source files and all temporary working files will be deleted during the course of operation (so, if you want to keep copies of `daily.cvd` and `main.cvd`, you should make copies before processing the signature files).
37+
Output is produced directly into the same directory as `SigTool.php`. Source files and all temporary working files will be deleted during the course of operation (so, if you want to keep copies of `daily.cvd` and `main.cvd`, you should make copies before processing the signature files).
3838

3939
When using SigTool to generate new signature files, it's possible that your computer's anti-virus scanner may attempt to delete or quarantine the newly generated signature files. This happens because sometimes, the signature files may contain data very similar to the data that your anti-virus looks for when scanning. However, the signature files generated by SigTool don't contain any executable code, and are completely benign. If you encounter this problem, you can try to temporarily disable your anti-virus scanner, or configure your anti-virus scanner to whitelist the directory where you're generating new signature files.
4040

@@ -98,4 +98,4 @@ clamav_swf_regex.db | Targets SWF files; Works with raw data; Signatures can con
9898
---
9999

100100

101-
Last Updated: 26 December 2018 (2018.12.26).
101+
Last Updated: 7 March 2020 (2020.03.07).

_docs/readme.es.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Antes de la instalación, compruebe los requisitos. Si no se cumplen, SigTool no
77
- >= 1GB de espacio libre en disco (si trabaja directamente desde el disco) o RAM disponible (si utiliza una unidad RAM; recomendado).
88
- Capacidad para operar PHP en modo CLI (comando, terminal, shell, etc).
99

10-
SigTool existe como un archivo PHP autónomo y no tiene dependencias externas (distintos de los requisitos enumerados anteriormente), y así, lo único que tienes que hacer para "instalarlo", es descargar `sigtool.php`.
10+
Para instalar SigTool, simplemente descargue `SigTool.php` y `YAML.php`. :-)
1111

1212
SigTool puede funcionar normalmente desde un disco o medio de almacenamiento de la misma manera que cualquier otro script PHP. Aunque, debido al gran número de operaciones de lectura/escritura que realiza, es altamente recomendable operarlo desde una unidad RAM, ya que esto aumentará ligeramente su velocidad y disminuirá el exceso de operaciones de lectura/escritura de disco. La salida final no debe exceder aproximadamente ~64MBs, pero aproximadamente ~1GB de espacio libre en disco o RAM disponible se requiere durante el funcionamiento normal debido a los archivos temporales de trabajo ya fin de evitar errores de lectura/escritura.
1313

@@ -16,9 +16,9 @@ SigTool puede funcionar normalmente desde un disco o medio de almacenamiento de
1616

1717
### Cómo utilizar:
1818

19-
Tenga en cuenta que SigTool NO es una aplicación web basada en PHP (o web-app)! SigTool es una aplicación CLI basada en PHP (o CLI-app) destinado a ser utilizado con terminal, shell, etc. Se puede invocar llamando al binario PHP con el archivo `sigtool.php` como su primer argumento:
19+
Tenga en cuenta que SigTool NO es una aplicación web basada en PHP (o web-app)! SigTool es una aplicación CLI basada en PHP (o CLI-app) destinado a ser utilizado con terminal, shell, etc. Se puede invocar llamando al binario PHP con el archivo `SigTool.php` como su primer argumento:
2020

21-
`$ php sigtool.php`
21+
`$ php SigTool.php`
2222

2323
La información de ayuda se mostrará cuando se invoque SigTool, enumerando las posibles banderas (segundo argumento) que se pueden utilizar cuando se utiliza SigTool.
2424

@@ -28,13 +28,13 @@ Las posibles banderas:
2828
- `p`: Procese archivos de firmas para uso con phpMussel.
2929
- `m`: Descargue `main.cvd` antes de procesar.
3030
- `d`: Descargue `daily.cvd` antes de procesar.
31-
- `u`: Actualizar SigTool (descarga `sigtool.php` de nuevo y die; no se realizan cualquier comprobaciones).
31+
- `u`: Actualizar SigTool (descarga `SigTool.php` de nuevo y die; no se realizan cualquier comprobaciones).
3232

3333
La salida producida es varios archivos de firmas para phpMussel generados directamente de la base de datos de firmas para ClamAV, de dos formas:
3434
- Archivos de firmas que se pueden insertar directamente en el directorio `/vault/signatures/`.
3535
- Copias de los archivos de firmas comprimidos con GZ que se pueden utilizar para actualizar el repositorio `phpMussel/Signatures`.
3636

37-
La salida se produce directamente en el mismo directorio que `sigtool.php`. Los archivos fuente y todos los archivos de trabajo temporales se borrarán durante el curso de la operación (por lo tanto, si desea guardar copias de `daily.cvd` y `main.cvd`, debe hacer copias antes de procesar los archivos de firmas).
37+
La salida se produce directamente en el mismo directorio que `SigTool.php`. Los archivos fuente y todos los archivos de trabajo temporales se borrarán durante el curso de la operación (por lo tanto, si desea guardar copias de `daily.cvd` y `main.cvd`, debe hacer copias antes de procesar los archivos de firmas).
3838

3939
Cuando lo usar SigTool para generar nuevos archivos de firmas, es posible que el analizador antivirus de su computadora intentará eliminar o poner en cuarentena los archivos de firmas generados. Esto puede ocurrir porque, a veces, los archivos de firmas pueden contener datos muy similares a los datos que su antivirus busca al escanear. Sin embargo, los archivos de firmas generados por SigTool no contienen ningún código ejecutable y son completamente benignos. Si encuentra este problema, puede intentar desactivar temporalmente su analizador antivirus, o configurar su antivirus para incluir en la lista blanca el directorio donde está generando los archivos de firmas nuevos.
4040

@@ -98,4 +98,4 @@ clamav_swf_regex.db | Destinado a archivos SWF; Funciona con datos sin procesar;
9898
---
9999

100100

101-
Última Actualización: 26 Diciembre de 2018 (2018.12.26).
101+
Última Actualización: 7 de Marzo de 2020 (2020.03.07).

0 commit comments

Comments
 (0)