├── .gitignore ├── ChangeLog ├── LICENSE ├── README.md ├── acl_security.pl ├── backup_restore.cgi ├── bin ├── README ├── amavis-inject ├── gunzip └── purge_quarantine ├── clamav-lib.pl ├── config ├── config-debian-linux ├── config-fedora-linux ├── config-freebsd ├── config-mandriva-linux ├── config-openbsd ├── config-redhat-linux ├── config-suse-linux ├── config-ubuntu-linux ├── config.info ├── config.info.fr ├── css └── clamav.css ├── data ├── clamav_predefined.pm ├── clamav_remote_actions.pm ├── days.pm ├── freshclam_predefined.pm ├── system_files.pm └── viruses_prefixes.pm ├── defaultacl ├── help ├── backup_restore.fr.html ├── backup_restore.html ├── index.fr.html ├── index.html ├── logs_main.fr.html ├── logs_main.html ├── quarantine_main.fr.html ├── quarantine_main.html ├── quarantine_resend.fr.html ├── quarantine_resend.html ├── quarantine_viewmail.fr.html ├── quarantine_viewmail.html ├── remote_control_main.fr.html ├── remote_control_main.html ├── scandir_main.fr.html ├── scandir_main.html ├── settings_main.fr.html ├── settings_main.html ├── signatures_main.fr.html ├── signatures_main.html ├── updates_main.fr.html ├── updates_main.html ├── vdb_search_main.fr.html └── vdb_search_main.html ├── images ├── backup_restore.png ├── icon.gif ├── logs.png ├── quarantine.png ├── remote_control.png ├── scandir.png ├── settings.png ├── signatures.png ├── updates.png └── vdb_search.png ├── index.cgi ├── js └── clamav.js ├── lang ├── en └── fr ├── lib └── ClamavConstants.pm ├── logs_main.cgi ├── module.info ├── quarantine_main.cgi ├── quarantine_resend.cgi ├── quarantine_viewlog.cgi ├── quarantine_viewmail.cgi ├── remote_control_main.cgi ├── scandir_main.cgi ├── settings_main.cgi ├── signatures_1step.cgi ├── signatures_2step.cgi ├── signatures_main.cgi ├── uninstall.pl ├── updates_main.cgi └── vdb_search_main.cgi /.gitignore: -------------------------------------------------------------------------------- 1 | .*swp 2 | *~ 3 | tmp 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | > ***IMPORTANT:*** 2 | > 3 | > _We are actively looking for quarantines (mbox files or entire directories)._ 4 | > _Please, contact me if you can share them to help this project._ 5 | > 6 | > _Thanks!_ 7 | 8 | # wbmclamav 9 | 10 | wbmclamav is a [Webmin](http://www.webmin.com) module for [ClamAV](https://www.clamav.net) antivirus. It can be used to update ClamAV / Freshclam configuration, manage quarantine, search in the viruses database and keep it up-to-date, scan local directories, control remote ClamAV, extract signatures from new viruses, and so on. 11 | 12 | ## Installation 13 | 14 | ### From a wbm archive: 15 | 16 | Open the Webmin modules manager and upload the wbmclamav file. 17 | 18 | ### From the Git repository: 19 | 20 | 1. Rename your local Git repository (optional): 21 | ```bash 22 | mv wbmclamav/ clamav/ 23 | ``` 24 | 2. Build a gzipped tarball archive: 25 | ```bash 26 | tar zcvf wbmclamav.wbm.gz clamav/ 27 | ``` 28 | 3. Open the Webmin modules manager and upload your brand new wbmclamav file. 29 | 30 | ## Perl dependencies 31 | 32 | You need at least the following Perl modules in order to run wbmclamav: 33 | 34 | - Date::Manip 35 | - File::Basename 36 | - File::Path 37 | - File::Find 38 | - File::Copy 39 | - HTML::Entities 40 | - IO::Socket 41 | - POSIX 42 | 43 | Depending on the software installed on your system and your wbmclamav configuration options, you may also need the following modules: 44 | 45 | - Compress::Zlib 46 | - GD 47 | - GD::Graph::lines 48 | - Getopt::Long 49 | - IO::File 50 | - LWP::UserAgent 51 | - Mail::Internet 52 | - Mail::Mbox::MessageParser 53 | - Mail::SpamAssassin 54 | - Net::SMTP 55 | 56 | All those modules can be loaded from CPAN. 57 | 58 | As root you can try: 59 | 60 | ```bash 61 | # perl -MCPAN -e shell 62 | CPAN Shell> install module1 module2 ... 63 | ``` 64 | 65 | ## License 66 | GPL 67 | -------------------------------------------------------------------------------- /acl_security.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | # Copyright (C) 2003-2008 4 | # Emmanuel Saracco 5 | # 6 | # GNU GENERAL PUBLIC LICENSE 7 | 8 | require 'clamav-lib.pl'; 9 | 10 | sub acl_security_form ( $ ) 11 | { 12 | $o = $_[0]; 13 | 14 | print qq($text{"BACKUP_RESTORE"}); 15 | &clamav_print_line ($text{'CONTROL'}, "backup_restore_manage", $o); 16 | 17 | print qq(ClamAV); 18 | &clamav_print_line ($text{'START_STOP'}, "clamav_start_stop",$o); 19 | &clamav_print_line ($text{'REMOTE_CONTROL'}, "clamav_remote_control",$o); 20 | 21 | print qq($text{'QUARANTINE'}); 22 | &clamav_print_line ($text{'VIEW'}, "quarantine_view",$o); 23 | &clamav_print_line ($text{'DELETE'}, "quarantine_delete",$o); 24 | &clamav_print_line ($text{'RESEND'}, "quarantine_resend",$o); 25 | &clamav_print_line ($text{'EXPORT'}, "quarantine_export",$o); 26 | 27 | print qq($text{'DATABASE_UPDATE'}); 28 | &clamav_print_line ($text{'VIEW'}, "database_update_view",$o); 29 | &clamav_print_line ($text{'UPDATE'}, "database_update_update",$o); 30 | 31 | print qq($text{'DIRECTORIES_CHECK'}); 32 | &clamav_print_line ($text{'CHECK'}, "directories_check_view",$o); 33 | &clamav_print_line ($text{'DELETE'}, "directories_check_delete",$o); 34 | 35 | print qq($text{'GLOBAL_SETTINGS'}); 36 | &clamav_print_line ($text{'VIEW'}, "global_settings_view",$o); 37 | &clamav_print_line ($text{'WRITE_DELETE'}, "global_settings_write",$o); 38 | 39 | print qq($text{'LOGS_VIEWER'}); 40 | &clamav_print_line ($text{'VIEW'}, "logs_viewer_view",$o); 41 | 42 | print qq($text{'VIRUSES_SEARCH'}); 43 | &clamav_print_line ($text{'SEARCH'}, "database_search_search",$o); 44 | 45 | print qq($text{'SIGNATURES_EXTRACTION'}); 46 | &clamav_print_line ($text{'USE'}, "signature_use",$o); 47 | } 48 | 49 | sub acl_security_save 50 | { 51 | foreach (( 52 | 'clamav_remote_control', 'clamav_start_stop', 'quarantine_view', 53 | 'quarantine_delete', 'quarantine_resend', 'quarantine_purge', 54 | 'quarantine_export', 'database_update_view', 'database_update_update', 55 | 'directories_check_view', 'directories_check_delete', 56 | 'global_settings_view', 'global_settings_write', 'logs_viewer_view', 57 | 'database_search_search', 'signature_use', 'backup_restore_manage' 58 | )) {$_[0]->{$_} = $in{$_}} 59 | } 60 | 61 | sub clamav_print_line ( $ $ $ ) 62 | { 63 | my ($title, $var, $o) = @_; 64 | 65 | printf (" 66 | 67 | $title 68 |  Yes  No 69 |   70 | 71 | ", 72 | $o->{$var} == 1 ? ' checked' : '', 73 | $o->{$var} == 0 ? ' checked' : ''); 74 | } 75 | -------------------------------------------------------------------------------- /backup_restore.cgi: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | # Copyright (C) 2003-2019 4 | # Emmanuel Saracco 5 | # 6 | # GNU GENERAL PUBLIC LICENSE 7 | 8 | require './clamav-lib.pl'; 9 | &clamav_check_acl ('backup_restore_manage'); 10 | &ReadParse (); 11 | 12 | my ($_success, $_error) = ('', ''); 13 | my $i = 0; 14 | my @files = (); 15 | my $restore_enabled = 0; 16 | 17 | &clamav_header ($text{'LINK_BACKUP_RESTORE_PAGE'}); 18 | 19 | &clamav_main_check_config (); 20 | &clamav_check_deps (); 21 | 22 | if (defined($in{"init"})) 23 | { 24 | &clamav_system_backup (); 25 | $_success = $text{"MSG_SUCCESS_BACKUP"}; 26 | } 27 | elsif (defined($in{"restore"})) 28 | { 29 | while (my ($k, $v) = each (%in)) 30 | { 31 | push (@files, $v) if ($k =~ /^file/); 32 | } 33 | 34 | &clamav_system_restore (\@files, 0); 35 | $_success = $text{"MSG_SUCCESS_RESTORE"}; 36 | } 37 | 38 | $restore_enabled = &clamav_system_ok ("restore"); 39 | 40 | print qq(
); 41 | 42 | print qq(

$text{'BACKUP_RESTORE_DESCRIPTION'}

); 43 | 44 | print qq(); 45 | print qq(), 47 | ($restore_enabled) ? ' disabled' : ''; 48 | if (!&clamav_first_backup ()) 49 | { 50 | print qq(), 70 | ($restore_enabled) ? '' : ' disabled'; 71 | } 72 | print qq(
); 46 | printf qq(
); 51 | print qq(); 52 | ##print qq(); 53 | print qq(); 54 | foreach my $path (keys %{&clamav_get_system_files ()}) 55 | { 56 | my $checked = 1; 57 | next if (! -f "$path"); 58 | next if (! &clamav_backup_item_exists ($path)); 59 | 60 | $checked = grep (/$path/, @files) if (@files); 61 | 62 | print qq(); 63 | ##printf qq(), $i++, $path, " checked", " disabled"; 64 | # FIXME Must we let the user choose the files to restore? 65 | #printf qq(), $i++, $path, ($checked) ? " checked" : "", ($restore_enabled) ? "" : " disabled"; 66 | } 67 | print "
$text{"FILE"}$text{"RESTORE"}
$text{"FILES"}
$path
"; 68 | printf 69 | qq(

); 73 | 74 | print qq(
); 75 | 76 | &clamav_footer ('', $text{'RETURN_INDEX_MODULE'}, $_success, $_error, 77 | sprintf($text{'BACKUP_RESTORE_INFO'}, $module_name)); 78 | -------------------------------------------------------------------------------- /bin/README: -------------------------------------------------------------------------------- 1 | 2 | - amavis-inject: used only when it is not found on the webmin server. 3 | - gunzip: used to bypass gunzip error when file is not gziped. 4 | - purge_quarantine: used to delete quarantine directory content. 5 | 6 | All those scripts must have the execute flag on. 7 | -------------------------------------------------------------------------------- /bin/amavis-inject: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl -w 2 | # 3 | # Program to reinject messages that were quarantined by AMaViS 4 | # 5 | # Based on Furio Ercolessi's "infect" script 6 | 7 | use Getopt::Long; 8 | use IO::File; 9 | use Net::SMTP; 10 | 11 | use strict; 12 | 13 | sub help { 14 | print STDERR < \$o_sender, 52 | 'recipients|r=s' => \@o_recipients, 53 | 'add-recipient|a=s' => \@o_add_recipients, 54 | 'smtp|S:s' => \$o_smtp, 55 | 'bsmtp|b|B' => \$o_bsmtp, 56 | 'help|h' => \$o_help 57 | ); 58 | 59 | sub read_headers { 60 | my $fh=shift; 61 | my @headers; 62 | my $sender; 63 | my @recipients; 64 | while (<$fh>) { 65 | last if ( /^\s*$/ ); # read till an empty line 66 | if ( /^X-Quarantined-From:\s*(.*)\s*$/ ) { 67 | $sender = $1 unless ( $sender ); 68 | } elsif ( /^X-Quarantined-To:\s*(.*)\s*$/ ) { 69 | push @recipients,split(/ *, */,$1); 70 | } elsif ( /^Return-Path:\s*(.*)\s*$/ ) { 71 | $sender = $1 unless ( $sender ); 72 | } elsif ( /^X-Would-Be-Delivered-To:\s*(.*)\s*$/ ) { 73 | push @recipients,split(/ *, */,$1); 74 | } else { # other headers line 75 | push(@headers,$_); # stored in @headers 76 | } 77 | } 78 | # Add brackets around sender, recipients if necessary 79 | foreach ($sender, @recipients) { 80 | $_='' unless (defined $_); 81 | /^<.*>$/ || do { 82 | $_="<$_>"; 83 | } 84 | } 85 | return ($sender, \@recipients, \@headers); 86 | } 87 | 88 | sub do_bsmtp { 89 | my $fh=shift; 90 | my $sender=shift; 91 | my @recipients=@{shift()}; 92 | my @headers=@{shift()}; 93 | 94 | print "HELO localhost\n"; 95 | print "MAIL FROM: $sender\n"; 96 | foreach (@recipients) { 97 | print "RCPT TO: $_\n"; 98 | } 99 | print "DATA\n"; 100 | foreach (@headers) { 101 | chomp; 102 | print "$_\n"; 103 | } 104 | print "\n"; 105 | while (<$fh>) { 106 | chomp; 107 | if (/^\./) { 108 | print '.'; 109 | } 110 | print "$_\n"; 111 | } 112 | print ".\n"; 113 | return 1; 114 | } 115 | 116 | sub do_smtp { 117 | my $fh=shift; 118 | my $sender=shift; 119 | my @recipients=@{shift()}; 120 | my @headers=@{shift()}; 121 | my $mailhost=shift; 122 | 123 | my $smtp=Net::SMTP->new($mailhost) or return 0; 124 | $smtp->mail($sender) or return 0; 125 | $smtp->recipient(@recipients) or return 0; 126 | $smtp->data() or return 0; 127 | foreach (@headers) { 128 | chomp; 129 | $smtp->datasend("$_\n") or return 0; 130 | } 131 | $smtp->datasend("\n"); 132 | while (<$fh>) { 133 | chomp; 134 | $smtp->datasend("$_\n") or return 0; 135 | } 136 | $smtp->dataend() or return 0; 137 | $smtp->quit() or return 0; 138 | return 1; 139 | } 140 | 141 | ######################################################################## 142 | 143 | if ($o_help 144 | || (defined $o_bsmtp && defined $o_smtp)) { 145 | help(); 146 | exit 0; 147 | } 148 | 149 | my @files; 150 | 151 | if ($#ARGV>=0) { 152 | push @files, @ARGV; 153 | } 154 | else { 155 | push @files, "/dev/stdin"; 156 | } 157 | 158 | if ((defined $o_smtp) && (! $o_smtp)) { 159 | $o_smtp='localhost:25'; 160 | } 161 | 162 | foreach (@files) { 163 | my $fh=IO::File->new($_) or die; 164 | my $sender; 165 | my $recipients_ref; 166 | my $headers_ref; 167 | ($sender,$recipients_ref,$headers_ref)=read_headers($fh); 168 | 169 | my $result; 170 | 171 | if (defined $o_sender) { 172 | $sender=$o_sender; 173 | } 174 | ; 175 | if (@o_recipients) { 176 | @$recipients_ref=@o_recipients; 177 | } 178 | if (@o_add_recipients) { 179 | push @$recipients_ref,@o_add_recipients; 180 | } 181 | 182 | if (defined $o_smtp) { 183 | $result=do_smtp($fh,$sender,$recipients_ref,$headers_ref,$o_smtp); 184 | } else { 185 | $result=do_bsmtp($fh,$sender,$recipients_ref,$headers_ref); 186 | } 187 | unless (defined $result) {print STDERR "An error occured while sending $_\n"}; 188 | } 189 | 190 | =head1 NAME 191 | 192 | amavis-inject - Resend AMaViS-ng's quarantined messages 193 | 194 | =head1 SYNOPSIS 195 | 196 | amavis-inject [ options ] [ -- ] [ file ...] 197 | 198 | =head1 DESCRIPTION 199 | 200 | amavis-inject can process a message that has been put into a 201 | quarantine directroy by AMaViS-ng. 202 | 203 | If no files are specified, one message is read from STDIN. 204 | 205 | Unless specified, Envelope-From and Envelope-To are taken from 206 | X-Quarantine-[From,To] headers in message file. These headers will be 207 | removed when sending. 208 | 209 | =head1 OPTIONS 210 | 211 | =item -s, --sender 212 | 213 | Set Sender address in envelope, ignoring information from file 214 | 215 | =item -r, --recipient 216 | 217 | Set Recipients in envelope, ignoring information from file 218 | 219 | =item -b, --bsmtp 220 | 221 | Generate BSMTP output (default) 222 | 223 | =item -S[host:[port]] --smtp [host:[port]] 224 | 225 | Send mail via SMTP 226 | 227 | =item -a, --add-recipient 228 | 229 | Add Recipient address to envelope 230 | 231 | -h, --help 232 | 233 | Display a short usage summary. 234 | 235 | =head1 AUTHOR 236 | 237 | amavis-inject was written by Hilko Bengen 238 | Ebengen+amavis@hilluzination.deE 239 | 240 | =head1 COPYRIGHT 241 | 242 | amavis-inject may be copied amd modified under the terms of the GNU 243 | General Public License. 244 | 245 | =cut 246 | -------------------------------------------------------------------------------- /bin/gunzip: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl -w 2 | 3 | # Copyright (C) 2003-2019 4 | # Emmanuel Saracco 5 | # 6 | # GNU GENERAL PUBLIC LICENSE 7 | 8 | use Compress::Zlib; 9 | 10 | foreach $file (@ARGV) 11 | { 12 | $gz = gzopen ($file, "rb") || die "Cannot open $file: $gzerrno\n"; 13 | 14 | print $buffer 15 | while $gz->gzread ($buffer) > 0; 16 | 17 | $gz->gzclose (); 18 | } 19 | -------------------------------------------------------------------------------- /bin/purge_quarantine: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl -w 2 | 3 | # Copyright (C) 2003-2019 4 | # Emmanuel Saracco 5 | # 6 | # GNU GENERAL PUBLIC LICENSE 7 | 8 | use strict; 9 | use File::Find; 10 | 11 | my $path = $ARGV[0]; 12 | my $days = ($ARGV[1]) ? $ARGV[1] : 0; 13 | 14 | die "wbmclamav <$0>: syntax: $0 directory [days]\n" if !$ARGV[0]; 15 | die "wbmclamav <$0>: quarantine path does not exist!\n" if (! -d $path); 16 | die "wbmclamav <$0>: quanrantine path is to short!\n" if (length ($path) < 8); 17 | 18 | find (\&remove_handler, "$path/"); 19 | 20 | # rmdir_r () 21 | # 22 | # Delete files in the quarantine directory. 23 | # 24 | # 1. If no days number was given, erase all quarantine files 25 | # 2. If a days number was given, only erase files >= to this number 26 | # 27 | # -> Important: only files are deleted. Directories remains. 28 | # 29 | sub remove_handler () 30 | { 31 | unlink ($File::Find::name) 32 | if (($days && int (-M $File::Find::name) >= $days) || !$days); 33 | } 34 | -------------------------------------------------------------------------------- /config: -------------------------------------------------------------------------------- 1 | clamav_check_new=0 2 | clamav_working_path=/tmp 3 | clamav_init_restore_path=/var/backups 4 | clamav_init_script=/etc/init.d/clamd 5 | clamav_clamav_log=/var/log/clamav/clamav.log 6 | clamav_clamav_conf=/etc/clamd.conf 7 | clamav_quarantine_soft=1 8 | clamav_quarantine=/var/spool/amavis/virusmails 9 | clamav_db1=/var/clamav/main.cld 10 | clamav_db2=/var/clamav/daily.cvd 11 | 12 | clamav_freshclam_conf=/etc/freshclam.conf 13 | clamav_refresh_use_cron=1 14 | clamav_freshclam_log=/var/log/clamav/freshclam.log 15 | clamav_freshclam_init_script=/etc/cron.daily/freshclam 16 | clamav_spam_user=amavis 17 | -------------------------------------------------------------------------------- /config-debian-linux: -------------------------------------------------------------------------------- 1 | clamav_check_new=0 2 | clamav_sys_user=clamav 3 | clamav_sys_group=adm 4 | clamav_working_path=/tmp 5 | clamav_init_restore_path=/var/backups 6 | clamav_init_script=/etc/init.d/clamav-daemon 7 | clamav_clamav_conf=/etc/clamav/clamd.conf 8 | clamav_clamav_log=/var/log/clamav/clamav.log 9 | clamav_quarantine_soft=1 10 | clamav_quarantine=/var/lib/amavis/virusmails 11 | clamav_db1=/var/lib/clamav/main.cld 12 | clamav_db2=/var/lib/clamav/daily.cvd 13 | 14 | clamav_freshclam_conf=/etc/clamav/freshclam.conf 15 | clamav_refresh_use_cron=0 16 | clamav_freshclam_log=/var/log/clamav/freshclam.log 17 | clamav_freshclam_init_script=/etc/init.d/clamav-freshclam 18 | clamav_spam_user=amavis 19 | -------------------------------------------------------------------------------- /config-fedora-linux: -------------------------------------------------------------------------------- 1 | clamav_check_new=0 2 | clamav_sys_user=clamav 3 | clamav_sys_group=clamav 4 | clamav_working_path=/tmp 5 | clamav_init_restore_path=/root 6 | clamav_init_script=/etc/init.d/clamd 7 | clamav_clamav_log=/var/log/clamav/clamav.log 8 | clamav_clamav_conf=/etc/clamd.conf 9 | clamav_quarantine_soft=1 10 | clamav_quarantine=/var/spool/amavis/virusmails 11 | clamav_db1=/var/clamav/main.cld 12 | clamav_db2=/var/clamav/daily.cvd 13 | 14 | clamav_freshclam_conf=/etc/freshclam.conf 15 | clamav_refresh_use_cron=1 16 | clamav_freshclam_log=/var/log/clamav/freshclam.log 17 | clamav_freshclam_init_script=/etc/cron.daily/freshclam 18 | clamav_spam_user=amavis 19 | -------------------------------------------------------------------------------- /config-freebsd: -------------------------------------------------------------------------------- 1 | clamav_check_new=0 2 | clamav_sys_user=clamav 3 | clamav_sys_group=clamav 4 | clamav_working_path=/tmp 5 | clamav_init_restore_path=/var/backups 6 | clamav_clamav_log=/var/log/clamav/clamd.log 7 | clamav_freshclam_log=/var/log/clamav/freshclam.log 8 | clamav_db1=/var/db/clamav/main.cld 9 | clamav_db2=/var/db/clamav/daily.cvd 10 | clamav_quarantine_soft=0 11 | clamav_quarantine= 12 | clamav_init_script=/usr/local/etc/rc.d/clamav-clamd.sh 13 | clamav_clamav_conf=/usr/local/etc/clamd.conf 14 | clamav_freshclam_conf=/usr/local/etc/freshclam.conf 15 | clamav_refresh_use_cron=0 16 | clamav_freshclam_init_script=/usr/local/etc/rc.d/clamav-freshclam.sh 17 | clamav_spam_user=amavis 18 | -------------------------------------------------------------------------------- /config-mandriva-linux: -------------------------------------------------------------------------------- 1 | clamav_check_new=0 2 | clamav_working_path=/tmp 3 | clamav_init_restore_path=/root 4 | clamav_init_script=/etc/init.d/clamd 5 | clamav_clamav_log=/var/log/clamav/clamd.log 6 | clamav_clamav_conf=/etc/clamd.conf 7 | clamav_quarantine_soft=1 8 | clamav_quarantine=/var/spool/amavis/virusmails 9 | clamav_db1=/var/lib/clamav/main.cld 10 | clamav_db2=/var/lib/clamav/daily.cvd 11 | 12 | clamav_freshclam_conf=/etc/freshclam.conf 13 | clamav_refresh_use_cron=1 14 | clamav_freshclam_log=/var/log/clamav/freshclam.log 15 | clamav_freshclam_init_script= 16 | -------------------------------------------------------------------------------- /config-openbsd: -------------------------------------------------------------------------------- 1 | clamav_check_new=0 2 | clamav_working_path=/tmp 3 | clamav_init_restore_path=/var/backups 4 | clamav_clamav_log=/var/log/clamav/clamd.log 5 | clamav_freshclam_log=/var/log/clamav/freshclam.log 6 | clamav_db1=/usr/local/share/clamav/main.cld 7 | clamav_quarantine_soft=0 8 | clamav_quarantine= 9 | clamav_init_script=/usr/local/etc/rc.d/clamav-clamd.sh 10 | clamav_db2=/usr/local/share/clamav/daily.cvd 11 | clamav_clamav_conf=/usr/local/etc/clamd.conf 12 | clamav_freshclam_conf=/usr/local/etc/freshclam.conf 13 | clamav_refresh_use_cron=0 14 | clamav_freshclam_init_script=/usr/local/etc/rc.d/clamav-freshclam.sh 15 | -------------------------------------------------------------------------------- /config-redhat-linux: -------------------------------------------------------------------------------- 1 | clamav_check_new=0 2 | clamav_working_path=/tmp 3 | clamav_init_restore_path=/root 4 | clamav_init_script=/etc/init.d/clamd 5 | clamav_clamav_log=/var/log/clamav/clamav.log 6 | clamav_clamav_conf=/etc/clamd.conf 7 | clamav_quarantine_soft=1 8 | clamav_quarantine=/var/spool/amavis/virusmails 9 | clamav_db1=/var/lib/clamav/main.cld 10 | clamav_db2=/var/lib/clamav/daily.cvd 11 | 12 | clamav_freshclam_conf=/etc/freshclam.conf 13 | clamav_refresh_use_cron=1 14 | clamav_freshclam_log=/var/log/clamav/freshclam.log 15 | clamav_freshclam_init_script=/etc/cron.daily/freshclam 16 | -------------------------------------------------------------------------------- /config-suse-linux: -------------------------------------------------------------------------------- 1 | clamav_check_new=0 2 | clamav_working_path=/tmp 3 | clamav_init_restore_path=/var/backups 4 | clamav_init_script=/etc/init.d/clamd 5 | clamav_clamav_conf=/etc/clamd.conf 6 | clamav_clamav_log=/var/log/clamav/clamd.log 7 | clamav_quarantine_soft=1 8 | clamav_quarantine=/var/spool/amavis/virusmails 9 | clamav_db1=/var/lib/clamav/main.cld 10 | clamav_db2=/var/lib/clamav/daily.cvd 11 | 12 | clamav_freshclam_conf=/etc/freshclam.conf 13 | clamav_freshclam_log=/var/log/clamav/freshclam.log 14 | clamav_freshclam_init_script=/etc/init.d/freshclam 15 | -------------------------------------------------------------------------------- /config-ubuntu-linux: -------------------------------------------------------------------------------- 1 | clamav_check_new=0 2 | clamav_sys_user=clamav 3 | clamav_sys_group=adm 4 | clamav_working_path=/tmp 5 | clamav_init_restore_path=/var/backups 6 | clamav_init_script=/etc/init.d/clamav-daemon 7 | clamav_clamav_conf=/etc/clamav/clamd.conf 8 | clamav_clamav_log=/var/log/clamav/clamav.log 9 | clamav_quarantine_soft=1 10 | clamav_quarantine=/var/lib/amavis/virusmails 11 | clamav_db1=/var/lib/clamav/main.cld 12 | clamav_db2=/var/lib/clamav/daily.cvd 13 | 14 | clamav_freshclam_conf=/etc/clamav/freshclam.conf 15 | clamav_refresh_use_cron=0 16 | clamav_freshclam_log=/var/log/clamav/freshclam.log 17 | clamav_freshclam_init_script=/etc/init.d/clamav-freshclam 18 | clamav_spam_user=amavis 19 | -------------------------------------------------------------------------------- /config.info: -------------------------------------------------------------------------------- 1 | line1=Global,11 2 | clamav_check_new=Warn me when a new module release is available,1,1-Yes,0-No 3 | clamav_working_path=Working directory,7 4 | clamav_init_restore_path=Backup directory (should not be a temporary directory),7 5 | line2=Quarantine,11 6 | clamav_quarantine_soft=Use the following content scanner,4,0-None,1-amavisd new,2-amavis ng,3-Clamav Milter,4-MailScanner,5-QMailScanner 7 | clamav_quarantine=Quarantine repository directory,7 8 | clamav_spam_user=SpamAssassin user 9 | line3=ClamAV,11 10 | clamav_sys_user=ClamAV system user 11 | clamav_sys_group=ClamAV system group 12 | clamav_init_script=Daemon init script path (if sysvinit),8 13 | clamav_clamav_log=Logfile path,8 14 | clamav_clamav_conf=Configuration file path,8 15 | clamav_db1=Main virus signatures database path,8 16 | clamav_db2=Daily virus signatures database path,8 17 | line4=Freshclam,11 18 | clamav_freshclam_conf=Configuration file path,8 19 | clamav_refresh_use_cron=Refresh method for viruses database,4,2-Manual update,0-Daemon,1-Cron 20 | clamav_freshclam_log=Logfile path,8 21 | clamav_freshclam_init_script=Daemon init script path (if sysvinit),8 22 | -------------------------------------------------------------------------------- /config.info.fr: -------------------------------------------------------------------------------- 1 | line1=Général,11 2 | clamav_check_new=M'avertir quand une nouvelle version du module est disponible,1,1-Oui,0-Non 3 | clamav_working_path=Répertoire travail,7 4 | clamav_init_restore_path=Répertoire sauvegardes (ne doit pas être temporaire),7 5 | line2=Quarantaine,11 6 | clamav_quarantine_soft=Utiliser le scanner de contenu suivant,4,0-Aucun,1-amavisd new,2-amavis ng,3-Clamav Milter,4-MailScanner,5-QMailScanner 7 | clamav_quarantine=Répertoire quarantaine,7 8 | clamav_spam_user=Utilisateur SpamAssassin 9 | line3=ClamAV,11 10 | clamav_sys_user=Utilisateur système ClamAV 11 | clamav_sys_group=Groupe système ClamAV 12 | clamav_init_script=Emplacement script démarrage (si sysvinit),8 13 | clamav_clamav_log=Emplacement fichier log,8 14 | clamav_clamav_conf=Emplacement fichier configuration,8 15 | clamav_db1=Emplacement base principale signatures,8 16 | clamav_db2=Emplacement base quotidienne signatures,8 17 | line4=Freshclam,11 18 | clamav_freshclam_conf=Emplacement fichier configuration,8 19 | clamav_refresh_use_cron=Méthode rafraîchissement base signatures,4,2-Mise à jour manuelle,0-Démon,1-Cron 20 | clamav_freshclam_log=Emplacement fichier log,8 21 | clamav_freshclam_init_script=Emplacement script démarrage (si sysvinit),8 22 | -------------------------------------------------------------------------------- /css/clamav.css: -------------------------------------------------------------------------------- 1 | table.clamav input[type="text"] { 2 | width:100%; 3 | box-sizing: border-box; 4 | } 5 | 6 | table.ui_tabs { 7 | margin-top:20px; 8 | } 9 | 10 | .tab-pane > div { 11 | margin-top:20px; 12 | } 13 | 14 | img { 15 | border:0; 16 | } 17 | 18 | textarea { 19 | width:100%; 20 | } 21 | 22 | .disabled { 23 | opacity:.6; 24 | pointer-events:none; 25 | cursor:default; 26 | } 27 | 28 | .raw-output { 29 | color:#000; 30 | background:#ccc; 31 | max-width:98%; 32 | border:1px solid gray; 33 | padding:5px; 34 | font-family:arial,verdana,helvetica,courier; 35 | font-size:0.8rem 36 | } 37 | 38 | .circle { 39 | height:10px; 40 | width:10px; 41 | border-radius:50%; 42 | display:inline-block; 43 | } 44 | 45 | .circle.success { 46 | background-color:green; 47 | } 48 | 49 | .circle.error { 50 | background-color:red; 51 | } 52 | 53 | .btn-tiny.ui_form_end_submit span.cspinner_container { 54 | margin-top:0 !important; 55 | } 56 | 57 | a sup i.fa-caret-up { 58 | color:silver; 59 | font-size:1.5rem; 60 | } 61 | 62 | table.keys-values tr td:first-child { 63 | background:#f6f6f6; 64 | text-align:right; 65 | font-weight:bold; 66 | width:1px; 67 | white-space:nowrap; 68 | } 69 | 70 | table.nokeys-values tr td:first-child { 71 | background:inherit; 72 | text-align:inherit; 73 | font-weight:inherit; 74 | } 75 | 76 | table.clamav { 77 | border-collapse: collapse !important; 78 | } 79 | 80 | table.clamav.dyn tr:hover { 81 | background:#e5e5e5; 82 | } 83 | 84 | table.clamav, table.clamav th, table.clamav td { 85 | border: 1px solid #f4f4f4 !important; 86 | padding:5px !important; 87 | vertical-align:top; 88 | } 89 | 90 | table.clamav tbody { 91 | background:#fdfdfd; 92 | } 93 | 94 | table.clamav.header tr:first-child td { 95 | background:#dedede; 96 | text-align:center; 97 | font-weight:bold; 98 | font-size:1rem !important; 99 | } 100 | 101 | table.clamav.noheader tr:first-child td { 102 | background:inherit; 103 | text-align:inherit; 104 | font-weight:inherit; 105 | font-size:inherit; 106 | } 107 | 108 | table.clamav td.control { 109 | text-align:left !important; 110 | vertical-align:middle !important; 111 | } 112 | 113 | tr.even { 114 | background:#f6f6f6; 115 | } 116 | 117 | ul { 118 | list-style-type: square; 119 | } 120 | 121 | table.nav-panel { 122 | width:40%; 123 | margin: 10px auto 0 auto; 124 | } 125 | 126 | /* from authentic theme to preserve compatiblity with old themes */ 127 | 128 | .alert { 129 | padding: 15px; 130 | border: 1px solid transparent; 131 | border-radius:5px; 132 | } 133 | 134 | .alert-success { 135 | color: #3c763d; 136 | background-color: #dff0d8; 137 | border-color: #d6e9c6; 138 | } 139 | 140 | .alert-info { 141 | color: #31708f; 142 | background-color: #d9edf7; 143 | border-color: #bce8f1; 144 | } 145 | 146 | .alert-danger { 147 | color: #a94442; 148 | background-color: #f2dede; 149 | border-color: #ebccd1; 150 | } 151 | 152 | .close:hover, .close:focus { 153 | color: #000; 154 | text-decoration: none; 155 | cursor: pointer; 156 | filter: alpha(opacity=50); 157 | opacity: .5; 158 | 159 | } 160 | button.close { 161 | padding: 0; 162 | cursor: pointer; 163 | background: transparent; 164 | border: 0; 165 | -webkit-appearance: none; 166 | -moz-appearance: none; 167 | appearance: none; 168 | 169 | } 170 | .close { 171 | float: right; 172 | font-size: 21px; 173 | font-weight: bold; 174 | line-height: 1; 175 | color: #000; 176 | text-shadow: 0 1px 0 #fff; 177 | filter: alpha(opacity=20); 178 | opacity: .2; 179 | } 180 | -------------------------------------------------------------------------------- /data/clamav_predefined.pm: -------------------------------------------------------------------------------- 1 | # clamav predefined variables 2 | # name => 0 = alone (boolean) 3 | # 1 = need value 4 | # 2 = need value and can appear several time on separate lines 5 | %clamav_predefined = ( 6 | 'LogFile' => 1, 7 | 'LogFileUnlock' => 0, 8 | 'LogFileMaxSize' => 1, 9 | 'LogTime' => 0, 10 | 'LogClean' => 0, 11 | 'LogSyslog' => 0, 12 | 'LogFacility' => 1, 13 | 'LogVerbose' => 0, 14 | 'LogRotate' => 0, 15 | 'PreludeEnable' => 0, 16 | 'PreludeAnalyzerName' => 1, 17 | 'ExtendedDetectionInfo' => 0, 18 | 'PidFile' => 1, 19 | 'TemporaryDirectory' => 1, 20 | 'DatabaseDirectory' => 1, 21 | 'OfficialDatabaseOnly' => 0, 22 | 'LocalSocket' => 1, 23 | 'LocalSocketGroup' => 1, 24 | 'LocalSocketMode' => 1, 25 | 'FixStaleSocket' => 0, 26 | 'TCPSocket' => 1, 27 | 'TCPAddr' => 2, 28 | 'MaxConnectionQueueLength' => 1, 29 | 'StreamMaxLength' => 1, 30 | 'StreamMinPort' => 1, 31 | 'StreamMaxPort' => 1, 32 | 'MaxThreads' => 1, 33 | 'ReadTimeout' => 1, 34 | 'CommandReadTimeout' => 1, 35 | 'SendBufTimeout' => 1, 36 | 'MaxQueue' => 1, 37 | 'IdleTimeout' => 1, 38 | 'ExcludePath' => 2, 39 | 'MaxDirectoryRecursion' => 1, 40 | 'FollowDirectorySymlinks' => 0, 41 | 'FollowFileSymlinks' => 0, 42 | 'CrossFilesystems' => 0, 43 | 'SelfCheck' => 1, 44 | 'ConcurrentDatabaseReload' => 0, 45 | 'VirusEvent' => 1, 46 | 'User' => 1, 47 | 'ExitOnOOM' => 0, 48 | 'Foreground' => 0, 49 | 'Debug' => 0, 50 | 'LeaveTemporaryFiles' => 0, 51 | 'AllowAllMatchScan' => 0, 52 | 'DetectPUA' => 0, 53 | 'ExcludePUA' => 2, 54 | 'IncludePUA' => 2, 55 | 'ForceToDisk' => 0, 56 | 'DisableCache' => 0, 57 | 'HeuristicAlerts' => 0, 58 | 'HeuristicScanPrecedence' => 0, 59 | 'AlertBrokenExecutables' => 0, 60 | 'AlertBrokenMedia' => 0, 61 | 'AlertEncrypted' => 0, 62 | 'AlertEncryptedArchive' => 0, 63 | 'AlertEncryptedDoc' => 0, 64 | 'AlertOLE2Macros' => 0, 65 | 'AlertPhishingSSLMismatch' => 0, 66 | 'AlertPhishingCloak' => 0, 67 | 'AlertPartitionIntersection' => 0, 68 | 'ScanPE' => 0, 69 | 'DisableCertCheck' => 0, 70 | 'ScanELF' => 0, 71 | 'ScanOLE2' => 0, 72 | 'ScanPDF' => 0, 73 | 'ScanSWF' => 0, 74 | 'ScanXMLDOCS' => 0, 75 | 'ScanHWP3' => 0, 76 | 'ScanMail' => 0, 77 | 'ScanPartialMessages' => 0, 78 | 'PhishingSignatures' => 1, 79 | 'PhishingScanURLs' => 1, 80 | 'StructuredDataDetection' => 0, 81 | 'StructuredMinCreditCardCount' => 1, 82 | 'StructuredCCOnly' => 1, 83 | 'StructuredMinSSNCount' => 1, 84 | 'StructuredSSNFormatNormal' => 0, 85 | 'StructuredSSNFormatStripped' => 0, 86 | 'ScanHTML' => 0, 87 | 'ScanArchive' => 0, 88 | 'MaxScanTime' => 1, 89 | 'MaxScanSize' => 1, 90 | 'MaxFileSize' => 1, 91 | 'MaxRecursion' => 1, 92 | 'MaxFiles' => 1, 93 | 'MaxEmbeddedPE' => 1, 94 | 'MaxHTMLNormalize' => 1, 95 | 'MaxHTMLNoTags' => 1, 96 | 'MaxScriptNormalize' => 1, 97 | 'MaxZipTypeRcg' => 1, 98 | 'MaxPartitions' => 1, 99 | 'MaxIconsPE' => 1, 100 | 'MaxRecHWP3' => 1, 101 | 'PCREMatchLimit' => 1, 102 | 'PCRERecMatchLimit' => 1, 103 | 'PCREMaxFileSize' => 1, 104 | 'AlertExceedsMax' => 0, 105 | 'OnAccessMaxFileSize' => 1, 106 | 'OnAccessMaxThreads' => 1, 107 | 'OnAccessCurlTimeout' => 1, 108 | 'OnAccessDisableDDD' => 0, 109 | 'OnAccessIncludePath' => 2, 110 | 'OnAccessExcludePath' => 2, 111 | 'OnAccessPrevention' => 0, 112 | 'OnAccessDenyOnError' => 0, 113 | 'OnAccessExtraScanning' => 0, 114 | 'OnAccessMountPath' => 2, 115 | 'OnAccessExcludeRootUID' => 0, 116 | 'OnAccessExcludeUID' => 2, 117 | 'OnAccessExcludeUname' => 2, 118 | 'OnAccessRetryAttempts' => 1, 119 | 'Bytecode' => 0, 120 | 'BytecodeSecurity' => 1, 121 | 'BytecodeUnsigned' => 0, 122 | 'BytecodeTimeout' => 1 123 | ); 124 | -------------------------------------------------------------------------------- /data/clamav_remote_actions.pm: -------------------------------------------------------------------------------- 1 | # Commands for remote control of clamav daemon 2 | %clamav_remote_actions = ( 3 | 'PING' => 0, 4 | 'VERSION' => 0, 5 | 'SCAN' => 1, 6 | 'CONTSCAN' => 1, 7 | 'MULTISCAN' => 1, 8 | 'SHUTDOWN' => 0, 9 | 'RELOAD' => 0, 10 | 'nVERSIONCOMMANDS' => 0, 11 | 'SHUTDOWN' => 0, 12 | 'nSTATS' => 0, 13 | ); 14 | -------------------------------------------------------------------------------- /data/days.pm: -------------------------------------------------------------------------------- 1 | # week days 2 | @days = ( 3 | $text{'SUNDAY'}, 4 | $text{'MONDAY'}, 5 | $text{'TUESDAY'}, 6 | $text{'WEDNESDAY'}, 7 | $text{'THURSDAY'}, 8 | $text{'FRIDAY'}, 9 | $text{'SATURDAY'} 10 | ); 11 | -------------------------------------------------------------------------------- /data/freshclam_predefined.pm: -------------------------------------------------------------------------------- 1 | # freshclam predefined variables 2 | # name => 0 = alone (boolean) 3 | # 1 = need value 4 | # 2 = need value and can appear several time on separate lines 5 | %freshclam_predefined = ( 6 | 'DatabaseDirectory' => 1, 7 | 'UpdateLogFile' => 1, 8 | 'LogFileMaxSize' => 1, 9 | 'LogTime' => 0, 10 | 'LogVerbose' => 0, 11 | 'LogSyslog' => 0, 12 | 'LogFacility' => 1, 13 | 'LogRotate' => 0, 14 | 'PidFile' => 1, 15 | 'DatabaseOwner' => 1, 16 | 'DNSDatabaseInfo' => 1, 17 | 'DatabaseMirror' => 2, 18 | 'MaxAttempts' => 1, 19 | 'ScriptedUpdates' => 0, 20 | 'CompressLocalDatabase' => 0, 21 | 'DatabaseCustomURL' => 2, 22 | 'PrivateMirror' => 2, 23 | 'Checks' => 1, 24 | 'HTTPProxyServer' => 1, 25 | 'HTTPProxyPort' => 1, 26 | 'HTTPProxyUsername' => 1, 27 | 'HTTPProxyPassword' => 1, 28 | 'HTTPUserAgent' => 1, 29 | 'LocalIPAddress' => 1, 30 | 'NotifyClamd' => 1, 31 | 'OnUpdateExecute' => 1, 32 | 'OnErrorExecute' => 1, 33 | 'OnOutdatedExecute' => 1, 34 | 'Foreground' => 0, 35 | 'Debug' => 0, 36 | 'ConnectTimeout' => 1, 37 | 'ReceiveTimeout' => 1, 38 | 'TestDatabases' => 0, 39 | 'Bytecode' => 0, 40 | 'ExtraDatabase' => 2, 41 | 'ExcludeDatabase' => 2 42 | ); 43 | -------------------------------------------------------------------------------- /data/system_files.pm: -------------------------------------------------------------------------------- 1 | # System files to backup 2 | # path => [1 = empty it after backup | 0 = do not empty it] 3 | %system_files = ( 4 | $config{"clamav_freshclam_init_script"} => 0, 5 | $config{"clamav_freshclam_conf"} => 0, 6 | $config{"clamav_init_script"} => 0, 7 | $config{"clamav_clamav_conf"} => 0, 8 | "/etc/rc.conf" => 0, 9 | "/etc/network/if-up.d/clamav-freshclam-ifupdown" => 0, 10 | "/etc/network/if-down.d/clamav-freshclam-ifupdown" => 0, 11 | "/etc/cron.d/clamav-freshclam" => 1, 12 | "/etc/cron.daily/clamav-data" => 1, 13 | "/var/lib/clamav/interface" => 1, 14 | ); 15 | -------------------------------------------------------------------------------- /data/viruses_prefixes.pm: -------------------------------------------------------------------------------- 1 | @viruses_prefixes = ( 2 | # prefix 1 3 | [ 4 | 'Andr', 5 | 'Archive', 6 | 'Asp', 7 | 'Clamav', 8 | 'Doc', 9 | 'Email', 10 | 'Emf', 11 | 'Heuristics', 12 | 'Html', 13 | 'Hwp', 14 | 'Img', 15 | 'Ios', 16 | 'Java', 17 | 'Js', 18 | 'Legacy', 19 | 'Lnk', 20 | 'Mp4', 21 | 'Multios', 22 | 'Osx', 23 | 'Pdf', 24 | 'Php', 25 | 'Ppt', 26 | 'Py', 27 | 'Rtf', 28 | 'Svg', 29 | 'Swf', 30 | 'Ttf', 31 | 'Txt', 32 | 'Unix', 33 | 'Vbs', 34 | 'Win', 35 | 'Xls', 36 | 'Xml' 37 | ], 38 | # prefix 2 39 | [ 40 | 'Adware', 41 | 'Coinminer', 42 | 'Downloader', 43 | 'Dropper', 44 | 'Exploit', 45 | 'File', 46 | 'Ircbot', 47 | 'Joke', 48 | 'Keylogger', 49 | 'Macro', 50 | 'Malware', 51 | 'Packed', 52 | 'Packer', 53 | 'Phishing', 54 | 'Proxy', 55 | 'Ransomware', 56 | 'Rootkit', 57 | 'Spyware', 58 | 'Test', 59 | 'Tool', 60 | 'Trojan', 61 | 'Virus', 62 | 'Worm' 63 | ] 64 | ); 65 | -------------------------------------------------------------------------------- /defaultacl: -------------------------------------------------------------------------------- 1 | backup_restore_manage=1 2 | clamav_start_stop=1 3 | clamav_remote_control=1 4 | quarantine_view=1 5 | quarantine_delete=1 6 | quarantine_resend=1 7 | quarantine_export=1 8 | database_update_view=1 9 | database_update_update=1 10 | directories_check_view=1 11 | directories_check_delete=1 12 | global_settings_view=1 13 | global_settings_write=1 14 | logs_viewer_view=1 15 | database_search_search=1 16 | signature_use=1 17 | -------------------------------------------------------------------------------- /help/backup_restore.fr.html: -------------------------------------------------------------------------------- 1 |
Sauvegarde / Restauration
2 | 3 |

Pour gérer ClamAV ce module a besoin de désactiver certains autres scripts de gestion de ClamAV spécifiques au système ou à la distribution. Rien ne sera supprimé de votre système. Les scripts seront juste déplacés dans le répertoire que vous avez indiqué dans la configuration du module. Pour sauvegarder les fichiers, cliquez sur le bouton "Sauvegarder". Pour restaurer les fichiers, il suffit de cliquer sur le bouton "Restaurer".

4 | 5 |

Vous pouvez accéder à cette section à tout moment, en utilisant l'icône "Sauvegarde / Restauration" à partir de la page principale de ce module. Tous les fichiers seront automatiquement restaurés lorsque vous supprimerez ce module via Webmin.

6 | -------------------------------------------------------------------------------- /help/backup_restore.html: -------------------------------------------------------------------------------- 1 |
Backup / Restore
2 | 3 |

To manage ClamAV, this module need to deactivate other system specific ClamAV control scripts and configuration. Nothing will be removed from your system. Scripts will just be moved in the directory you have indicated in the module configuration. To backup files, click on the "Backup" button. To restore files, just click on the "Restore" button.

4 | 5 |

You can access to this section at any moment, using the "Backup / Restore" icon on the main module page. All files wile be automatically restored when you will uninstall this module from Webmin.

6 | -------------------------------------------------------------------------------- /help/index.fr.html: -------------------------------------------------------------------------------- 1 |
Gestion de l'antivirus ClamAV
2 | 3 |

wbmclamav est un module Webmin permettant de gérer l'antivirus ClamAV. Il peut être utilisé pour mettre à jour la configuration de ClamAV / Freshclam, gérer la quarantaine, effectuer des recherches dans la base de virus et la maintenir à jour, analyser les répertoires locaux, contrôler ClamAV à distance, extraire les signatures de nouveaux virus, etc.

4 | 5 |

ClamAV Antivirus vous protège de la majeure partie des virus (vers, chevaux de troie, polymorphes etc.). Associé à des scanners de contenu comme amavisd-new, MailScanner, Qmail-Scanner ou ClamAV-Milter, il permet de détecter les courriels infectés pour les mettre en quarantaine. Sa base de signatures doit être mise à jour régulièrement (cette base contient les chaînes d'identification propres à chaque virus connu).

6 | -------------------------------------------------------------------------------- /help/index.html: -------------------------------------------------------------------------------- 1 |
ClamAV Antivirus management
2 | 3 |

wbmclamav can be used to update ClamAV / Freshclam configuration, manage quarantine, search in the viruses database and keep it up-to-date, scan local directories, control remote ClamAV, extract signatures from new viruses, and so on.

4 | 5 |

The ClamAV Antivirus protects you from most viruses (worms, Trojan horses, polymorphics etc). Used in conjunction with content scanners like amavisd-new, MailScanner, Qmail-Scanner or ClamAV-Milter, it moves infected E-Mails in quarantine. Its signatures database must be updated pretty often (this base contains identification strings of almost every known viruses).

6 | -------------------------------------------------------------------------------- /help/logs_main.fr.html: -------------------------------------------------------------------------------- 1 |
Logs
2 | 3 |

Choisissez un fichier de log dans la liste de choix pour le visualiser.

4 | 5 |

Vous pouvez décider de visualiser un fichier en entier ou uniquement ses dernières lignes.

6 | -------------------------------------------------------------------------------- /help/logs_main.html: -------------------------------------------------------------------------------- 1 |
Logs
2 | 3 |

Choose a log file in the combo box to view it.

4 | 5 |

You can decide to view the entire file or only a bunch number of its last lines

6 | -------------------------------------------------------------------------------- /help/quarantine_main.fr.html: -------------------------------------------------------------------------------- 1 |
Quarantaine
2 | 3 |

Lorsqu'un courriel infecté est détecté, il est déposé dans un répertoire dit de quarantaine. Ceci vous permet de vérifier chacun des courriels suspectés, d'en supprimer ou bien d'en renvoyer si vous pensez qu'il a été mis de côté par erreur. Si vous utilisez amavisd-new/SpamAssassin vous avez aussi la possibilité de gérer aussi bien les Spams que les Virus.

4 | 5 |

Il est a noter que si vous utilisez ClamAV-Milter, Qmail-Scanner ou MailScanner le nom du virus n'apparaîtra pas dans la liste des courriels en quarantaine.

6 | 7 |

Vous pouvez également déterminer la fréquence à laquelle le répertoire de quarantaine sera automatiquement purgé.

8 | -------------------------------------------------------------------------------- /help/quarantine_main.html: -------------------------------------------------------------------------------- 1 |
Quarantine
2 | 3 |

When an infected E-Mail is detected, it is moved in a quarantine repository. This allows you search this repoitory and check every suspected E-Mail. You can also delete it, or resend it if it was mistakenly put in quarantine.

4 | 5 |

If you are using amavisd-new/SpamAssassin you will be able to manage both Spams and Viruses. Note that if you use ClamAV-Milter, Qmail-Scanner or MailScanner you will not be able to view the virus name in the quarantine listing.

6 | 7 |

You may also manually purge the quarantine directory or choose the frequency of the automatic purge.

8 | -------------------------------------------------------------------------------- /help/quarantine_resend.fr.html: -------------------------------------------------------------------------------- 1 |
Renvoyer un courriel
2 | 3 |

Si vous voulez forcer l'expéditeur, le destinataire ou le serveur SMTP à utiliser pour tous les courriels à renvoyer, remplissez le formulaire. Sinon, laissez les champs vides.

4 | -------------------------------------------------------------------------------- /help/quarantine_resend.html: -------------------------------------------------------------------------------- 1 |
Resending E-Mails
2 | 3 |

If you want to force sender, recipient or SMTP server to use for all E-Mails to be resent, fill the form. If not, let those fields empty.

4 | -------------------------------------------------------------------------------- /help/quarantine_viewmail.fr.html: -------------------------------------------------------------------------------- 1 |
Visualisation du courriel
2 | 3 |

Voici le contenu du courriel. Vous avez accès à l'intégralité du courriel: en-tête, corps et éventuelles pièces jointes encodées.

4 | -------------------------------------------------------------------------------- /help/quarantine_viewmail.html: -------------------------------------------------------------------------------- 1 |
Viewing E-Mail
2 | 3 |

Here is the content of the E-Mail. You have access to the whole E-Mail: header, body, and possible encoded attached files.

4 | -------------------------------------------------------------------------------- /help/remote_control_main.fr.html: -------------------------------------------------------------------------------- 1 |
Contrôl distant
2 | 3 |

Cette section permet de contrôler à un démon ClamAV tournant sur une machine distante.

4 | 5 |

Pour faire en sorte que le démon ClamAV accepte les connexions distantes il faut supprimer LocalSocket et définir TCPAddr et TCPSocket dans la configuration de ClamAV depuis les préférences globales.

6 | 7 |

Les commandes suivies d'un astérisque nécessitent un argument.

8 | -------------------------------------------------------------------------------- /help/remote_control_main.html: -------------------------------------------------------------------------------- 1 |
Remote control
2 | 3 |

This section allow you to control ClamAV daemon running on a remote host.

4 | 5 |

To allow ClamAV daemon to listen for remote connections you must remove the LocalSocket and set TCPAddr and TCPSocket from the ClamAV settings section.

6 | 7 |

Commands followed by an asterisk require an argument.

8 | -------------------------------------------------------------------------------- /help/scandir_main.fr.html: -------------------------------------------------------------------------------- 1 |
Scan local
2 | 3 |

Vous pouvez vérifier un fichier en particulier ou des répertoires entiers.

4 | 5 |

Vous avez la possibilité de déplacer les fichiers infectés dans un autre répertoires ou de les supprimer.

6 | -------------------------------------------------------------------------------- /help/scandir_main.html: -------------------------------------------------------------------------------- 1 |
Local scan
2 | 3 |

You can check a particular file or entire directories.

4 | 5 |

You can move infected files to another directory or delete them.

6 | -------------------------------------------------------------------------------- /help/settings_main.fr.html: -------------------------------------------------------------------------------- 1 |
Configuration
2 | 3 |

Cette section vous donne la possibilité de contrôler le contenu de tous les fichiers de configuration de ClamAV. Réfléchissez bien avant de les modifier.

4 | 5 |

Les options suivies d'un astérisque sont multivaluées et peuvent donc être ajoutées plusieurs fois.

6 | 7 |

Les changements ne seront pas effectifs tant que vous n'aurez pas cliqué sur le bouton "Appliquer".

8 | -------------------------------------------------------------------------------- /help/settings_main.html: -------------------------------------------------------------------------------- 1 |
Settings
2 | 3 |

This section gives you the ability to control content of all ClamAV configuration files. Change them carefully.

4 | 5 |

Options followed by an asterisk are multivalued and can be added multiple times.

6 | 7 |

Changes will not be effective until you click the "Apply" button.

8 | -------------------------------------------------------------------------------- /help/signatures_main.fr.html: -------------------------------------------------------------------------------- 1 |
Signatures
2 | 3 |

Cette section vous aide à construire une signature SHA1 basique à partir d'un fichier. Voir Creating signatures for ClamAV et File hash signatures pour plus de détails quant à la gestion des signatures.

4 | 5 |

Lorsque la construction de la signature est terminée, vous pouvez l'ajouter dans une base locale *.hdb ou dans la base officielle de ClamAV:

6 |
    7 |
  • Vous pouvez la faire parvenir à l'équipe ClamAV en utilisant leur formulaire en ligne ou bien encore leur envoyer par courriel à l'adresse virus@clamav.net (mais cette seconde méthode n'est plus d'actualité).
  • 8 |
  • Si vous désirez être tenu au courant des évolutions de la base antivirus de ClamAV vous pouvez vous inscrire à la liste de diffusion clamav-virusdb@lists.sourceforge.net.
  • 9 |
10 | -------------------------------------------------------------------------------- /help/signatures_main.html: -------------------------------------------------------------------------------- 1 |
Signatures
2 | 3 |

This section helps you to build a basic SHA1 signature from a given file. See Creating signatures for ClamAV and File hash signatures for more details on how to manage viruses signatures.

4 | 5 |

When the new signature is complete, you can add it to a local *.hdb file or in the official ClamAV database :

6 |
    7 |
  • You can either submit it to ClamAV team using their online form or send it to virus@clamav.net (deprecated method).
  • 8 |
  • And if you want to be notified of changes in the virus database, join the clamav-virusdb@lists.sourceforge.net mailing-list.
  • 9 |
10 | -------------------------------------------------------------------------------- /help/updates_main.fr.html: -------------------------------------------------------------------------------- 1 |
Base de données
2 | 3 |

Un antivirus sans base de signatures contenant les chaînes d'identification des virus connus ne serait pas très efficace. C'est pourquoi vous devez veiller à ce que les bases de signatures de ClamAV soient le plus à jour possible. Cette interface vous permet de définir la période appropriée pour que ClamAV fasse cette mise à jour automatiquement. Vous pouvez également faire une mise à jour manuelle pour vous assurer que tout va bien.

4 | -------------------------------------------------------------------------------- /help/updates_main.html: -------------------------------------------------------------------------------- 1 |
Database
2 | 3 |

An antivirus without a signatures database containing the identification strings of known viruses wouldn't be very efficient. That's why you must make sure that ClamAV's signatures databases are up to date. This interface enables you to choose the frequency of its automatic updates. You may also perform updates manually.

4 | -------------------------------------------------------------------------------- /help/vdb_search_main.fr.html: -------------------------------------------------------------------------------- 1 |
Recherche de virus
2 | 3 |

Vous pouvez afficher l'intégralité de la base de virus ClamAV, ou bien rechercher un virus particulier ou encore tous les virus dont le nom contient la chaîne saisie.

4 | -------------------------------------------------------------------------------- /help/vdb_search_main.html: -------------------------------------------------------------------------------- 1 |
Viruses search
2 | 3 |

You can view the whole ClamAV viruses database, search for one specific virus, or for any virus that contains your keyword.

4 | -------------------------------------------------------------------------------- /images/backup_restore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esaracco/wbmclamav/6f577d65511abfe4dd287b639c278933ff96e5d0/images/backup_restore.png -------------------------------------------------------------------------------- /images/icon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esaracco/wbmclamav/6f577d65511abfe4dd287b639c278933ff96e5d0/images/icon.gif -------------------------------------------------------------------------------- /images/logs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esaracco/wbmclamav/6f577d65511abfe4dd287b639c278933ff96e5d0/images/logs.png -------------------------------------------------------------------------------- /images/quarantine.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esaracco/wbmclamav/6f577d65511abfe4dd287b639c278933ff96e5d0/images/quarantine.png -------------------------------------------------------------------------------- /images/remote_control.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esaracco/wbmclamav/6f577d65511abfe4dd287b639c278933ff96e5d0/images/remote_control.png -------------------------------------------------------------------------------- /images/scandir.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esaracco/wbmclamav/6f577d65511abfe4dd287b639c278933ff96e5d0/images/scandir.png -------------------------------------------------------------------------------- /images/settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esaracco/wbmclamav/6f577d65511abfe4dd287b639c278933ff96e5d0/images/settings.png -------------------------------------------------------------------------------- /images/signatures.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esaracco/wbmclamav/6f577d65511abfe4dd287b639c278933ff96e5d0/images/signatures.png -------------------------------------------------------------------------------- /images/updates.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esaracco/wbmclamav/6f577d65511abfe4dd287b639c278933ff96e5d0/images/updates.png -------------------------------------------------------------------------------- /images/vdb_search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esaracco/wbmclamav/6f577d65511abfe4dd287b639c278933ff96e5d0/images/vdb_search.png -------------------------------------------------------------------------------- /index.cgi: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | # Copyright (C) 2003-2019 4 | # Emmanuel Saracco 5 | # 6 | # GNU GENERAL PUBLIC LICENSE 7 | 8 | require './clamav-lib.pl'; 9 | &ReadParse (); 10 | 11 | # If the system has not yet been prepared for this module. 12 | if (&clamav_system_ok ("backup")) 13 | { 14 | &redirect ("/$module_name/backup_restore.cgi"); 15 | } 16 | 17 | @links = (); 18 | @titles = (); 19 | @icons = (); 20 | 21 | sub clamav_add_if_acl_ok ($ $ $ $) 22 | { 23 | my ($acl, $link, $title, $icon) = @_; 24 | 25 | if (&clamav_get_acl ($acl) == 1) 26 | { 27 | push @links, $link; 28 | push @titles, $title; 29 | push @icons, $icon; 30 | } 31 | } 32 | 33 | &clamav_add_if_acl_ok ('backup_restore_manage', 'backup_restore.cgi', 34 | $text{'LINK_BACKUP_RESTORE_PAGE'}, 'images/backup_restore.png'); 35 | &clamav_add_if_acl_ok ('quarantine_view', 'quarantine_main.cgi', 36 | $text{'LINK_QUANRANTINE_PAGE'}, 'images/quarantine.png'); 37 | &clamav_add_if_acl_ok ('database_update_view', 'updates_main.cgi', 38 | $text{'LINK_UPDATE_PAGE'}, 'images/updates.png'); 39 | &clamav_add_if_acl_ok ('directories_check_view', 'scandir_main.cgi', 40 | $text{'LINK_SCANDIR'}, 'images/scandir.png'); 41 | &clamav_add_if_acl_ok ('global_settings_view', 'settings_main.cgi', 42 | $text{'LINK_SETTINGS'}, 'images/settings.png'); 43 | &clamav_add_if_acl_ok ('clamav_remote_control', 'remote_control_main.cgi', 44 | $text{'LINK_REMOTE_CONTROL'}, 'images/remote_control.png'); 45 | &clamav_add_if_acl_ok ('logs_viewer_view', 'logs_main.cgi', 46 | $text{'LINK_LOGS'}, 'images/logs.png'); 47 | &clamav_add_if_acl_ok ('database_search_search', 'vdb_search_main.cgi', 48 | $text{'LINK_VDB_SEARCH'}, 'images/vdb_search.png'); 49 | &clamav_add_if_acl_ok ('signature_use', 'signatures_main.cgi', 50 | $text{'LINK_SIGNATURES'}, 'images/signatures.png'); 51 | 52 | &header($text{'FORM_TITLE'}, undef, basename($scriptname, '.cgi'), 1, 1, 0, undef, undef, undef, "
$text{'HOMEPAGE'} | $text{'DOWNLOAD'} | $text{'LATEST_CLAMAV'}"); 53 | &clamav_header_extra (); 54 | 55 | &clamav_main_check_config (1); 56 | &clamav_check_deps (1); 57 | 58 | # Warn user when a new wbmclamav release is available 59 | if ($ENV{'HTTP_REFERER'} !~ /$module_name\/[a-z]/i && 60 | $config{'clamav_check_new'} && 61 | (my ($m, $c) = &clamav_check_new_release())) 62 | { 63 | &clamav_display_msg ( 64 | sprintf (qq($text{'NEW_RELEASE_AVAILABLE'}), $m, $c, $m), 'info', 'bell'); 65 | } 66 | 67 | print qq(

$text{'INDEX_PAGE_DESCRIPTION'}

\n); 68 | 69 | if (&clamav_get_acl ('clamav_start_stop') == 1) 70 | { 71 | if (&clamav_is_clamd_installed ()) 72 | { 73 | # activate 74 | if ($in{'status'} eq '1') 75 | { 76 | &clamav_activate_clamd (); 77 | } 78 | # deactivate 79 | elsif ($in{'status'} eq '0') 80 | { 81 | &clamav_deactivate_clamd (); 82 | } 83 | 84 | print qq(
\n); 85 | print qq(
); 86 | 87 | if (&clamav_is_clamd_alive () == ()) 88 | { 89 | print qq(); 90 | print qq(
); 91 | } 92 | else 93 | { 94 | print qq(); 95 | print qq(
); 96 | } 97 | print qq(
); 98 | print qq(
); 99 | } 100 | } 101 | 102 | print qq(

);&icons_table (\@links, \@titles, \@icons);print qq(

); 103 | 104 | print qq(
); 105 | my $clamav_version = &clamav_get_version (); 106 | my $wbmclamav_version = $module_info{'version'}; 107 | print qq(

ClamAV $clamav_version / wbmclamav $wbmclamav_version

); 108 | &footer ('/', $text{'index'}); 109 | -------------------------------------------------------------------------------- /js/clamav.js: -------------------------------------------------------------------------------- 1 | function HTMLClassRemove (e, cls) 2 | { 3 | e.className = e.className.replace (cls, ''); 4 | } 5 | 6 | function HTMLClassAdd (e, cls) 7 | { 8 | if (e.className.indexOf (cls) == -1) 9 | e.className += ' '+cls; 10 | } 11 | 12 | function HTMLClassReplace (e, cls1, cls2) 13 | { 14 | HTMLClassRemove (e, cls1); 15 | HTMLClassAdd (e, cls2); 16 | } 17 | 18 | function updateActionsChecked (form, target, name) 19 | { 20 | for (var i = 0, len = form.elements.length; i < len; i++) 21 | { 22 | var e = form.elements[i]; 23 | 24 | if (e.type == 'checkbox' && e.checked && e.name.indexOf(name) != -1) 25 | return HTMLClassRemove (target, 'disabled'); 26 | } 27 | 28 | HTMLClassAdd (target, 'disabled'); 29 | } 30 | 31 | function checkUncheckAll (e, name, checkedText, uncheckedText) 32 | { 33 | var r = document.querySelectorAll ('input[name^="'+name+'"]'); 34 | var v = e.getAttribute ('data-checked'); 35 | 36 | for (var i = 0, len = r.length; i < len; i++) 37 | r[i].checked = (v == 0); 38 | 39 | if (v == 1) 40 | { 41 | e.setAttribute ('data-checked', 0); 42 | HTMLClassReplace (e.querySelector('i'), 'fa-square-o', 'fa-check-square-o'); 43 | e.querySelector('span').innerText = checkedText; 44 | } 45 | else 46 | { 47 | e.setAttribute ('data-checked', 1); 48 | HTMLClassReplace (e.querySelector('i'), 'fa-check-square-o', 'fa-square-o'); 49 | e.querySelector('span').innerText = uncheckedText; 50 | } 51 | } 52 | 53 | function displayMsg (msg, type, title) 54 | { 55 | var e = document.getElementById ('alert-msg'); 56 | 57 | e.innerHTML = 58 | ""+((title)?""+title+"":'')+"

"+msg+"

"; 59 | 60 | e.className = 'alert alert-'+((type)?type:'info'); 61 | e.style.display = 'block'; 62 | } 63 | 64 | -------------------------------------------------------------------------------- /lang/en: -------------------------------------------------------------------------------- 1 | ACTION=Action 2 | ACTIVATE=Activate ClamAV 3 | ADD_KEY=Add this key 4 | ALL=All 5 | APPLY=Apply 6 | BACKUP=Backup 7 | BACKUP_RESTORE=Backup / Restore 8 | BACKUP_RESTORE_DESCRIPTION=

To manage ClamAV, this module need to deactivate other system specific ClamAV control scripts and configuration. Nothing will be removed from your system. Scripts will just be moved in the directory you have indicated in the module configuration. To backup files, click on the "Backup" button. To restore files, just click on the "Restore" button.

You can access to this section at any moment, using the "Backup / Restore" icon on the main module page. All files wile be automatically restored when you will uninstall this module from Webmin.

9 | BACKUP_RESTORE_INFO=IMPORTANT: After a backup, go to the Database section, review the configuration and save it again. 10 | BAD_CONFIG_1=The module's configuration parameters are wrong: they specify the use of freshclam as a daemon for automatic updates, but no freshclam daemon exists on the system. 11 | BAD_CONFIG_2=The module's configuration parameters are wrong: they specify the use of freshclam as a daemon for automatic updates, but cron is already configured for the same task. To be able to use a daemon, you must go back to the module's configuration page, select the cron automatic update method, and come back to this page to deactivate automatic updates. You will then be able to modify the configuration again to use a daemon instead of cron. 12 | BAD_CONFIG_3=The module's configuration parameters are wrong: they specify the use of cron for automatic updates, but a freshclam daemon is already active. To be able to use cron, you must return to the module's configuration, select a daemon automatic update method, and come back to this page to deactivate automatic updates. You will then be able to modify the configuration again to use cron instead of the daemon. 13 | BAD_CONFIG_4=The module's configuration parameters are wrong: they specify manual update, but cron is already configured for this task. To be able to do only manual updates, you must go back to the module's configuration page, select the cron automatic update method, and come back to this page to deactivate automatic updates. You will then be able to modify the configuration again and choose manual update. 14 | BAD_CONFIG_5=The module's configuration parameters are wrong: they specify manual update, but a freshclam daemon is already active. To be able to do only manual updates, you must return to the module's configuration, select a daemon automatic update method, and come back to this page to deactivate automatic updates. You will then be able to modify the configuration again and choose manual update. 15 | BAD_CONFIG_6=Your system already has its own signatures database update management script (see /etc/cron.daily/clamav-data for details). 16 | CHECK=Check 17 | CHECK_ALL=Check all 18 | CHECK_DIR=Check this directory 19 | CHECK_SUB=Also check sub-directories 20 | CHECK_UNCHECK_ALL=Check/Uncheck all 21 | CHOOSE_PREFIX=Choose prefix 22 | CLAMAV_DB_FUNCTIONALITY_LEVEL=Functionality level 23 | CLAMAV_DB_VERSION=Version 24 | CLAMSCAN_COMMAND=Executed command 25 | COMMAND=Command: 26 | DAEMON_ANSWER=Clamd daemon answer 27 | DAILY_UPDATE_DATE=Daily database 28 | DATABASE_UPDATE=Database update 29 | DATA_SCANNED=Data scanned 30 | DATE=Date 31 | DAY=Day 32 | DAYS=days 33 | DEACTIVATE=Deactivate ClamAV 34 | DELETE=Delete 35 | DELETEAFTER=Delete items after 36 | DELETE_ITEM=Delete this item 37 | DELETE_MAX_DAYS=Only delete items having more than 38 | DELETE_SELECTED=Delete selected items 39 | DESCRIPTION=Description 40 | DIRECTORIES_CHECK=Local scan 41 | DISPLAY=Display 42 | DOWNLOAD=Download 43 | EMPTY=Empty 44 | END=End 45 | ENGINE_VERSION=Engine version 46 | EVERYDAY=Every day 47 | EVERY_X_HOURS=Every X hour(s) 48 | EXPORT=CSV Export 49 | FD_TO_SCAN=File/directory to scan 50 | FILE=File 51 | FILES=Files 52 | FILES_DELETED=Selected files were deleted. 53 | FILE_SIZE=File size 54 | FORM_TITLE=ClamAV Antivirus management 55 | FREQUENCY=Frequency 56 | FRIDAY=Friday 57 | FROM=From 58 | FROM_PERIOD=From 59 | GLOBAL_SETTINGS=Settings 60 | HOMEPAGE=Homepage 61 | HOST=Host 62 | HOUR=Hour 63 | I/O_BUFFER_SIZE=I/O buffer size 64 | INDEX_PAGE_DESCRIPTION=The ClamAV Antivirus protects you from most viruses (worms, Trojan horses, polymorphics etc). Used in conjunction with content scanners like amavisd-new, MailScanner, Qmail-Scanner or ClamAV-Milter, it moves infected E-Mails in quarantine. Its signatures database must be updated pretty often (this base contains identification strings of almost every known viruses). 65 | INFECTED_FILES=Infected files 66 | INFECTED_FILES_WHERE_MOVED=Infected files have been moved to: 67 | KNOWN_VIRUSES=Known viruses 68 | LAST_UPDATES_DESCRIPTION=Last update: 69 | LATEST_CLAMAV=ClamAV 70 | LINES_OF=lines of 71 | LINK_BACKUP_RESTORE_PAGE=Backup / Restore 72 | LINK_LOGS=Logs 73 | LINK_QUANRANTINE_PAGE=Quarantine 74 | LINK_REMOTE_CONTROL=Remote control 75 | LINK_SCANDIR=Local scan 76 | LINK_SETTINGS=Settings 77 | LINK_SIGNATURES=Signatures 78 | LINK_UPDATE_PAGE=Database 79 | LINK_VDB_SEARCH=Viruses search 80 | LOGS_PAGE_DESCRIPTION=Choose a log file in the combo box to view it. 81 | LOGS_VIEWER=Logs 82 | MAIN_UPDATE_DATE=Main database 83 | MANAGE=Manage 84 | MONDAY=Monday 85 | MONTHS_LIST=January February March April May June July August September October November December 86 | MOVE_INFECTED_FILES=Automatically move infected files in the following directory: 87 | MSG_ACL_DENIED=You are not allowed to perform this action. 88 | MSG_BAD_CLAMAV_VERSION=Your version of ClamAV is not compatible with this module. Please check that you have installed a recent enough version of ClamAV. 89 | MSG_CLAMSCAN_BAD_MOVE_DIR=The directory to move infected files to does not exist. 90 | MSG_CLAMSCAN_BAD_SCAN_DIR=The directory to check does not exist. 91 | MSG_CONFIGS_RESTORED=The configuration files have been restored 92 | MSG_CONFIG_ALERT_AMAVIS=Nor AMaViS, ClamAV-Milter, Qmail-Scanner or MailScanner has been found. Please install a content-scanner, review the module's configuration and check Webmin environment path configuration to add content-scanner binaries path. 93 | MSG_CONFIG_ALERT_BACKUP_PATH=Please indicate the backup path in the module's configuration. The path must already exists on the system. 94 | MSG_CONFIG_ALERT_CLAMAV_CONF=Please fill in the location of the ClamAV configuration file in the module's configuration. 95 | MSG_CONFIG_ALERT_CLAMAV_DAEMON=Please fill in the location of the ClamAV daemon startup file in the module's configuration (install the ClamAV daemon package if it isn't already done). If you are using systemd, check Operating System and Environment path in Webmin configuration module and be sure that /bin/systemd is in. 96 | MSG_CONFIG_ALERT_CLAMAV_LOG=Please fill in the location of the ClamAV Daemon (clamd) log file in the module's configuration. 97 | MSG_CONFIG_ALERT_CLAMSCAN=The clamscan binary need to be present on the server. If it is, please fill in the ClamAV binaries location in the module's configuration. 98 | MSG_CONFIG_ALERT_DB1=Please fill in the location of the main signatures database (should be main.cld) in the module's configuration or initialize database by running freshclam on command line. 99 | MSG_CONFIG_ALERT_DB2=Please fill in the location of the daily signatures database (should be daily.cvd) in the module's configuration or initialize database by running freshclam on command line. 100 | MSG_CONFIG_ALERT_FRESHCLAM_CONF=Please fill in the location of the freshclam daemon configuration file in the module's configuration. 101 | MSG_CONFIG_ALERT_FRESHCLAM_INIT=Please fill in the location of the freshclam start up file in the module's configuration. 102 | MSG_CONFIG_ALERT_FRESHCLAM_LOG=Please fill in the location of the Freshclam log file in the module's configuration. 103 | MSG_CONFIG_ALERT_INIT_SCRIPTS_SAME=ClamAV daemon init script and freshclam daemon init script must not be the same script. 104 | MSG_CONFIG_ALERT_MTA=You need at list a MTA like rsmtp or sendmail installed on the server for resending false positive E-Mails. 105 | MSG_CONFIG_ALERT_QUARANTINE=Please fill in the location of the quarantine directory in the module's configuration. 106 | MSG_CONFIG_ALERT_REFRESH=The freshclam binary need to be present on the server. If it is, please fill in the ClamAV binaries location in the module's configuration. 107 | MSG_CONFIG_ALERT_USE_CRON=Please fill in the method to be used to update the signatures' database in the module's configuration. 108 | MSG_CONFIG_ALERT_WORKING_PATH=Please indicate the working path in the module's configuration. 109 | MSG_CONFIG_WARNING_QUARANTINE_TO_SHORT=Quarantine path length is too short (%s)! To prevent fatal destruction of all you system file when purging quarantine, there is a arbitrary minimal limit of 8 characters for the quarantine path. 110 | MSG_ERROR_APPLY_GLOBAL_SETTINGS=An error occured while restarting ClamAV daemon. See the log file for more details. 111 | MSG_ERROR_BAD_SIGNATURE=Unauthorized characters in the signature (only alphanumeric characters, dash (-), dot (.), underscore (_) and slash (/) are accepted) 112 | MSG_ERROR_FILE_READ=An error occured while reading the following file:

%s 113 | MSG_ERROR_FILE_UPLOAD=No file to upload. 114 | MSG_ERROR_FREQUENCY_UPDATE=An error occured with the freshclam daemon. Please, check you init script. 115 | MSG_ERROR_NO_ANSWER=The remote host did not return anything 116 | MSG_ERROR_NO_CONNECTION=The remote host does not exist or does not respond on the specified port. 117 | MSG_ERROR_QUARANTINE_UPDATE_MAXDAYS=Your input for days number is not in a correct format 118 | MSG_ERROR_SIGNATURES_CONFIG=You need to have both strings and hexdump tools installed on the server in order to use this section 119 | MSG_ERROR_SMTP_PING=The given SMTP host %s is not alive. 120 | MSG_ERROR_STATUS_PURGE_ALL=An error occured while purging the quarantine repository 121 | MSG_ERROR_STATUS_REMOVE=A problem has occured during the E-Mail deletion! 122 | MSG_ERROR_STATUS_RESEND=A problem has occured while the E-Mail was resent! 123 | MSG_ERROR_TAKE_ARG=The selected command takes an argument. 124 | MSG_ERROR_TAKE_NO_ARG=The selected command does not accept arguments 125 | MSG_FATAL_ERROR_BACKUP_FILE=wbmclamav can not backup the file %s to %s. 126 | MSG_FATAL_ERROR_BACKUP_FILE_EMPTY=wbmclamav can not deactivate the file %s. 127 | MSG_FATAL_ERROR_BACKUP_PATH=wbmclamav can not write its backup directory: %s. 128 | MSG_FATAL_ERROR_RESTORE_PATH_NOEXIST=The backup directory does not exist. wbmclamav was not able to restore your system configuration. 129 | MSG_QUARANTINE_IS_EMPTY=Quarantine is empty. 130 | MSG_SUCCESS_BACKUP=System files have been backuped with success. 131 | MSG_SUCCESS_DATABASE_UPDATED=The database has been updated. 132 | MSG_SUCCESS_FREQUENCY_UPDATE=The update frequency has been updated. 133 | MSG_SUCCESS_QUARANTINE_CRON_UPDATE=The automatic purge of the quarantine directory has been modified. 134 | MSG_SUCCESS_RESTORE=System files have been restored with success. 135 | MSG_SUCCESS_STATUS_PURGE_ALL=The quarantine repository was entirely purged. 136 | MSG_SUCCESS_STATUS_REMOVE=E-Mails have been removed from the quarantine. 137 | MSG_SUCCESS_STATUS_RESEND=E-Mails have been resent. 138 | MSG_SUCCES_APPLY_GLOBAL_SETTINGS=Configuration files have been updated. 139 | MSG_VIRUS_NAME=Please select a prefix or enter a string to search for. 140 | MSG_WARNING_RESTORE_BACKUP_FLAG=It seems that you never backuped this system with wbmclamav. So nothing can be restore. 141 | MSG_WHITE_CHARS_REMOVED=Spaces have been removed 142 | NAME=Name 143 | NEVER_REFRESH=Never update automatically. 144 | NEW_RELEASE_AVAILABLE=A new wbmclamav release (%s) for ClamAV >= %s is available here! 145 | NEXT=Next 146 | NONE=None 147 | NOTASPAM=Do not identify those E-Mails as spam anymore 148 | NOTASPAM_TOOLTIP=Tell SpamAssasin that those E-Mails are not spam 149 | NOT_YET_UPDATED=No update of the viruses database has been done yet. 150 | NO_RESULT=No result for "%s". 151 | NO_RESULT_QUARANTINE=No result for this search. 152 | NO_VALUE=No value 153 | OPTION_BADH=Bad headers 154 | OPTION_BANNED=Banned 155 | OPTION_SPAM=Spams 156 | OPTION_VIRUS=Viruses 157 | PERIOD=Period 158 | PERL_DEPS_ERROR=Please, install the following perl modules from the Webmin CPAN module or download them directly from the CPAN web site and install them manually (read wbmclamav README file for this) in order to use this application: 159 | PERL_DEPS_MORE_SA=if you do not want to manage quarantine, deselect the default choice in the "Quarantine" section of the module configuration 160 | PORT=Port 161 | PREVIOUS=Previous 162 | PURGE_QUARANTINE_NOW=Purge quarantine now 163 | QUARANTINE=Quarantine 164 | QUARANTINE_BADHEADERS=Bad headers count 165 | QUARANTINE_BANNED=Banned count 166 | QUARANTINE_CLEANING=Repository cleaning 167 | QUARANTINE_CRON_DESCRIPTION=You may also choose the frequency of the automatic purge of the quarantine directory. 168 | QUARANTINE_DIRECTORY=Quarantine directory 169 | QUARANTINE_FILE=Quarantine file 170 | QUARANTINE_PAGE_DESCRIPTION=When an infected E-Mail is detected, it is moved in a quarantine repository. This allows you to check every suspected E-Mail ; and to delete it, or resend it if it was mistakenly put in quarantine. If you are using amavisd-new/SpamAssassin you will be able to manage both Spams and Viruses. Note that if you use ClamAV-Milter, Qmail-Scanner or MailScanner you will not be able to view the virus name in the quarantine listing. 171 | QUARANTINE_PURGE_NEVER=Never purge the quarantine directory automatically 172 | QUARANTINE_REFRESH_STATS=Refresh statistics 173 | QUARANTINE_RESEARCH=Repository research 174 | QUARANTINE_RESEARCH_DESCRIPTION=You should filter the quarantine's repository content before displaying it. 175 | QUARANTINE_RESEND_NEWTO_PAGE_DESCRIPTION=If you want to force sender, recipient or SMTP server to use for all E-Mails to be resent, fill the following form. If not, let those fields empty: 176 | QUARANTINE_RESEND_PAGE_TITLE=Resending E-Mails 177 | QUARANTINE_SHOWHIDE_GRAPH=Show/Hide evolution graph 178 | QUARANTINE_SIZE=Current quarantine size 179 | QUARANTINE_SPAMS=Spams count 180 | QUARANTINE_STATS_REFRESHED=Statistics have been refreshed. 181 | QUARANTINE_VIEWLOG_PAGE_DESCRIPTION=When a E-Mail is moved in quarantine, it also have an associated log file. This file contains the operations carried out on the analysed E-Mail. 182 | QUARANTINE_VIEWLOG_PAGE_TITLE=Viewing log file 183 | QUARANTINE_VIEWMAIL_PAGE_DESCRIPTION=Here is the content of the E-Mail. You have access to the whole E-Mail: header, body, and possible encoded attached files. 184 | QUARANTINE_VIEWMAIL_PAGE_TITLE=Viewing E-Mail 185 | QUARANTINE_VIRUSES=Viruses count 186 | RECIPIENT=Recipient 187 | REMOTE_CONTROL=Remote control 188 | REMOTE_CONTROL_DESCRIPTION=This section allow you to control ClamAV daemon running on a remote host. To allow ClamAV daemon to listen for remote connections you must remove the LocalSocket and set TCPAddr and TCPSocket from the ClamAV settings section. 189 | REPORT=Report 190 | RESEND=Resend 191 | RESEND_SELECTED=Resend selected items 192 | RESTORE=Restore 193 | RETURN=Return 194 | RETURN_INDEX_MODULE=ClamAV Antivirus management 195 | RETURN_QUARANTINE_LIST=List of E-Mails in quarantine 196 | RETURN_SIGNATURES_MAIN=Signatures extraction index 197 | SATURDAY=Saturday 198 | SCANDIR_DESCRIPTION=You can choose the directory that you want to be checked by ClamAV Antivirus. 199 | SCANNED_DIRECTORIES=Scanned directories 200 | SCANNED_FILES=Scanned files 201 | SCAN_RESULT=Scan result 202 | SEARCH=Search 203 | RESEARCH=Search 204 | CLEANING=Cleaning 205 | SEARCH_CASE_SENSITIVE=Case sensitive 206 | SEARCH_SORT_RESULT=Sort results 207 | SEARCH_STRICT=Exact match 208 | SEND=Send 209 | SENDER=Sender 210 | SETTINGS_CLAMAV_TITLE=ClamAV settings 211 | SETTINGS_DESCRIPTION=This section gives you the ability to control content of all ClamAV configuration files. Change them carefully. 212 | SETTINGS_FRESHCLAM_TITLE=Freshclam settings 213 | SETTINGS_MULTIVALUED=Options followed by an asterisk are multivalued and can be added multiple times. 214 | SHOW_INFECTED_ONLY=Only show infected files 215 | SIGNATURE=Signature 216 | SIGNATURES_BUILD_END_STEP=End of signature building process. 217 | SIGNATURES_BUILD_END_STEP_DESCRIPTION=The new signature is now ready to be added in a local *.hdb file or in the official ClamAV database :

218 | SIGNATURES_DESCRIPTION=This section helps you to build a basic SHA1 signature from a given file. See Creating signatures for ClamAV and File hash signatures for more details on how to manage viruses signatures. 219 | SIGNATURES_EXTRACTION=Signatures 220 | SIGNATURES_FIRST_STEP=First step: Upload corrupted file 221 | SIGNATURES_THIRD_STEP=Third step: End signature's creation 222 | SIGNATURES_THIRD_STEP_DESCRIPTION=Please check the signature name : 223 | SIGNATURE_CREATE=Create signature 224 | SPAM_LEVEL=Spam level 225 | START_STOP=Start/Stop daemon 226 | SUBJECT=Subject 227 | SUNDAY=Sunday 228 | THURSDAY=Thursday 229 | TIME=Time 230 | TO=To 231 | TO_PERIOD=To 232 | TUESDAY=Tuesday 233 | TYPE=Type 234 | UNCHECK_ALL=Uncheck all 235 | UNDEFINED=UNDEFINED 236 | UPDATE=Update 237 | UPDATE_FRESHCLAM_DAEMON_CHOICE=You have configured this module so that the freshclam daemon updates the signatures database. Please select the number of daily checks freshclam will have to carry out. 238 | UPDATE_NOW=Update now 239 | UPDATE_PAGE_DESCRIPTION_AUTO=To choose the frequency of the signatures database's automatic updates, or to deactivate its automatic update. 240 | UPDATE_PAGE_DESCRIPTION_GENERAL=An antivirus without a signatures database containing the identification strings of known viruses wouldn't be very efficient. That's why you must make sure that ClamAV's signatures databases are up to date. This interface enables you to choose the frequency of its automatic updates. You may also perform updates manually. 241 | UPDATE_PAGE_DESCRIPTION_MANUAL=If you don't have a permanent connection, or to force an update. 242 | UPDATE_REPORT=Update report: 243 | UPDATE_TITLE_AUTO=Automatic update 244 | UPDATE_TITLE_MANUAL=Manual update 245 | UPLOAD=Upload 246 | USE=Use 247 | USE_PROXY_SETTINGS=The following proxy parameters will be transmitted to freshclam: 248 | VDB_SEARCH_DESCRIPTION=You can view the whole ClamAV viruses database, search for one specific virus, or for any virus that contains your keyword. 249 | VDB_SEARCH_UPDATE_DB=Update now 250 | VDB_SEARCH_VIRUSES_COUNT=There is %u viruses in ClamAV database 251 | VIEW=View 252 | VIEWLOG=Log 253 | VIRUS=Virus 254 | VIRUSES_SEARCH=Viruses search 255 | WARNING=Warning 256 | WEDNESDAY=Wednesday 257 | WITH_SMTP=SMTP server[:port] 258 | WRITE_DELETE=Write/Delete 259 | -------------------------------------------------------------------------------- /lang/fr: -------------------------------------------------------------------------------- 1 | ACTION=Action 2 | ACTIVATE=Activer ClamAV 3 | ADD_KEY=Ajouter cette clé 4 | ALL=Toutes 5 | APPLY=Appliquer 6 | BACKUP=Sauvegarder 7 | BACKUP_RESTORE=Sauvegarde / Restauration 8 | BACKUP_RESTORE_DESCRIPTION=

Pour gérer ClamAV ce module a besoin de désactiver certains autres scripts de gestion de ClamAV spécifiques au système ou à la distribution. Rien ne sera supprimé de votre système. Les scripts seront juste déplacés dans le répertoire que vous avez indiqué dans la configuration du module. Pour sauvegarder les fichiers, cliquez sur le bouton "Sauvegarder". Pour restaurer les fichiers, il suffit de cliquer sur le bouton "Restaurer".

Vous pouvez accéder à cette section à tout moment, en utilisant l'icône "Sauvegarde / Restauration" à partir de la page principale de ce module. Tous les fichiers seront automatiquement restaurés lorsque vous supprimerez ce module via Webmin.

9 | BACKUP_RESTORE_INFO=IMPORTANT: Après une sauvegarde, allez dans la section Base de données, vérifiez la configuration et sauvez-là. 10 | BAD_CONFIG_1=Les paramètres de configuration du module sont erronés: ils spécifient d'utiliser freshclam en tant que démon pour les mises à jour automatiques, mais aucun démon freshclam n'existe sur le système. 11 | BAD_CONFIG_2=Les paramètres de configuration du module sont erronés: ils spécifient d'utiliser freshclam en tant que démon pour les mises à jour automatiques, mais un cron est déjà programmé pour cela. Pour pouvoir utiliser un démon vous devez retourner dans la configuration du module, sélectionner une méthode de rafraîchissement automatique par cron, puis revenir sur cet écran et désactiver les mises à jour automatiques. Ensuite seulement vous pourrez de nouveau modifier la configuration pour utiliser un démon au lieu d'un cron. 12 | BAD_CONFIG_3=Les paramètres de configuration du module sont erronés: ils spécifient d'utiliser cron pour les mises à jour automatiques, mais un démon freshclam est déjà actif. Pour pouvoir utiliser cron vous devez retourner dans la configuration du module, sélectionner une méthode de rafraîchissement automatique par démon, puis revenir sur cet écran et désactiver les mises à jour automatiques. Ensuite seulement vous pourrez de nouveau modifier la configuration pour utiliser cron au lieu du démon. 13 | BAD_CONFIG_4=Les paramètres de configuration du module sont erronés: ils spécifient une mise à jour manuelle, mais un cron est déjà activé. Pour ne faire que des mises à jour manuelles vous devez retourner dans la configuration du module, sélectionner une méthode de rafraîchissement automatique par cron puis revenir sur cet écran et désactiver les mises à jour automatiques. Ensuite vous pourrez sélectionner une méthode de mise à jour manuelle. 14 | BAD_CONFIG_5=Les paramètres de configuration du module sont erronés: ils spécifient une mise à jour manuelle, mais un démon freshclam est déjà activé. Pour ne faire que des mises à jour manuelles vous devez retourner dans la configuration du module, sélectionner une méthode de rafraîchissement automatique par démon puis revenir sur cet écran et désactiver les mises à jour automatiques. Ensuite vous pourrez sélectionner une méthode de mise à jour manuelle. 15 | BAD_CONFIG_6=Votre système possède déjà sa propre gestion des mises à jours de la base de signatures via un script cron (voir /etc/cron.daily/clamav-data pour les détails). 16 | CHECK=Vérification 17 | CHECK_ALL=Tout sélectionner 18 | CHECK_DIR=Vérifier ce répertoire 19 | CHECK_SUB=Vérifier également les sous-répertoires 20 | CHECK_UNCHECK_ALL=Sélectionner/Désélectionner tout 21 | CHOOSE_PREFIX=Choisir préfixe 22 | CLAMAV_DB_FUNCTIONALITY_LEVEL=Niveau de fonctionnalité 23 | CLAMAV_DB_VERSION=Version 24 | CLAMSCAN_COMMAND=Commande exécutée 25 | CLEANING=Nettoyage 26 | COMMAND=Commande: 27 | DAEMON_ANSWER=Réponse du démon Clamd 28 | DAILY_UPDATE_DATE=Base quotidienne 29 | DATABASE_UPDATE=Mise à jour de la base 30 | DATA_SCANNED=Données scannées 31 | DATE=Date 32 | DAY=Jour 33 | DAYS=jours 34 | DEACTIVATE=Désactiver ClamAV 35 | DELETE=Supprimer 36 | DELETEAFTER=Supprimer les éléments ensuite 37 | DELETE_ITEM=Supprimer cet élément 38 | DELETE_MAX_DAYS=Ne supprimer que les éléments de plus de 39 | DELETE_SELECTED=Supprimer les éléments sélectionnés 40 | DESCRIPTION=Description 41 | DIRECTORIES_CHECK=Scan local 42 | DISPLAY=Afficher 43 | DOWNLOAD=Téléchargement 44 | EMPTY=Vide 45 | END=Fin 46 | ENGINE_VERSION=Version du moteur 47 | EVERYDAY=Tous les jours 48 | EVERY_X_HOURS=Toutes les X heure(s) 49 | EXPORT=Export CSV 50 | FD_TO_SCAN=Fichier/répertoire à scanner 51 | FILE=Fichier 52 | FILES=Fichiers 53 | FILES_DELETED=Les fichiers sélectionnés ont été supprimés. 54 | FILE_SIZE=Taille du fichier 55 | FORM_TITLE=Gestion de l'antivirus ClamAV 56 | FREQUENCY=Fréquence 57 | FRIDAY=Vendredi 58 | FROM=De 59 | FROM_PERIOD=Du 60 | GLOBAL_SETTINGS=Préférences générales 61 | HOMEPAGE=Accueil 62 | HOST=Machine 63 | HOUR=Heure 64 | I/O_BUFFER_SIZE=Taille du tampon des E/S 65 | INDEX_PAGE_DESCRIPTION=ClamAV Antivirus vous protège de la majeure partie des virus (vers, chevaux de troie, polymorphes etc.). Associé à des scanners de contenu comme amavisd-new, MailScanner, Qmail-Scanner ou ClamAV-Milter, il permet de détecter les courriels infectés pour les mettre en quarantaine. Sa base de signatures doit être mise à jour régulièrement (cette base contient les chaînes d'identification propres à chaque virus connu). 66 | INFECTED_FILES=Fichiers infectés 67 | INFECTED_FILES_WHERE_MOVED=Les fichiers infectés ont été déplacés dans: 68 | KNOWN_VIRUSES=Virus connus 69 | LAST_UPDATES_DESCRIPTION=Dernières mises à jour: 70 | LATEST_CLAMAV=ClamAV 71 | LINES_OF=(les) lignes de 72 | LINK_BACKUP_RESTORE_PAGE=Sauvegarde / Restauration 73 | LINK_LOGS=Logs 74 | LINK_QUANRANTINE_PAGE=Quarantaine 75 | LINK_REMOTE_CONTROL=Contrôl distant 76 | LINK_SCANDIR=Scan local 77 | LINK_SETTINGS=Configuration 78 | LINK_SIGNATURES=Signatures 79 | LINK_UPDATE_PAGE=Base de données 80 | LINK_VDB_SEARCH=Recherche de virus 81 | LOGS_PAGE_DESCRIPTION=Choisissez un fichier de log dans la liste de choix pour le visualiser. 82 | LOGS_VIEWER=Logs 83 | MAIN_UPDATE_DATE=Base principale 84 | MANAGE=Gérer 85 | MONDAY=Lundi 86 | MONTHS_LIST=Janvier Février Mars Avril Mai Juin Juillet Août Septembre Octobre Novembre Décembre 87 | MOVE_INFECTED_FILES=Déplacer automatiquement les fichiers infectés dans le répertoire suivant: 88 | MSG_ACL_DENIED=Vous n'êtes pas autorisé à accomplir cette action. 89 | MSG_BAD_CLAMAV_VERSION=Votre version de ClamAV est incompatible avec ce module. Veuillez vérifiez que vous avez installé une version assez récente de ClamAV. 90 | MSG_CLAMSCAN_BAD_MOVE_DIR=Le répertoire dans lequel déplacer les fichiers infectés n'existe pas. 91 | MSG_CLAMSCAN_BAD_SCAN_DIR=Le répertoire à vérifier n'existe pas. 92 | MSG_CONFIGS_RESTORED=Les fichiers de configuration ont été restaurés 93 | MSG_CONFIG_ALERT_AMAVIS=ClamAV-Milter, AMaViS, Qmail-Scanner ou MailScanner n'a pas été trouvé. Installez un scanner de contenu, et vérifiez la configuration du module ainsi que les variables d'environnement de Webmin pour y ajouter le chemin des binaires du scanner de contenu. 94 | MSG_CONFIG_ALERT_BACKUP_PATH=Veuillez indiquer le répertoire de sauvegarde dans la configuration du module. Ce répertoire doit déjà exister sur le système. 95 | MSG_CONFIG_ALERT_CLAMAV_CONF=Veuillez renseigner l'emplacement du fichier de configuration de ClamAV dans la configuration du module. 96 | MSG_CONFIG_ALERT_CLAMAV_DAEMON=Veuillez renseigner l'emplacement du fichier de démarrage du démon ClamAV dans la configuration du module (installez le paquet ClamAV daemon si ça n'est pas déjà fait). Si vous utilisez systemd, vérifiez les chemins dans le module Système d'exploitation et environnement de Webmin et assurez-vous que /bin/systemd est dedans. 97 | MSG_CONFIG_ALERT_CLAMAV_LOG=Veuillez renseigner l'emplacement du fichier de log de ClamAV Daemon (clamd) dans la configuration du module. 98 | MSG_CONFIG_ALERT_CLAMSCAN=Le binaire clamscan doit être présent sur le serveur. S'il l'est, veuillez renseigner le chemin vers les binaires ClamAV dans la configuration du module. 99 | MSG_CONFIG_ALERT_DB1=Veuillez renseigner l'emplacement de la base de signatures principale (normalement main.cld) dans la configuration du module ou initialiser les bases en lançant freshclam en ligne de commande. 100 | MSG_CONFIG_ALERT_DB2=Veuillez renseigner l'emplacement de la base de signatures quotidienne (normalement daily.cvd) dans la configuration du module ou initialiser les bases en lançant freshclam en ligne de commande. 101 | MSG_CONFIG_ALERT_FRESHCLAM_CONF=Veuillez renseigner l'emplacement du fichier de configuration du démon freshclam dans la configuration du module. 102 | MSG_CONFIG_ALERT_FRESHCLAM_INIT=Veuillez renseigner l'emplacement du fichier de démarrage du démon freshclam dans la configuration du module. 103 | MSG_CONFIG_ALERT_FRESHCLAM_LOG=Veuillez renseigner l'emplacement du fichier de log de Freshclam dans la configuration du module. 104 | MSG_CONFIG_ALERT_INIT_SCRIPTS_SAME=Le script d'initialisation du démon ClamAV ne doit pas être le même que celui du démon freshclam. 105 | MSG_CONFIG_ALERT_MTA=Un MTA valide comme rsmtp ou sendmail doit être présent sur le serveur pour renvoyer les courriels considérés comme des faux-positifs. 106 | MSG_CONFIG_ALERT_QUARANTINE=Veuillez renseigner l'emplacement du répertoire de quarantaine dans la configuration du module. 107 | MSG_CONFIG_ALERT_REFRESH=Le binaire freshclam doit être présent sur le serveur. S'il l'est, veuillez renseigner le chemin vers les binaires ClamAV dans la configuration du module. 108 | MSG_CONFIG_ALERT_USE_CRON=Veuillez renseigner la méthode à utiliser pour mettre à jour la base de signatures dans la configuration du module. 109 | MSG_CONFIG_ALERT_WORKING_PATH=Veuillez indiquer le répertoire de travail dans la configuration du module. 110 | MSG_CONFIG_WARNING_QUARANTINE_TO_SHORT=Le chemin de la quarantaine est trop court (%s)! pour éviter une destruction irrémédiable de votre système de fichier lors des purges, une limite arbitraire de 8 caractères minimum à été mise en place. 111 | MSG_ERROR_APPLY_GLOBAL_SETTINGS=Une erreur est survenue lors du redémarrage de ClamAV. Editez le fichier de log pour plus de détails. 112 | MSG_ERROR_BAD_SIGNATURE=Caractères non autorisés dans la signature (seuls les caractères alphanumériques, le tiret (-), le point (.), le tiret bas (_) et le slash (/) sont acceptés) 113 | MSG_ERROR_FILE_READ=Une erreur est survenue durant la lecture du fichier suivant:

%s 114 | MSG_ERROR_FILE_UPLOAD=Aucun fichier à uploader. 115 | MSG_ERROR_FREQUENCY_UPDATE=Une erreur est survenue avec le démon freshclam. Veuillez vérifier le script d'initialisation. 116 | MSG_ERROR_NO_ANSWER=Le serveur distant n'a rien renvoyé 117 | MSG_ERROR_NO_CONNECTION=Le serveur n'existe pas ou ne répond pas sur le port spécifié. 118 | MSG_ERROR_QUARANTINE_UPDATE_MAXDAYS=Le format n'est pas correct pour le nombre de jours 119 | MSG_ERROR_SIGNATURES_CONFIG=Afin de pouvoir utiliser cette section, les utilitaires strings et hexdump doivent être présents sur le serveur 120 | MSG_ERROR_SMTP_PING=L'hôte SMTP %s indiqué ne répond pas. 121 | MSG_ERROR_STATUS_PURGE_ALL=Une erreur s'est produite durant la purge de la quarantaine 122 | MSG_ERROR_STATUS_REMOVE=Un problème est survenu durant la suppression du courriel! 123 | MSG_ERROR_STATUS_RESEND=Un problème est survenu durant le renvoi du courriel! 124 | MSG_ERROR_TAKE_ARG=La commande sélectionnée requiert un argument. 125 | MSG_ERROR_TAKE_NO_ARG=La commande sélectionnée n'accepte pas d'argument 126 | MSG_FATAL_ERROR_BACKUP_FILE=wbmclamav ne peut pas sauvegarder le fichier %s vers %s. 127 | MSG_FATAL_ERROR_BACKUP_FILE_EMPTY=wbmclamav ne peut pas désactiver le fichier %s. 128 | MSG_FATAL_ERROR_BACKUP_PATH=wbmclamav ne peut pas écrire son répertoire de sauvegarde: %s. 129 | MSG_FATAL_ERROR_RESTORE_PATH_NOEXIST=Le répertoire de sauvegarde n'existe pas. wbmclamav n'a pas pu restaurer la configuration de votre système. 130 | MSG_QUARANTINE_IS_EMPTY=La quarantaine est vide. 131 | MSG_SUCCESS_BACKUP=Les fichiers système ont été sauvegardés avec succès. 132 | MSG_SUCCESS_DATABASE_UPDATED=La base de données à été mise à jour. 133 | MSG_SUCCESS_FREQUENCY_UPDATE=La fréquence de mise à jour à été modifiée. 134 | MSG_SUCCESS_QUARANTINE_CRON_UPDATE=La gestion automatique de la purge du répertoire de quarantaine a été modifiée. 135 | MSG_SUCCESS_RESTORE=Les fichiers système ont été restaurés avec succès. 136 | MSG_SUCCESS_STATUS_PURGE_ALL=Le répertoire de quarantaine a été entièrement purgé. 137 | MSG_SUCCESS_STATUS_REMOVE=Les courriels ont été supprimés de la quarantaine. 138 | MSG_SUCCESS_STATUS_RESEND=Les courriels ont été renvoyés. 139 | MSG_SUCCES_APPLY_GLOBAL_SETTINGS=Les fichiers de configuration ont été modifiés. 140 | MSG_VIRUS_NAME=Veuillez sélectionner un préfixe ou saisir une chaîne à rechercher. 141 | MSG_WARNING_RESTORE_BACKUP_FLAG=Il apparaît que vous n'avez encore jamais sauvegardé ce système avec wbmclamav. Par conséquent rien ne peut être restauré. 142 | MSG_WHITE_CHARS_REMOVED=Les espaces ont été supprimés 143 | NAME=Nom 144 | NEVER_REFRESH=Ne jamais mettre à jour automatiquement. 145 | NEW_RELEASE_AVAILABLE=Une nouvelle version de wbmclamav (%s) pour ClamAV >= %s est disponible ici! 146 | NEXT=Suivant 147 | NONE=Aucun 148 | NOTASPAM=Ne plus considérer ces courriels comme spam 149 | NOTASPAM_TOOLTIP=Dire à SpamAssassin que ces courriels ne sont pas du spam 150 | NOT_YET_UPDATED=Aucune mise à jour de la base de données des viruses n'a encore été faite. 151 | NO_RESULT=Pas de résultat pour "%s". 152 | NO_RESULT_QUARANTINE=Aucun résultat pour cette recherche. 153 | NO_VALUE=Pas de valeur 154 | OPTION_BADH=Mauvais en-têtes 155 | OPTION_BANNED=Interdits 156 | OPTION_SPAM=Spams 157 | OPTION_VIRUS=Virus 158 | PERIOD=Période 159 | PERL_DEPS_ERROR=Veuillez installer les modules perl suivants à l'aide du module Webmin CPAN ou bien téléchargez-les directement sur le site web du CPAN et installez-le manuellement (lisez le fichier README de wbmclamav pour ça) pour pouvoir utiliser cette application: 160 | PERL_DEPS_MORE_SA=si vous ne souhaitez pas gérer de quarantaine, désélectionnez le choix par défaut dans la section "Quarantaine" de la configuration du module 161 | PORT=Port 162 | PREVIOUS=Précédent 163 | PURGE_QUARANTINE_NOW=Purger la quarantaine maintenant 164 | QUARANTINE=Quarantaine 165 | QUARANTINE_BADHEADERS=Nombre de mauvais en-têtes 166 | QUARANTINE_BANNED=Nombre d'interdictions 167 | QUARANTINE_CLEANING=Nettoyage du répertoire 168 | QUARANTINE_CRON_DESCRIPTION=Vous pouvez également déterminer la fréquence à laquelle le répertoire de quarantaine sera automatiquement purgé. 169 | QUARANTINE_DIRECTORY=Répertoire de quarantaine 170 | QUARANTINE_FILE=Fichier de quarantaine 171 | QUARANTINE_PAGE_DESCRIPTION=Lorsqu'un courriel infecté est détecté, il est déposé dans un répertoire dit de quarantaine. Ceci vous permet de vérifier chacun des courriels suspectés, d'en supprimer ou bien d'en renvoyer si vous pensez qu'il a été mis de côté par erreur. Si vous utilisez amavisd-new/SpamAssassin vous avez aussi la possibilité de gérer aussi bien les Spams que les Virus. Il est a noter que si vous utilisez ClamAV-Milter, Qmail-Scanner ou MailScanner le nom du virus n'apparaîtra pas dans la liste des courriels en quarantaine. 172 | QUARANTINE_PURGE_NEVER=Ne jamais purger automatiquement le répertoire de quarantaine 173 | QUARANTINE_REFRESH_STATS=Rafraîchir les statistiques 174 | QUARANTINE_RESEARCH=Recherche dans le répertoire 175 | QUARANTINE_RESEARCH_DESCRIPTION=Il est conseillé de filtrer le contenu de la quarantaine avant de l'afficher. 176 | QUARANTINE_RESEND_NEWTO_PAGE_DESCRIPTION=Si vous voulez forcer l'expéditeur, le destinataire ou le serveur SMTP à utiliser pour tous les courriels à renvoyer, remplissez le formulaire ci-dessous. Sinon, laissez les champs vides: 177 | QUARANTINE_RESEND_PAGE_TITLE=Renvoyer un courriel 178 | QUARANTINE_SHOWHIDE_GRAPH=Voir/Cacher le graphique d'évolution 179 | QUARANTINE_SIZE=Taille courante de la quarantaine 180 | QUARANTINE_SPAMS=Nombre de spams 181 | QUARANTINE_STATS_REFRESHED=Les statistiques ont été rafraîchies. 182 | QUARANTINE_VIEWLOG_PAGE_DESCRIPTION=Lorsqu'un courriel est mis en quarantaine il est accompagné d'un fichier de log. Ce fichier contient les différentes opérations effectuées sur le courriel analysé. 183 | QUARANTINE_VIEWLOG_PAGE_TITLE=Visualisation du log 184 | QUARANTINE_VIEWMAIL_PAGE_DESCRIPTION=Voici le contenu du courriel. Vous avez accès à l'intégralité du courriel: en-tête, corps et éventuelles pièces jointes encodées. 185 | QUARANTINE_VIEWMAIL_PAGE_TITLE=Visualisation du courriel 186 | QUARANTINE_VIRUSES=Nombre de virus 187 | RECIPIENT=Destinataire 188 | REMOTE_CONTROL=Contrôl distant 189 | REMOTE_CONTROL_DESCRIPTION=Cette section permet de contrôler à un démon ClamAV tournant sur une machine distante. Pour faire en sorte que le démon ClamAV accepte les connexions distantes il faut supprimer LocalSocket et définir TCPAddr et TCPSocket dans la configuration de ClamAV depuis les préférences globales. 190 | REPORT=Rapport 191 | RESEARCH=Recherche 192 | RESEND=Renvoyer 193 | RESEND_SELECTED=Renvoyer les éléments sélectionnés 194 | RESTORE=Restaurer 195 | RETURN=Retour 196 | RETURN_INDEX_MODULE=la gestion de l'antivirus ClamAV 197 | RETURN_QUARANTINE_LIST=la liste des courriels en quarantaine 198 | RETURN_SIGNATURES_MAIN=la création des signatures 199 | SATURDAY=Samedi 200 | SCANDIR_DESCRIPTION=Vous pouvez choisir n'importe quel répertoire pour que ClamAV y cherche d'éventuels virus contenus dans les fichiers. 201 | SCANNED_DIRECTORIES=Répertoires vérifiés 202 | SCANNED_FILES=Fichiers vérifiés 203 | SCAN_RESULT=Résultat du scan 204 | SEARCH=Rechercher 205 | SEARCH_CASE_SENSITIVE=Sensible à la casse 206 | SEARCH_SORT_RESULT=Trier le résultat 207 | SEARCH_STRICT=Correspondance exacte 208 | SEND=Envoyer 209 | SENDER=Expéditeur 210 | SETTINGS_CLAMAV_TITLE=Configuration de ClamAV 211 | SETTINGS_DESCRIPTION=Cette section vous donne la possibilité de contrôler le contenu de tous les fichiers de configuration de ClamAV. Réfléchissez bien avant de les modifier. 212 | SETTINGS_FRESHCLAM_TITLE=Configuration de Freshclam 213 | SETTINGS_MULTIVALUED=Les options suivies d'un astérisque sont multivaluées et peuvent donc être ajoutées plusieurs fois. 214 | SHOW_INFECTED_ONLY=N'afficher que les fichiers infectés 215 | SIGNATURE=Signature 216 | SIGNATURES_BUILD_END_STEP=Fin du processus de construction de la signature. 217 | SIGNATURES_BUILD_END_STEP_DESCRIPTION=La nouvelle signature est prête à être ajoutée dans une base locale *.hdb ou dans la base officielle de ClamAV :

218 | SIGNATURES_DESCRIPTION=Cette section vous aide à construire une signature SHA1 basique à partir d'un fichier. Voir Creating signatures for ClamAV et File hash signatures pour plus de détails quant à la gestion des signatures. 219 | SIGNATURES_EXTRACTION=Signatures 220 | SIGNATURES_FIRST_STEP=Première étape: Uploader le fichier corrompu 221 | SIGNATURES_THIRD_STEP=Troisième étape: Terminer la signature 222 | SIGNATURES_THIRD_STEP_DESCRIPTION=Veuillez vérifier le nom de la signature : 223 | SIGNATURE_CREATE=Créer la signature 224 | SPAM_LEVEL=Niveau de Spam 225 | START_STOP=Démarrer/Arrêter le démon 226 | SUBJECT=Sujet 227 | SUNDAY=Dimanche 228 | THURSDAY=Jeudi 229 | TIME=Temps 230 | TO=A 231 | TO_PERIOD=Au 232 | TUESDAY=Mardi 233 | TYPE=Type 234 | UNCHECK_ALL=Tout déselectionner 235 | UNDEFINED=INDEFINIE 236 | UPDATE=Mise à jour 237 | UPDATE_FRESHCLAM_DAEMON_CHOICE=Vous avez configuré ce module pour passer par le démon freshclam pour effectuer les mises à jour de la base de signatures. Veuillez sélectionner le nombre de vérifications quotidiennes que devra faire freshclam. 238 | UPDATE_NOW=Mettre à jour maintenant 239 | UPDATE_PAGE_DESCRIPTION_AUTO=Pour déterminer le moment ou ClamAV rafraîchira sa base de signatures ou bien pour désactiver le rafraîchissement automatique. 240 | UPDATE_PAGE_DESCRIPTION_GENERAL=Un antivirus sans base de signatures contenant les chaînes d'identification des virus connus ne serait pas très efficace. C'est pourquoi vous devez veiller à ce que les bases de signatures de ClamAV soient le plus à jour possible. Cette interface vous permet de définir la période appropriée pour que ClamAV fasse cette mise à jour automatiquement. Vous pouvez également faire une mise à jour manuelle pour vous assurer que tout va bien. 241 | UPDATE_PAGE_DESCRIPTION_MANUAL=Si vous ne possédez pas de connexion permanente ou bien pour forcer une mise à jour. 242 | UPDATE_REPORT=Rapport de mise à jour: 243 | UPDATE_TITLE_AUTO=Mise à jour automatique 244 | UPDATE_TITLE_MANUAL=Mise à jour manuelle 245 | UPLOAD=Envoyer 246 | USE=Utiliser 247 | USE_PROXY_SETTINGS=Les paramètres de proxy suivants seront passés à freshclam: 248 | VDB_SEARCH_DESCRIPTION=Vous pouvez afficher l'intégralité de la base de virus ClamAV, ou bien rechercher un virus particulier ou encore tous les virus dont le nom contient la chaîne saisie. 249 | VDB_SEARCH_UPDATE_DB=Mettre à jour la base 250 | VDB_SEARCH_VIRUSES_COUNT=Il y a actuellement %u virus dans la base ClamAV 251 | VIEW=Visualiser 252 | VIEWLOG=Log 253 | VIRUS=Virus 254 | VIRUSES_SEARCH=Recherche de virus 255 | WARNING=Attention 256 | WEDNESDAY=Mercredi 257 | WITH_SMTP=Serveur SMTP (serveur[:port]) 258 | WRITE_DELETE=Modifier/Supprimer 259 | -------------------------------------------------------------------------------- /lib/ClamavConstants.pm: -------------------------------------------------------------------------------- 1 | package ClamavConstants; 2 | 3 | require Exporter; 4 | our @ISA = qw(Exporter); 5 | 6 | our @EXPORT = qw( 7 | 8 | ER_DAEMON_NOEXIST 9 | ER_DAEMON_CRONEXIST 10 | ER_CRON_DAEMONEXIST 11 | ER_MANUAL_CRONEXIST 12 | ER_MANUAL_DAEMONEXIST 13 | ER_CRON_PACKAGE 14 | 15 | KO 16 | OK 17 | 18 | NET_PING_OK 19 | 20 | ); 21 | 22 | use constant { 23 | 24 | # Cron/daemon errors for clamav refresh method 25 | ER_DAEMON_NOEXIST => 2, 26 | ER_DAEMON_CRONEXIST => 3, 27 | ER_CRON_DAEMONEXIST => 4, 28 | ER_MANUAL_CRONEXIST => 5, 29 | ER_MANUAL_DAEMONEXIST => 6, 30 | ER_CRON_PACKAGE => 7, 31 | 32 | KO => 0, 33 | OK => 1, 34 | 35 | NET_PING_KO => 8 36 | 37 | }; 38 | 39 | 1; 40 | -------------------------------------------------------------------------------- /logs_main.cgi: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | # Copyright (C) 2003-2019 4 | # Emmanuel Saracco 5 | # 6 | # GNU GENERAL PUBLIC LICENSE 7 | 8 | require './clamav-lib.pl'; 9 | &clamav_check_acl ('logs_viewer_view'); 10 | &ReadParse (); 11 | 12 | my ($_success, $_error) = ('', ''); 13 | 14 | &clamav_header ($text{'LINK_LOGS'}); 15 | 16 | print qq(
); 17 | 18 | print qq(

$text{'LOGS_PAGE_DESCRIPTION'}

); 19 | 20 | print qq($text{'DISPLAY'} ); 21 | print qq(); 30 | 31 | print qq( $text{'LINES_OF'} ); 32 | 33 | @logs = &clamav_get_logfiles (); 34 | print qq(); 44 | print qq(

); 45 | print qq(

); 46 | 47 | print qq(
); 48 | 49 | print qq(

); 50 | 51 | &clamav_print_log ($in{'logfile'}, $in{'lines'}); 52 | 53 | &clamav_footer ('', $text{'RETURN_INDEX_MODULE'}, $_success, $_error); 54 | -------------------------------------------------------------------------------- /module.info: -------------------------------------------------------------------------------- 1 | name=clamav 2 | version=0.23.1 3 | category=system 4 | desc=ClamAV Antivirus 5 | desc_fr=Antivirus ClamAV 6 | -------------------------------------------------------------------------------- /quarantine_main.cgi: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | # Copyright (C) 2003-2019 4 | # Emmanuel Saracco 5 | # 6 | # GNU GENERAL PUBLIC LICENSE 7 | 8 | use lib './lib'; 9 | use ClamavConstants; 10 | 11 | require './clamav-lib.pl'; 12 | &clamav_check_acl ('quarantine_view'); 13 | &ReadParse (); 14 | 15 | my ($_success, $_error, $_info) = ('', '', ''); 16 | my $cp = $in{'cp'}; 17 | my $maxdays = $in{'maxdays'}; 18 | my $search_type = $in{'search_type'}; 19 | my $old_search_type = $in{'old_search_type'}; 20 | my $search_type_virus = ($search_type eq 'virus' || !$search_type); 21 | my $search_type_spam = ($search_type eq 'spam'); 22 | my %quarantine_infos = (); 23 | my $default_tab = $in{'tab'}||'cleaning'; 24 | 25 | $cp = 0 if ($old_search_type ne ''); 26 | 27 | if (defined($in{'resend'})) 28 | { 29 | my $args = &clamav_join_from_url ('quarantine_file'); 30 | if ($args) 31 | { 32 | &redirect ( 33 | "/$module_name/quarantine_resend.cgi?tab=$default_tab". 34 | '¬aspam=1'. 35 | '&deleteafter=1'. 36 | '&newto=1'. 37 | "&$args"); 38 | } 39 | 40 | delete $in{'resend'}; 41 | } 42 | elsif (defined($in{'export'})) 43 | { 44 | &clamav_download ( 45 | "$config{'clamav_working_path'}/.clamav/$remote_user/quarantine-export.csv"); 46 | } 47 | 48 | &clamav_header ($text{'LINK_QUANRANTINE_PAGE'}); 49 | 50 | &clamav_quarantine_main_check_config (); 51 | 52 | print qq( 53 |

54 | 55 | 56 | ); 57 | 58 | if (defined($in{'next'})) 59 | { 60 | if ($in{'nopurge'} eq 'on') 61 | { 62 | $maxdays = ''; 63 | &clamav_delete_cron ('purge'); 64 | $_success = $text{'MSG_SUCCESS_QUARANTINE_CRON_UPDATE'}; 65 | } 66 | else 67 | { 68 | if ($maxdays and $maxdays !~ /^[0-9]+$/) 69 | { 70 | $maxdays = 0; 71 | 72 | $_error = $text{'MSG_ERROR_QUARANTINE_UPDATE_MAXDAYS'}; 73 | } 74 | else 75 | { 76 | my $hour = $in{'hour'}; 77 | 78 | $hour = "*/$hour" if (defined($in{'every_hours'}) && $hour); 79 | &clamav_set_cron_purge ($hour, $in{'day'}, $maxdays); 80 | $_success = $text{'MSG_SUCCESS_QUARANTINE_CRON_UPDATE'}; 81 | } 82 | } 83 | } 84 | elsif (defined($in{'resend'})) 85 | { 86 | $_success = $text{'MSG_SUCCESS_STATUS_RESEND'}; 87 | } 88 | elsif (defined($in{'delete'})) 89 | { 90 | my $ok = 1; 91 | 92 | while (my ($k, $v) = each (%in)) 93 | { 94 | next if ($k !~ /quarantine_file/); 95 | $ok = &clamav_remove_email ($v); 96 | } 97 | 98 | if ($ok) 99 | { 100 | $_success = $text{'MSG_SUCCESS_STATUS_REMOVE'}; 101 | } 102 | else 103 | { 104 | $_error = $text{'MSG_ERROR_STATUS_REMOVE'}; 105 | } 106 | } 107 | elsif (defined($in{'delete_all'})) 108 | { 109 | $res = &clamav_purge_quarantine (); 110 | if ($res != OK) 111 | { 112 | $_error = sprintf (qq( 113 | $text{'MSG_ERROR_STATUS_PURGE_ALL'} 114 |

115 |

116 | Message: %s 117 |
118 | ), 119 | $clamav_error); 120 | } 121 | else 122 | { 123 | $_success = $text{'MSG_SUCCESS_STATUS_PURGE_ALL'}; 124 | } 125 | } 126 | 127 | if (!$in || (!$in{'next'} && !$in{'search'})) 128 | { 129 | %quarantine_infos = &clamav_get_quarantine_infos (); 130 | 131 | if ($quarantine_infos{'empty'}) 132 | { 133 | $_info = $text{'MSG_QUARANTINE_IS_EMPTY'}; 134 | } 135 | elsif (defined($in{'refresh'})) 136 | { 137 | $_success = $text{'QUARANTINE_STATS_REFRESHED'}; 138 | } 139 | } 140 | else 141 | { 142 | foreach my $item (qw(directory size graph_name empty 143 | virus spam badh banned)) 144 | { 145 | $quarantine_infos{$item} = $in{$item}; 146 | } 147 | } 148 | 149 | while (my ($k, $v) = each (%quarantine_infos)) 150 | { 151 | print qq(); 152 | } 153 | 154 | print qq(
); 155 | print qq(); 156 | 157 | # Quarantine evolution graph (amavisd-new, mailscanner and qmailscanner only) 158 | if (&clamav_is_amavisd_new () || 159 | &clamav_is_qmailscanner () || 160 | &clamav_is_mailscanner ()) 161 | { 162 | print qq(

); 163 | if ($quarantine_infos{'graph_name'} && 164 | -f "tmp/$quarantine_infos{'graph_name'}") 165 | { 166 | print qq($text{'QUARANTINE_SHOWHIDE_GRAPH'}); 167 | } 168 | print qq(

); 169 | } 170 | print qq(

); 171 | 172 | # Global quarantine data 173 | print qq(

); 174 | my $qtype = (-f $quarantine_infos{"directory"}) ? 175 | $text{'QUARANTINE_FILE'} : $text{'QUARANTINE_DIRECTORY'}; 176 | printf qq( 177 | 178 | 179 | 180 | ), $quarantine_infos{'directory'}, $quarantine_infos{'size'}, $quarantine_infos{'virus'}; 181 | if ( 182 | &clamav_is_amavisd_new () || 183 | &clamav_is_mailscanner () || 184 | &clamav_is_qmailscanner ()) 185 | { 186 | printf qq(), 187 | $quarantine_infos{'spam'}; 188 | } 189 | if (&clamav_is_amavisd_new ()) 190 | { 191 | printf qq(), 192 | $quarantine_infos{'badh'}; 193 | printf qq(), 194 | $quarantine_infos{'banned'}; 195 | } 196 | print qq(
$qtype:%s
$text{'QUARANTINE_SIZE'}:%s
$text{'QUARANTINE_VIRUSES'}:%s
$text{'QUARANTINE_SPAMS'}:%s
$text{'QUARANTINE_BADHEADERS'}:%s
$text{'QUARANTINE_BANNED'}:%s
); 197 | 198 | print qq(

$text{'QUARANTINE_PAGE_DESCRIPTION'}

); 199 | 200 | # Tabs management 201 | my @tabs = (['cleaning', $text{'CLEANING'}]); 202 | if (!$quarantine_infos{'empty'}) 203 | { 204 | push @tabs, (['search', $text{'RESEARCH'}]); 205 | } 206 | else 207 | { 208 | $default_tab = 'cleaning'; 209 | } 210 | print ui_tabs_start(\@tabs, 'quarantine', $default_tab); 211 | print ui_tabs_start_tab('quarantine', 'cleaning'); 212 | &_cleaning (); 213 | print ui_tabs_end_tab('quarantine', 'cleaning'); 214 | 215 | if (!$quarantine_infos{'empty'}) 216 | { 217 | print ui_tabs_start_tab('quarantine', 'search'); 218 | &_search (); 219 | print ui_tabs_end_tab('quarantine', 'search'); 220 | } 221 | print ui_tabs_end(); 222 | 223 | # Tab 1 "Cleaning" 224 | sub _cleaning () 225 | { 226 | print qq(

$text{'QUARANTINE_CLEANING'}

); 227 | 228 | if (&clamav_get_acl ('quarantine_delete') == 1 && !$quarantine_infos{'empty'}) 229 | { 230 | print qq(

); 231 | } 232 | 233 | print qq(

$text{'QUARANTINE_CRON_DESCRIPTION'}

); 234 | 235 | @cron_line = &clamav_get_cron_settings ('purge'); 236 | $checked = (@cron_line) ? '' : ' checked="checked"'; 237 | 238 | print &clamav_cron_settings_table($cron_line[1]||0, $cron_line[4]||7, $checked); 239 | $maxdays = $cron_line[8] if ($maxdays eq '' && $cron_line[8]); 240 | 241 | # maxdays 242 | printf (qq(

), ($checked)?' class="disabled"':''); 243 | print qq($text{'DELETE_MAX_DAYS'} $text{'DAYS'}); 244 | print qq(

); 245 | 246 | # npurge 247 | print qq(

); 248 | print qq(); 249 | print qq( ); 250 | print qq(

); 251 | 252 | print qq(

); 253 | if (&clamav_get_acl ('quarantine_delete') == 1) 254 | { 255 | print qq(

); 256 | } 257 | 258 | } 259 | 260 | # Tab 2 "Search" 261 | sub _search () 262 | { 263 | if (!$quarantine_infos{'empty'}) 264 | { 265 | print qq(

$text{'QUARANTINE_RESEARCH'}

); 266 | 267 | if (defined $in{'resended'}) 268 | { 269 | if (defined ($in{'errstr'}) && $in{'errstr'} ne '') 270 | { 271 | $_error = 272 | $text{'MSG_ERROR_STATUS_RESEND'}. 273 | ' [file: '.$in{'errfile'}.', message: '.$in{'errfile'}.']'; 274 | } 275 | else 276 | { 277 | $_success = $text{'MSG_SUCCESS_STATUS_RESEND'}; 278 | } 279 | } 280 | elsif (defined $in{'removed'}) 281 | { 282 | $_success = $text{'MSG_SUCCESS_STATUS_REMOVE'}; 283 | } 284 | 285 | print qq(

$text{'QUARANTINE_RESEARCH_DESCRIPTION'}

); 286 | 287 | print qq(); 288 | print qq(); 289 | if ( 290 | &clamav_is_amavisd_new () || 291 | &clamav_is_mailscanner () || 292 | &clamav_is_qmailscanner ()) 293 | { 294 | print qq(); 298 | } 299 | else 300 | { 301 | print qq(); 302 | } 303 | if (!( 304 | &clamav_is_milter () || 305 | &clamav_is_mailscanner () || 306 | &clamav_is_qmailscanner ())) 307 | { 308 | printf (qq( 309 | 310 | 311 | 312 | 313 | ), 314 | &clamav_html_encode ($in{'virus_name'}) 315 | ); 316 | } 317 | else 318 | { 319 | print qq(); 320 | } 321 | 322 | printf (qq( 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 342 | 343 |
Filtres
$text{'TYPE'}: ); 295 | print &clamav_display_combo_quarantine_items_types ( 296 | $search_type, \%quarantine_infos); 297 | print qq(
$text{'VIRUS'}:
$text{'SENDER'}:
$text{'RECIPIENT'}:
$text{'PERIOD'}: 334 | ), 335 | &clamav_html_encode($in{'mail_from'}), 336 | &clamav_html_encode($in{'mail_to'}) 337 | ); 338 | &clamav_get_period_chooser ($in{'day1'}, $in{'month1'}, $in{'year1'}, 339 | $in{'day2'}, $in{'month2'}, $in{'year2'}); 340 | print qq( 341 |
344 |

345 | ); 346 | 347 | # if form submit, do the quarantine search 348 | if (defined($in{'search'})) 349 | { 350 | if ($quarantine_infos{'empty'}) 351 | { 352 | $_info = $text{'MSG_QUARANTINE_IS_EMPTY'}; 353 | } 354 | else 355 | { 356 | # if clamav-milter is installed 357 | if (&clamav_is_milter ()) 358 | { 359 | $page_count = &clamav_print_quarantine_table_milter ( 360 | $search_type, 361 | $cp, 362 | $in{'virus_name'}, 363 | $in{'mail_from'}, $in{'mail_to'}, 364 | $in{'day1'}, $in{'month1'}, $in{'year1'}, 365 | $in{'day2'}, $in{'month2'}, $in{'year2'}); 366 | } 367 | # if mailscanner is installed 368 | elsif (&clamav_is_mailscanner ()) 369 | { 370 | $page_count = &clamav_print_quarantine_table_mailscanner ( 371 | $search_type, 372 | $cp, 373 | $in{'virus_name'}, 374 | $in{'mail_from'}, $in{'mail_to'}, 375 | $in{'day1'}, $in{'month1'}, $in{'year1'}, 376 | $in{'day2'}, $in{'month2'}, $in{'year2'}); 377 | } 378 | # if amavis-ng is installed 379 | elsif (&clamav_is_amavis_ng ()) 380 | { 381 | $page_count = &clamav_print_quarantine_table_amavis_ng ( 382 | $search_type, 383 | $cp, 384 | $in{'virus_name'}, 385 | $in{'mail_from'}, $in{'mail_to'}, 386 | $in{'day1'}, $in{'month1'}, $in{'year1'}, 387 | $in{'day2'}, $in{'month2'}, $in{'year2'}); 388 | } 389 | # if amavisd-new is installed 390 | elsif (&clamav_is_amavisd_new ()) 391 | { 392 | $page_count = &clamav_print_quarantine_table_amavisd_new ( 393 | $search_type, 394 | $cp, 395 | $in{'virus_name'}, 396 | $in{'mail_from'}, $in{'mail_to'}, 397 | $in{'day1'}, $in{'month1'}, $in{'year1'}, 398 | $in{'day2'}, $in{'month2'}, $in{'year2'}); 399 | } 400 | # if qmailscanner is installed 401 | elsif (&clamav_is_qmailscanner ()) 402 | { 403 | $page_count = &clamav_print_quarantine_table_qmailscanner ( 404 | $search_type, 405 | $cp, 406 | $in{'virus_name'}, 407 | $in{'mail_from'}, $in{'mail_to'}, 408 | $in{'day1'}, $in{'month1'}, $in{'year1'}, 409 | $in{'day2'}, $in{'month2'}, $in{'year2'}); 410 | } 411 | 412 | if (!$page_count) 413 | { 414 | $_info = $text{'NO_RESULT_QUARANTINE'}; 415 | } 416 | else 417 | { 418 | &clamav_display_page_panel ($cp, $page_count, %quarantine_infos); 419 | } 420 | } 421 | } 422 | } 423 | 424 | } 425 | 426 | print qq(

); 427 | 428 | &clamav_footer ('', $text{'RETURN_INDEX_MODULE'}, $_success, $_error, $_info); 429 | -------------------------------------------------------------------------------- /quarantine_resend.cgi: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | # Copyright (C) 2003-2019 4 | # Emmanuel Saracco 5 | # 6 | # GNU GENERAL PUBLIC LICENSE 7 | 8 | use lib './lib'; 9 | use ClamavConstants; 10 | 11 | require './clamav-lib.pl'; 12 | &clamav_check_acl ('quarantine_view'); 13 | &clamav_check_acl ('quarantine_resend'); 14 | &ReadParse (); 15 | 16 | my ($_success, $_error) = ('', ''); 17 | my $smtp = (defined ($in{"smtp"}) && $in{"smtp"} ne '') ? $in{"smtp"} : ''; 18 | my $from = (defined ($in{"from"}) && $in{"from"} ne '') ? $in{"from"} : ''; 19 | my $to = (defined ($in{"to"}) && $in{"to"} ne '') ? $in{"to"} : ''; 20 | my $deleteafter = (defined ($in{"deleteafter"})) ? $in{"deleteafter"} : ''; 21 | my $notaspam = (defined ($in{"notaspam"})) ? $in{"notaspam"} : ''; 22 | my $default_tab = $in{'tab'}; 23 | 24 | if (!defined($in{'next'}) || ($smtp ne '' && !&smtphost_is_alive ($smtp))) 25 | { 26 | &clamav_header ($text{'QUARANTINE_RESEND_PAGE_TITLE'}); 27 | 28 | &clamav_quarantine_resend_check_config (); 29 | 30 | if ($smtp ne '' && !&smtphost_is_alive ($smtp)) 31 | { 32 | $_error = sprintf (qq($text{'MSG_ERROR_SMTP_PING'}), $smtp); 33 | } 34 | 35 | if ($in{"newto"}) 36 | { 37 | print qq(

$text{'QUARANTINE_RESEND_NEWTO_PAGE_DESCRIPTION'}

); 38 | 39 | print qq(

); 40 | print qq(); 41 | print qq(); 42 | printf qq(), 43 | ($in{'emails'}) ? &html_escape ($in{'emails'}) : 44 | &clamav_join_from_url ("quarantine_file", 0); 45 | 46 | print qq(); 47 | print qq(); 48 | print qq(); 49 | printf qq(\n), 50 | &html_escape ($from); 51 | print qq(); 52 | print qq(); 53 | print qq(); 54 | printf qq(\n), 55 | &html_escape ($to); 56 | print qq(); 57 | print qq(); 58 | print qq(); 59 | printf qq(\n), 60 | &html_escape ($smtp); 61 | print qq(); 62 | print qq(
$text{"FROM"}:
$text{"TO"}:
$text{"WITH_SMTP"}:
); 63 | 64 | # If spamassassin learning tool exists 65 | if (&has_command ('sa-learn')) 66 | { 67 | printf (qq(

), ($notaspam) ? ' checked' : ''); 68 | } 69 | 70 | printf (qq(

), ($deleteafter) ? ' checked' : ''); 71 | 72 | print qq(

); 73 | 74 | print qq(
); 75 | } 76 | 77 | &clamav_footer ("quarantine_main.cgi?tab=$default_tab", 78 | $text{'RETURN_QUARANTINE_LIST'}, $_success, $_error); 79 | } 80 | else 81 | { 82 | foreach my $email (split (/&/, $in{'emails'})) 83 | { 84 | $email =~ s/^.*=//; 85 | 86 | # Learn as no spam 87 | if ($notaspam) 88 | { 89 | &clamav_learn_notaspam ($email); 90 | } 91 | 92 | $res = &clamav_resend_email ($email, $smtp, $from, $to); 93 | 94 | if ($res == NET_PING_KO) 95 | { 96 | &redirect ("quarantine_main.cgi?resended=1&tab=$default_tab". 97 | '&errstr='.&urlize(sprintf ($text{'MSG_ERROR_SMTP_PING'}, $smtp)). 98 | '&errfile='.&urlize($email)); 99 | } 100 | # A error occured 101 | elsif ($res != OK) 102 | { 103 | &redirect ("quarantine_main.cgi?resended=1&tab=$default_tab". 104 | '&errstr='.&urlize($clamav_error). 105 | '&errfile='.&urlize($email)); 106 | } 107 | # If all was ok 108 | elsif ($res == OK) 109 | { 110 | # Remove E-Mails files 111 | if ($deleteafter) 112 | { 113 | $res = &clamav_remove_email ($email); 114 | } 115 | } 116 | } 117 | 118 | &redirect ("quarantine_main.cgi?resended=1&tab=$default_tab"); 119 | } 120 | -------------------------------------------------------------------------------- /quarantine_viewlog.cgi: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | # Copyright (C) 2003-2019 4 | # Emmanuel Saracco 5 | # 6 | # GNU GENERAL PUBLIC LICENSE 7 | 8 | require './clamav-lib.pl'; 9 | &clamav_check_acl ('quarantine_view'); 10 | &ReadParse (); 11 | 12 | &clamav_header ($text{'QUARANTINE_VIEWLOG_PAGE_TITLE'}); 13 | 14 | print qq(

$text{'QUARANTINE_VIEWLOG_PAGE_DESCRIPTION'}

); 15 | 16 | &clamav_quarantine_print_log ($in{'base'}); 17 | 18 | print qq(
); 19 | &footer("quarantine_main.cgi", $text{'RETURN_QUARANTINE_LIST'}); 20 | -------------------------------------------------------------------------------- /quarantine_viewmail.cgi: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | # Copyright (C) 2003-2019 4 | # Emmanuel Saracco 5 | # 6 | # GNU GENERAL PUBLIC LICENSE 7 | 8 | require './clamav-lib.pl'; 9 | &clamav_check_acl ('quarantine_view'); 10 | &ReadParse (); 11 | 12 | &clamav_header ($text{'QUARANTINE_VIEWMAIL_PAGE_TITLE'}); 13 | 14 | print qq(

$text{'QUARANTINE_VIEWMAIL_PAGE_DESCRIPTION'}

); 15 | 16 | &clamav_print_email_infos ($in{'base'}); 17 | 18 | &clamav_print_email ($in{'base'}); 19 | 20 | &clamav_footer ('quarantine_main.cgi', $text{'RETURN_QUARANTINE_LIST'}); 21 | -------------------------------------------------------------------------------- /remote_control_main.cgi: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | # Copyright (C) 2003-2019 4 | # Emmanuel Saracco 5 | # 6 | # GNU GENERAL PUBLIC LICENSE 7 | 8 | require './clamav-lib.pl'; 9 | &clamav_check_acl ('clamav_remote_control'); 10 | &ReadParse (); 11 | 12 | my ($_success, $_error) = ('', ''); 13 | my $next = defined($in{'next'}); 14 | my $scandir = ($next && $in{'what'} ne ''); 15 | my $host = $in{'host'}; 16 | my $port = $in{'port'}; 17 | my $action = $in{'action'}; 18 | my $arg = $in{'arg'} ? $in{'arg'} : ''; 19 | 20 | &clamav_header ($text{'LINK_REMOTE_CONTROL'}); 21 | 22 | if (!$arg && &clamav_remote_actions_take_arg ($action)) 23 | { 24 | $_error = $text{'MSG_ERROR_TAKE_ARG'}; 25 | } 26 | elsif ($arg && !&clamav_remote_actions_take_arg ($action)) 27 | { 28 | $_error = $text{'MSG_ERROR_TAKE_NO_ARG'}; 29 | } 30 | 31 | print qq(

$text{'REMOTE_CONTROL_DESCRIPTION'}

); 32 | 33 | $next = undef if ($_error ne ''); 34 | 35 | print qq(
); 36 | 37 | &clamav_display_remote_actions ($host, $port, $action, $arg); 38 | 39 | print qq(

); 40 | 41 | if ($next) 42 | { 43 | my $msg = &clamav_send_remote_action ($host, $port, $action, $arg); 44 | 45 | if (!defined ($msg)) 46 | { 47 | $_error = $text{'MSG_ERROR_NO_CONNECTION'}; 48 | } 49 | elsif ($msg eq '') 50 | { 51 | $_error = $text{'MSG_ERROR_NO_ANSWER'}; 52 | } 53 | else 54 | { 55 | $msg =~ s/\n/
/g; 56 | print qq(

$text{'DAEMON_ANSWER'}:

); 57 | print qq(
$msg
); 58 | } 59 | } 60 | 61 | print qq(
); 62 | 63 | &clamav_footer ('', $text{'RETURN_INDEX_MODULE'}, $_success, $_error); 64 | -------------------------------------------------------------------------------- /scandir_main.cgi: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | # Copyright (C) 2003-2019 4 | # Emmanuel Saracco 5 | # 6 | # GNU GENERAL PUBLIC LICENSE 7 | 8 | require './clamav-lib.pl'; 9 | &clamav_check_acl ('directories_check_view'); 10 | &ReadParse (); 11 | 12 | my ($_success, $_error, $_info) = ('', '', ''); 13 | my $scandir = (defined($in{'next'}) && $in{'what'} ne ''); 14 | 15 | # delete files if requested 16 | if (defined($in{'delete'}) && 17 | &clamav_get_acl ('directories_check_delete') == 1) 18 | { 19 | while (my ($k, $v) = each (%in)) 20 | { 21 | if ($k =~ /infected_file/ && 22 | $v =~ /virus|spam|badh|banned/ && &is_secure ($v)) 23 | { 24 | unlink ($v); 25 | } 26 | } 27 | 28 | $_success = $text{'FILES_DELETED'}; 29 | } 30 | 31 | &clamav_header ($text{'LINK_SCANDIR'}); 32 | 33 | print qq(
); 34 | 35 | print qq(

$text{'SCANDIR_DESCRIPTION'}

); 36 | 37 | if (defined($in{'next'}) && (! -d $in{'what'} || !&is_secure ($in{'what'}))) 38 | { 39 | $_error = $text{'MSG_CLAMSCAN_BAD_SCAN_DIR'}; 40 | $scandir = 0; 41 | } 42 | 43 | if (defined($in{'next'}) && $in{'move'} eq 'on' && 44 | (! -d $in{'move_path'} || !&is_secure ($in{'move_path'}))) 45 | { 46 | $_error = $text{'MSG_CLAMSCAN_BAD_MOVE_DIR'}; 47 | $scandir = 0; 48 | } 49 | 50 | printf qq(), &html_escape ($in{'what'}); 51 | print &file_chooser_button('what', 1, 0); 52 | 53 | if (&clamav_has_clamscan !~ /clamdscan/) 54 | { 55 | $checked = ($in{'recursive'} eq 'on') ? ' checked="checked"' : ''; 56 | print qq(

); 57 | print qq(

); 58 | } 59 | else 60 | { 61 | print qq(); 62 | } 63 | 64 | $checked = ($in{'infected'} eq 'on') ? ' checked="checked"' : ''; 65 | print qq(

); 66 | print qq(

); 67 | 68 | $checked = ($in{'move'} eq 'on') ? ' checked="checked"' : ''; 69 | print qq(

); 70 | printf qq( ), &html_escape ($in{'move_path'}); 71 | print &file_chooser_button('move_path', 1, 0); 72 | print qq(

); 73 | 74 | print qq(

); 75 | 76 | if ($scandir == 1) 77 | { 78 | print qq(
); 79 | 80 | ($_info, $_error) = &clamav_scandir ($in{'what'}, 81 | ($in{'recursive'} eq 'on'), 82 | ($in{'infected'} eq 'on'), 83 | (($in{'move'} eq 'on')) ? $in{'move_path'} : '' 84 | ); 85 | } 86 | 87 | print qq(
); 88 | 89 | &clamav_footer ('', $text{'RETURN_INDEX_MODULE'}, $_success, $_error, $_info); 90 | -------------------------------------------------------------------------------- /settings_main.cgi: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | # Copyright (C) 2003-2019 4 | # Emmanuel Saracco 5 | # 6 | # GNU GENERAL PUBLIC LICENSE 7 | 8 | require './clamav-lib.pl'; 9 | &clamav_check_acl ('global_settings_view'); 10 | &ReadParse (); 11 | 12 | my ($_success, $_error) = ('', ''); 13 | my $default_tab = $in{'tab'}||'clamav'; 14 | 15 | &clamav_header ($text{'LINK_SETTINGS'}); 16 | 17 | print qq(

$text{'SETTINGS_DESCRIPTION'}

); 18 | print qq(

$text{'SETTINGS_MULTIVALUED'}

); 19 | 20 | if (defined($in{'next'})) 21 | { 22 | &clamav_check_acl ('global_settings_write'); 23 | 24 | # Keep clamd status before update 25 | my $old_alive = &clamav_is_clamd_alive (); 26 | 27 | $error = &clamav_save_global_settings (1); 28 | if ($error) 29 | { 30 | $_error = "$error

$text{'MSG_CONFIGS_RESTORED'}"; 31 | } 32 | else 33 | { 34 | if (&clamav_is_clamd_alive () eq $old_alive) 35 | { 36 | $_success = $text{'MSG_SUCCES_APPLY_GLOBAL_SETTINGS'}; 37 | } 38 | else 39 | { 40 | $_error = sprintf ($text{'MSG_ERROR_APPLY_GLOBAL_SETTINGS'}, 41 | $config{'clamav_clamav_log'}); 42 | } 43 | } 44 | } 45 | # If there is a item to add 46 | elsif (defined($in{'nsclamav_add'}) || defined($in{'nsfreshclam_add'})) 47 | { 48 | &clamav_check_acl ('global_settings_write'); 49 | 50 | $add_item_c = $in{'nsclamav_add_key'} if (defined($in{'nsclamav_add'})); 51 | $add_item_f = $in{'nsfreshclam_add_key'} if (defined($in{'nsfreshclam_add'})); 52 | } 53 | # If there is a item to delete 54 | elsif (($delete_item_c = &clamav_global_settings_get_delete_item ('clamav')) || 55 | ($delete_item_f = &clamav_global_settings_get_delete_item ('freshclam'))) 56 | { 57 | &clamav_check_acl ('global_settings_write'); 58 | } 59 | # Clean temp if first access 60 | else 61 | { 62 | &clamav_clean_global_settings_tempfiles (); 63 | } 64 | 65 | my $btn_class = ($add_item_c || $add_item_f || 66 | $delete_item_c || $delete_item_f) ? 'warning' : 'success'; 67 | 68 | print qq(

); 69 | print qq(); 70 | 71 | # Tabs management 72 | my @tabs = (['clamav', 'ClamAV'], 73 | ['freshclam', 'Freshclam']); 74 | print ui_tabs_start(\@tabs, 'settings', $default_tab); 75 | print ui_tabs_start_tab('settings', 'clamav'); 76 | &_clamav (); 77 | print ui_tabs_end_tab('settings', 'clamav'); 78 | print ui_tabs_start_tab('settings', 'freshclam'); 79 | &_freshclam (); 80 | print ui_tabs_end_tab('settings', 'freshclam'); 81 | 82 | # Tab 1 "ClamAV" 83 | sub _clamav () 84 | { 85 | print qq(

$text{'SETTINGS_CLAMAV_TITLE'}

); 86 | 87 | &clamav_display_settings ('clamav', $add_item_c, $delete_item_c); 88 | 89 | if (&clamav_get_acl ('global_settings_write') == 1) 90 | { 91 | print qq(

); 92 | } 93 | } 94 | 95 | # Tab 2 "Freshclam" 96 | sub _freshclam () 97 | { 98 | print qq(

$text{'SETTINGS_FRESHCLAM_TITLE'}

); 99 | 100 | &clamav_display_settings ('freshclam', $add_item_f, $delete_item_f); 101 | 102 | if (&clamav_get_acl ('global_settings_write') == 1) 103 | { 104 | print qq(

); 105 | } 106 | } 107 | 108 | print qq(

); 109 | 110 | &clamav_footer ('', $text{'RETURN_INDEX_MODULE'}, $_success, $_error); 111 | -------------------------------------------------------------------------------- /signatures_1step.cgi: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | # Copyright (C) 2003-2019 4 | # Emmanuel Saracco 5 | # 6 | # GNU GENERAL PUBLIC LICENSE 7 | 8 | require '../webmin/webmin-lib.pl'; 9 | require './clamav-lib.pl'; 10 | &clamav_check_acl ('signature_use'); 11 | 12 | ($ENV{REQUEST_METHOD} eq 'POST') ? &ReadParseMime() : &ReadParse(); 13 | 14 | my ($_success, $_error) = ('', ''); 15 | my $sha1 = $in{'sha1'}||''; 16 | my $size = $in{'size'}||0; 17 | my $virus_name = $in{'virus_name'}||''; 18 | my $upload = ($in{'upload'}) ? 1 : 0; 19 | 20 | $_error = $in{'error'} if ($in{'error'}); 21 | 22 | # if there is no file to upload, error 23 | if ($in{'main'} && !$upload) 24 | { 25 | &redirect ("/$module_name/signatures_main.cgi?error=1"); 26 | } 27 | 28 | &clamav_header ($text{'LINK_SIGNATURES'}, 'signatures_main'); 29 | 30 | if ($upload) 31 | { 32 | ($sha1, $size, $virus_name) = &clamav_build_signature (\%in); 33 | } 34 | 35 | print qq(
); 36 | 37 | printf qq(), &html_escape($sha1); 38 | printf qq(), &html_escape($size); 39 | 40 | print qq(

$text{'SIGNATURES_DESCRIPTION'}

); 41 | 42 | print qq(

$text{'SIGNATURES_THIRD_STEP'}

); 43 | 44 | print qq(

$text{'SIGNATURES_THIRD_STEP_DESCRIPTION'}

); 45 | 46 | print qq(); 47 | print qq(), &html_escape($virus_name); 50 | printf qq(), &html_escape($sha1); 51 | printf qq(), &html_escape($size); 52 | print qq(
$text{'NAME'}: ); 48 | print &clamav_display_combos_viruses_prefixes ($in{'prefix0'}, $in{'prefix1'}); 49 | printf qq(
$text{'SIGNATURE'}: %s
$text{'FILE_SIZE'}: %s
); 53 | 54 | print qq(

); 55 | 56 | print qq(
); 57 | 58 | &clamav_footer ('signatures_main.cgi', $text{'RETURN_SIGNATURES_MAIN'}, $_success, $_error); 59 | -------------------------------------------------------------------------------- /signatures_2step.cgi: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | # Copyright (C) 2003-2019 4 | # Emmanuel Saracco 5 | # 6 | # GNU GENERAL PUBLIC LICENSE 7 | 8 | require './clamav-lib.pl'; 9 | &clamav_check_acl ('signature_use'); 10 | &ReadParse(); 11 | 12 | my ($_success, $_error) = ('', ''); 13 | my $p1 = $in{'prefix0'}||''; 14 | my $p2 = $in{'prefix1'}||''; 15 | my $virus_name = ''; 16 | my $updated = 0; 17 | 18 | $updated = 1 if ($in{'virus_name'} =~ s/\s//g); 19 | $updated = 1 if ($in{'sha1'} =~ s/\s//g); 20 | 21 | $virus_name .= "$p1." if ($p1); 22 | $virus_name .= "$p2." if ($p2); 23 | $virus_name .= $in{'virus_name'} if ($in{'virus_name'}); 24 | 25 | # check the validity of the given signature 26 | if ($_error = &clamav_check_signature ( 27 | $in{'sha1'}.':'.$in{'size'}.':'.$virus_name)) 28 | { 29 | &redirect (sprintf (qq(/$module_name/signatures_1step.cgi?error=%s&sha1=%s&size=%s&virus_name=%s&prefix0=%s&prefix1=%s), &urlize($_error), &urlize($in{'sha1'}), &urlize($in{'size'}), &urlize($in{'virus_name'}), &urlize($p1), &urlize($p2))); 30 | } 31 | 32 | &clamav_header ($text{'LINK_SIGNATURES'}, 'signatures_main'); 33 | 34 | print qq(

$text{'MSG_WHITE_CHARS_REMOVED'}

) if ($updated); 35 | 36 | printf qq(
%s:%s:%s
), &html_escape($in{'sha1'}), &html_escape($in{'size'}), &html_escape($virus_name); 37 | 38 | print qq(

$text{'SIGNATURES_BUILD_END_STEP_DESCRIPTION'}); 39 | 40 | &clamav_footer ('signatures_main.cgi', $text{'RETURN_SIGNATURES_MAIN'}, $_success, $_error, $text{'SIGNATURES_BUILD_END_STEP'}); 41 | -------------------------------------------------------------------------------- /signatures_main.cgi: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | # Copyright (C) 2003-2019 4 | # Emmanuel Saracco 5 | # 6 | # GNU GENERAL PUBLIC LICENSE 7 | 8 | require './clamav-lib.pl'; 9 | &clamav_check_acl ('signature_use'); 10 | &ReadParse (); 11 | 12 | my ($_success, $_error) = ('', ''); 13 | 14 | &clamav_header ($text{'LINK_SIGNATURES'}); 15 | 16 | &clamav_signatures_check_config (); 17 | 18 | print qq(

); 19 | print qq(); 20 | 21 | print qq(

$text{'SIGNATURES_DESCRIPTION'}

); 22 | 23 | print qq(

$text{'SIGNATURES_FIRST_STEP'}

); 24 | 25 | $_error = $text{'MSG_ERROR_FILE_UPLOAD'} if $in{'error'}; 26 | 27 | print qq(); 28 | 29 | print qq(

); 30 | 31 | print qq(
); 32 | 33 | &clamav_footer ('', $text{'RETURN_INDEX_MODULE'}, $_success, $_error); 34 | -------------------------------------------------------------------------------- /uninstall.pl: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2003-2019 2 | # Emmanuel Saracco 3 | # 4 | # GNU GENERAL PUBLIC LICENSE 5 | 6 | BEGIN { 7 | 8 | unshift (@INC, $ENV{'FOREIGN_ROOT_DIRECTORY'}.'/'. 9 | $ENV{'FOREIGN_MODULE_NAME'}.'/lib'); 10 | }; 11 | 12 | use ClamavConstants; 13 | require 'clamav-lib.pl'; 14 | 15 | # module_uninstall () 16 | # 17 | # Called by Webmin when module is uninstalled. 18 | # 19 | sub module_uninstall 20 | { 21 | # Remove quarantine purge cron 22 | &clamav_delete_cron ('purge'); 23 | # Remove quanrantine update cron 24 | &clamav_delete_cron ('update'); 25 | 26 | unlink ('/etc/cron.d/webmin_clamav'); 27 | unlink ('/etc/cron.d/webmin_clamav.sav'); 28 | 29 | # Restore original system files 30 | &clamav_system_restore (undef, 1); 31 | } 32 | 33 | 1; 34 | -------------------------------------------------------------------------------- /updates_main.cgi: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | # Copyright (C) 2003-2019 4 | # Emmanuel Saracco 5 | # 6 | # GNU GENERAL PUBLIC LICENSE 7 | 8 | use lib './lib'; 9 | use ClamavConstants; 10 | 11 | require './clamav-lib.pl'; 12 | &clamav_check_acl ('database_update_view'); 13 | &ReadParse (); 14 | 15 | my ($_success, $_error, $_info) = ('', '', ''); 16 | my $update = defined($in{'update'}); 17 | my $main = $in{'main'}; 18 | my $daily = $in{'daily'}; 19 | my $main_infos = $in{'main_infos'}; 20 | my $daily_infos = $in{'daily_infos'}; 21 | my $update_report = &clamav_update_db () if ($update); 22 | 23 | &clamav_header ($text{'LINK_UPDATE_PAGE'}); 24 | 25 | print qq(
); 26 | print qq(

$text{'UPDATE_PAGE_DESCRIPTION_GENERAL'}

); 27 | 28 | if (!$main || $update) 29 | { 30 | ($main, $daily, $main_infos, $daily_infos) = &clamav_get_last_db_update (); 31 | } 32 | 33 | print qq(); 34 | print qq(); 35 | print qq(); 36 | print qq(); 37 | 38 | if ($main ne '') 39 | { 40 | print qq(

$text{'LAST_UPDATES_DESCRIPTION'}

); 41 | print qq(); 42 | print qq( 43 | ); 44 | if ($daily) 45 | { 46 | print qq( 47 | ); 48 | } 49 | print qq(
$text{'MAIN_UPDATE_DATE'}:  $main \($main_infos\)
$text{'DAILY_UPDATE_DATE'}:  $daily \($daily_infos\)
); 50 | } 51 | else 52 | { 53 | $_info = $text{'NOT_YET_UPDATED'}; 54 | } 55 | 56 | ($proxy_server, $proxy_port) = &clamav_get_proxy_settings (); 57 | if ($proxy_server) 58 | { 59 | print qq(

$text{'USE_PROXY_SETTINGS'}

); 60 | print qq(); 61 | print qq(); 62 | print qq(); 63 | print qq(); 64 | print qq(); 65 | print qq(
$text{'HOST'}: $proxy_server
$text{'PORT'}: $proxy_port
); 66 | } 67 | 68 | if (&clamav_get_acl ('database_update_update') == 1) 69 | { 70 | print qq(

$text{'UPDATE_TITLE_MANUAL'}

); 71 | 72 | if (defined($in{'update'})) 73 | { 74 | print qq(

$text{'UPDATE_REPORT'}

); 75 | 76 | print $update_report; 77 | 78 | $_success = $text{'MSG_SUCCESS_DATABASE_UPDATED'}; 79 | } 80 | else 81 | { 82 | print qq(

$text{'UPDATE_PAGE_DESCRIPTION_MANUAL'}

); 83 | } 84 | print qq(

); 85 | } 86 | 87 | $res = &clamav_verif_refresh_method_ok (); 88 | 89 | if ($res == ER_CRON_PACKAGE) 90 | { 91 | $_error = $text{'BAD_CONFIG_6'}; 92 | } 93 | elsif (!&clamav_update_manual ()) 94 | { 95 | # Config say to use a daemon but no daemon exist on the system 96 | if ($res == ER_DAEMON_NOEXIST) 97 | { 98 | $_error = $text{'BAD_CONFIG_1'}; 99 | } 100 | # Config say to use a daemon, but a cron exist on the system 101 | elsif ($res == ER_DAEMON_CRONEXIST) 102 | { 103 | $_error = $text{'BAD_CONFIG_2'}; 104 | } 105 | # Config say tu use cron, but a daemon exist on the system 106 | elsif ($res == ER_CRON_DAEMONEXIST) 107 | { 108 | $_error = $text{'BAD_CONFIG_3'}; 109 | } 110 | # Config and system are ok 111 | else 112 | { 113 | print qq(

$text{'UPDATE_TITLE_AUTO'}

); 114 | 115 | print qq(

$text{'UPDATE_PAGE_DESCRIPTION_AUTO'}

); 116 | 117 | # user choose to update db with cron 118 | if ($config{'clamav_refresh_use_cron'}) 119 | { 120 | if (defined($in{'next'}) && 121 | &clamav_get_acl ('database_update_update') == 1) 122 | { 123 | if (defined($in{'noupdate'})) 124 | { 125 | &clamav_set_db_no_autoupdate (); 126 | } 127 | elsif (defined $in{'hour'}) 128 | { 129 | my $hour = $in{'hour'}; 130 | 131 | $hour = "*/$hour" if (defined($in{'every_hours'}) && $hour); 132 | &clamav_set_cron_update ($hour, $in{'day'}); 133 | } 134 | $_success = $text{'MSG_SUCCESS_FREQUENCY_UPDATE'}; 135 | } 136 | @cron_line = &clamav_get_cron_settings ('update'); 137 | $checked = (@cron_line) ? '' : ' checked="checked"'; 138 | print &clamav_cron_settings_table ($cron_line[1]||0, $cron_line[4]||7, 139 | $checked); 140 | } 141 | # user choose to update db with daemon 142 | else 143 | { 144 | print qq(

$text{'UPDATE_FRESHCLAM_DAEMON_CHOICE'}

); 145 | 146 | if (defined($in{'next'}) && 147 | &clamav_get_acl ('database_update_update') == 1) 148 | { 149 | my $ret = 0; 150 | 151 | if (defined($in{'noupdate'})) 152 | { 153 | $ret = &clamav_set_db_no_autoupdate (); 154 | } 155 | elsif ($in{'freq'}) 156 | { 157 | $ret = &clamav_set_freshclam_daemon_settings ($in{'oldfreq'}, 158 | $in{'freq'}); 159 | } 160 | 161 | if ($ret) 162 | { 163 | $_success = $text{'MSG_SUCCESS_FREQUENCY_UPDATE'}; 164 | } 165 | else 166 | { 167 | $_error = $text{'MSG_ERROR_FREQUENCY_UPDATE'}; 168 | } 169 | } 170 | 171 | $daemon_setting = &clamav_get_freshclam_daemon_settings (); 172 | $on = &clamav_is_freshclam_alive (); 173 | $checked = ($on) ? '' : ' checked="checked"'; 174 | print qq(); 175 | print &clamav_freshclam_daemon_settings_table ($daemon_setting, $checked); 176 | } 177 | 178 | print qq(

); 179 | print qq(); 180 | print qq( ); 181 | 182 | if (&clamav_get_acl ('database_update_update') == 1) 183 | { 184 | print qq(

); 185 | print qq(

); 186 | } 187 | } 188 | } 189 | else 190 | { 191 | # Config say manual update, but a cron exist on the system 192 | if ($res == ER_MANUAL_CRONEXIST) 193 | { 194 | $_error = $text{'BAD_CONFIG_4'}; 195 | } 196 | # Config say manual update, but a daemon exist on the system 197 | elsif ($res == ER_MANUAL_DAEMONEXIST) 198 | { 199 | $_error = $text{'BAD_CONFIG_5'}; 200 | } 201 | } 202 | 203 | print qq(
); 204 | 205 | &clamav_footer ('', $text{'RETURN_INDEX_MODULE'}, $_success, $_error, $_info); 206 | -------------------------------------------------------------------------------- /vdb_search_main.cgi: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | # Copyright (C) 2003-2019 4 | # Emmanuel Saracco 5 | # 6 | # GNU GENERAL PUBLIC LICENSE 7 | 8 | require './clamav-lib.pl'; 9 | &clamav_check_acl ('database_search_search'); 10 | &ReadParse (); 11 | 12 | my ($_success, $_error, $_info) = ('', '', ''); 13 | 14 | &clamav_vdb_preprocess_inputs (\%in); 15 | 16 | &clamav_header ($text{'LINK_VDB_SEARCH'}); 17 | 18 | $search = (defined($in{'search'}) && ($in{'prefix0'} || $in{'virus'})); 19 | 20 | printf ("

$text{'VDB_SEARCH_VIRUSES_COUNT'} ", 21 | &clamav_get_db_viruses_count ()); 22 | print qq( [$text{'VDB_SEARCH_UPDATE_DB'}]

); 23 | print qq(

$text{'VDB_SEARCH_DESCRIPTION'}

); 24 | 25 | if (defined($in{'search'}) && !$in{'prefix0'} && !$in{'virus'}) 26 | { 27 | $_error = $text{'MSG_VIRUS_NAME'}; 28 | } 29 | 30 | print qq(
); 31 | 32 | print &clamav_display_combos_viruses_prefixes ($in{'prefix0'}, $in{'prefix1'}); 33 | 34 | # search string input 35 | print ""; 36 | 37 | # strict match check box 38 | $checked = ($in{'strict'} eq 'on') ? ' checked="checked"' : ''; 39 | print qq(

); 40 | print qq(

); 41 | 42 | # case sensitive check box 43 | $checked = ($in{'case'} eq 'on') ? ' checked="checked"' : ''; 44 | print qq( ); 45 | print qq(

); 46 | 47 | # sort result check box 48 | $checked = ($in{'sort'} eq 'on') ? ' checked="checked"' : ''; 49 | print qq(

); 50 | print qq(

); 51 | 52 | print qq(
); 53 | 54 | print qq(
); 55 | 56 | if ($search) 57 | { 58 | print qq(

); 59 | if (my $r = &clamav_vdb_search (\%in)) 60 | { 61 | if (exists ($r->{'info'})) 62 | { 63 | $_info = $r->{'info'}; 64 | } 65 | elsif ($r->{'error'}) 66 | { 67 | $_error = $r->{'error'}; 68 | } 69 | } 70 | print qq(

); 71 | } 72 | 73 | &clamav_footer ('', $text{'RETURN_INDEX_MODULE'}, $_success, $_error, $_info); 74 | --------------------------------------------------------------------------------