[clamav-users] rahim small clamav

2023-10-25 Thread Rahim Fakir via clamav-users
I have this code, and want to do a anti-virus but a small one, it will be
called Rahim Gulamo Clamav's
But the code doesn't run :(
I will present 2 codes

// Your First C++ Program

#include 

int main() {
std::cout << "\n";
std::cout << "***Rahim Gulamo Clamav's ***\n";
std::cout << "\n";
return 0;
}

---
this one has lost of problems in the source need help, it's running in kali
---

#include 

#include 

//#include 

//#include 

#include 

#include 

//#include 

int scan_this(char *file_name)

{

char *pattern, *line_in_file;

char file_ch, ch;

int val, val2, flag;

ifstream fin3, fin4;

fin3.open(file_name); // incase the file is not accesible

if(!fin3) return 0;

else // file is accessible | 100% it is a file.

{

//Opening Virus Database File

fin4.open("db.txt"); // this is our character pattern file

for(;;)

{

fin4>>pattern;

if(!strcmp(pattern,"<-"))

{

fin4>>pattern;

if(!strcmpi(pattern,"End"))return -1;

else if(!strcmpi(pattern, "virus"))

{

if(flag) return 1;

else continue;

}

}

else if(!strcmpi(pattern,"LINE"))

{

fin4>>val; // got the line number

// skipping initial lines to reach the line number

for(int i=0;i>val; // got the character number

fin4>>file_ch; // got the character

//skipping initial character to reach the character

for(int i=0;i>dirpath;

strcpy(comm, "dir ");

strcat(comm, "dirpath /b /s >tmp.$$$");

system(comm);

fin.open("tmp.$$$");

while(!fin.eof())

{

fin.getline(file_name, 200);

response = scan_this(file_name);

if(response == 1)

{

cout << "<–!! Caution.! A Virus has been Detected..!";

cout<<"n"<___

Manage your clamav-users mailing list subscription / unsubscribe:
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/Cisco-Talos/clamav-documentation

https://docs.clamav.net/#mailing-lists-and-chat


Re: [clamav-users] ClamAV 1.2.1, 1.1.3, 1.0.4, 0.103.11 patch versions published

2023-10-25 Thread Robert M. Stockmann via clamav-users
On Wed, 25 Oct 2023, Kevin O'Connor via clamav-users wrote:

> Date: Wed, 25 Oct 2023 16:34:46 -0400
> From: Kevin O'Connor via clamav-users 
> To: ClamAV users ML 
> Cc: Kevin O'Connor 
> Subject: Re: [clamav-users] ClamAV 1.2.1, 1.1.3, 1.0.4,
>  0.103.11 patch versions published
> 
> Hi Micah,
> 
> I'm assuming that this is the report of an updated 0.103.11:
> 
> $ /usr/sbin/clamd --version
> 
> ClamAV 1.0.3/27072/Wed Oct 25 07:45:37 2023
> 
> Is that correct?.. it was difficult to tell from the links.
> 
clamav 0.103.11 does report this :

$ clamdscan --version
ClamAV 0.103.11/27072/Wed Oct 25 09:45:37 2023
$ /usr/sbin/clamd --version
ClamAV 0.103.11/27072/Wed Oct 25 09:45:37 2023
 
> 
> On Wed, Oct 25, 2023 at 2:13 PM Micah Snyder (micasnyd) via clamav-users <
> clamav-users@lists.clamav.net> wrote:

> > Read this online at:
> > https://blog.clamav.net/2023/10/clamav-121-113-104-010311-patch.html
> > 

-- 
Robert M. Stockmann - RHCE
Network Engineer - UNIX/Linux Specialist
crashrecovery.org  st...@stokkie.net

___

Manage your clamav-users mailing list subscription / unsubscribe:
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/Cisco-Talos/clamav-documentation

https://docs.clamav.net/#mailing-lists-and-chat


Re: [clamav-users] ClamAV 1.2.1, 1.1.3, 1.0.4, 0.103.11 patch versions published

2023-10-25 Thread Kevin O'Connor via clamav-users
Hi Micah,

I'm assuming that this is the report of an updated 0.103.11:

$ /usr/sbin/clamd --version

ClamAV 1.0.3/27072/Wed Oct 25 07:45:37 2023

Is that correct?.. it was difficult to tell from the links.

Kevin

On Wed, Oct 25, 2023 at 2:13 PM Micah Snyder (micasnyd) via clamav-users <
clamav-users@lists.clamav.net> wrote:

> Read this online at:
> https://blog.clamav.net/2023/10/clamav-121-113-104-010311-patch.html
> 
>
>
>
> Today, we are publishing the 1.2.1, 1.1.3, 1.0.4, and 0.103.11 security
> patch versions.
> The release files for the patch versions are available for download on the 
> ClamAV
> downloads page
> ,
> on the GitHub Release page
> ,
> and through Docker Hub
> 
> .
>
> Continue reading to learn what changed in each version.
>
> 1.2.1
>
> ClamAV 1.2.1 is a patch release with the following fixes:
>
>-
>
>Eliminate security warning about unused "atty" dependency.
>- GitHub pull request
>   
>   .
>-
>
>Upgrade the bundled UnRAR library (libclamunrar) to version 6.2.12.
>- GitHub pull request
>   
>   .
>-
>
>Build system: Fix link error with Clang/LLVM/LLD version 17. Patch
>courtesy of Yasuhiro Kimura.
>- GitHub pull request
>   
>   .
>-
>
>Fix alert-exceeds-max feature for files > 2GB and < max-filesize.
>- GitHub pull request
>   
>   .
>
> Special thanks to Yasuhiro Kimura for code contributions and bug reports.
> 1.1.3
>
> ClamAV 1.1.3 is a patch release with the following fixes:
>
>-
>
>Eliminate security warning about unused "atty" dependency.
>- GitHub pull request.
>   
>-
>
>Upgrade the bundled UnRAR library (libclamunrar) to version 6.2.12.
>- GitHub pull request
>   
>   .
>-
>
>Windows: libjson-c 0.17 compatibility fix with ssize_t type definition.
>- GitHub pull request
>   
>   .
>-
>
>Build system: Fix link error with Clang/LLVM/LLD version 17. Patch
>courtesy of Yasuhiro Kimura.
>- GitHub pull request
>   
>   .
>-
>
>Fix alert-exceeds-max feature for files > 2GB and < max-filesize.
>- GitHub pull request
>   
>   .
>
> Special thanks to Yasuhiro Kimura for code contributions and bug reports.
> 1.0.4
>
> ClamAV 1.0.4 is a patch release with the following fixes:
>
>-
>
>Eliminate security warning about unused "atty" dependency.
>- GitHub pull request
>   
>   .
>-
>
>Upgrade the bundled UnRAR library (libclamunrar) to version 6.2.12.
>- GitHub pull request
>   
>   .
>-
>
>Windows: libjson-c 0.17 compatibility fix with ssize_t type definition.
>- GitHub pull request
>   
>   .
>-
>
>Freshclam: Removed a verbose warning printed for each Freshclam HTTP
>request.
>- GitHub pull request
>   
>   .
>-
>
>Build system: Fix link error with Clang/LLVM/LLD version 17. Patch
>courtesy of Yasuhiro Kimura.
>- GitHub pull request
>   
>   .
>-
>
>Fix alert-exceeds-max feature for files > 2GB and < max-filesize.
>- GitHub pull request
>   
>   .
>
> Special thanks to Yasuhiro Kimura for code contributions and bug reports.
> 0.103.11
>
> ClamAV 0.103.11 is a patch release with the following fixes:
>
>-
>
>Upgrade the bundled UnRAR library (libclamunrar) to version 6.2.12.
>- GitHub pull request
>   
>   .
>-
>
>Windows: libjson-c 0.17 compatibility fix with ssize_t type definition.
>- GitHub pull request
>   
>   .
>-
>
>Windows: Update build system to use OpenSSL 3 and PThreads-Win32 v3.
>- GitHub pull request
>   
>   .
>
>
> Posted by Micah Snyder
> 
> at 1:36 PM
> 
>
> 

Re: [clamav-users] first questioon????

2023-10-25 Thread Paul Kosinski via clamav-users
On Wed, 25 Oct 2023 17:18:46 +0100 (BST)
Andrew C Aitchison via clamav-users  wrote:

> On Sun, 22 Oct 2023, Rahim Fakir via clamav-users wrote:
> 
> > I would like to know if it is possible to have clamav on the desktop and
> > remotely scan the phone.
> > for example: clamscan -r -i remove=yes ipaddress root.of.cellphone  
> 
> For Android it is likely you can use
> https://play.google.com/store/apps/details?id=net.xnano.android.sshserver=en_US=US
> to share you phone as an sftp server, and
>   sshfs
> on the desktop to make the phone appear as a drive on the desktop.
> 
> Once that is working ClamAV could scan the mounted phone drive.
> I have no idea how fast or slow this would be.
> 
> More importantly, I suspect that SSHServer would not have access to all of 
> the files onyour phone, so there would be files you could not scan.
> 
> Please do not use "remove=yes". ClamAV is rarely tested on phones
> so false-positives are more likely than usual.


It may be worse than that.

A few years ago, I had installed a a nice FTP server (WiFi FTP Pro) on my 
wife's Android phone, to make it easy to download photos etc. Then Google 
forcibly installed Storage Access Framework (SAF) on Android: it blocks access 
to all but a few directories (e.g., can't even get at the SD card!), and there 
seems to be no update for this FTP server to coexist with SAF.

P.S. Google claims this was done for security reasons (which it does somewhat 
improve), but I wonder if it isn't also to trap you into their ecosystem 
(Google Drive et all).
___

Manage your clamav-users mailing list subscription / unsubscribe:
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/Cisco-Talos/clamav-documentation

https://docs.clamav.net/#mailing-lists-and-chat


[clamav-users] ClamAV 1.2.1, 1.1.3, 1.0.4, 0.103.11 patch versions published

2023-10-25 Thread Micah Snyder (micasnyd) via clamav-users
Read this online at: 
https://blog.clamav.net/2023/10/clamav-121-113-104-010311-patch.html




Today, we are publishing the 1.2.1, 1.1.3, 1.0.4, and 0.103.11 security patch 
versions.

The release files for the patch versions are available for download on the 
ClamAV downloads page, on the GitHub Release 
page, and through Docker 
Hub.

Continue reading to learn what changed in each version.

1.2.1

ClamAV 1.2.1 is a patch release with the following fixes:

  *   Eliminate security warning about unused "atty" dependency.

 *   GitHub pull request.
  *   Upgrade the bundled UnRAR library (libclamunrar) to version 6.2.12.

 *   GitHub pull request.
  *   Build system: Fix link error with Clang/LLVM/LLD version 17. Patch 
courtesy of Yasuhiro Kimura.

 *   GitHub pull request.
  *   Fix alert-exceeds-max feature for files > 2GB and < max-filesize.

 *   GitHub pull request.

Special thanks to Yasuhiro Kimura for code contributions and bug reports.

1.1.3

ClamAV 1.1.3 is a patch release with the following fixes:

  *   Eliminate security warning about unused "atty" dependency.

 *   GitHub pull request.
  *   Upgrade the bundled UnRAR library (libclamunrar) to version 6.2.12.

 *   GitHub pull request.
  *   Windows: libjson-c 0.17 compatibility fix with ssize_t type definition.

 *   GitHub pull request.
  *   Build system: Fix link error with Clang/LLVM/LLD version 17. Patch 
courtesy of Yasuhiro Kimura.

 *   GitHub pull request.
  *   Fix alert-exceeds-max feature for files > 2GB and < max-filesize.

 *   GitHub pull request.

Special thanks to Yasuhiro Kimura for code contributions and bug reports.

1.0.4

ClamAV 1.0.4 is a patch release with the following fixes:

  *   Eliminate security warning about unused "atty" dependency.

 *   GitHub pull request.
  *   Upgrade the bundled UnRAR library (libclamunrar) to version 6.2.12.

 *   GitHub pull request.
  *   Windows: libjson-c 0.17 compatibility fix with ssize_t type definition.

 *   GitHub pull request.
  *   Freshclam: Removed a verbose warning printed for each Freshclam HTTP 
request.

 *   GitHub pull request.
  *   Build system: Fix link error with Clang/LLVM/LLD version 17. Patch 
courtesy of Yasuhiro Kimura.

 *   GitHub pull request.
  *   Fix alert-exceeds-max feature for files > 2GB and < max-filesize.

 *   GitHub pull request.

Special thanks to Yasuhiro Kimura for code contributions and bug reports.

0.103.11

ClamAV 0.103.11 is a patch release with the following fixes:

  *   Upgrade the bundled UnRAR library (libclamunrar) to version 6.2.12.

 *   GitHub pull request.
  *   Windows: libjson-c 0.17 compatibility fix with ssize_t type definition.

 *   GitHub pull request.
  *   Windows: Update build system to use OpenSSL 3 and PThreads-Win32 v3.

 *   GitHub pull request.

Posted by Micah Snyder  
at 1:36 
PM 
[https://img1.blogblog.com/img/icon18_email.gif]  

Email 
ThisBlogThis!Share
 to 
TwitterShare
 to 
FacebookShare
 to 
Pinterest
Labels: 0.103.11, 
1.0.4, 
1.1.3, 
1.2.1, 
clamav, patch 

Re: [clamav-users] first questioon????

2023-10-25 Thread Andrew C Aitchison via clamav-users

On Sun, 22 Oct 2023, Rahim Fakir via clamav-users wrote:


I would like to know if it is possible to have clamav on the desktop and
remotely scan the phone.
for example: clamscan -r -i remove=yes ipaddress root.of.cellphone


For Android it is likely you can use
https://play.google.com/store/apps/details?id=net.xnano.android.sshserver=en_US=US
to share you phone as an sftp server, and
 sshfs
on the desktop to make the phone appear as a drive on the desktop.

Once that is working ClamAV could scan the mounted phone drive.
I have no idea how fast or slow this would be.

More importantly, I suspect that SSHServer would not have access to all of 
the files onyour phone, so there would be files you could not scan.


Please do not use "remove=yes". ClamAV is rarely tested on phones
so false-positives are more likely than usual.


Eu desejava saber se é possível ter o clamav no desktop e remotamente fazer
um scan ao telemovel.
for example: clamscan -r -i remove=yes ipaddress root.of.cellphone

Rahim 00351 933 5959 74 is bugged



--
Andrew C. Aitchison  Kendal, UK
   and...@aitchison.me.uk
___

Manage your clamav-users mailing list subscription / unsubscribe:
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/Cisco-Talos/clamav-documentation

https://docs.clamav.net/#mailing-lists-and-chat


Re: [clamav-users] first questioon????

2023-10-25 Thread newcomer01 via clamav-users

Hello Rahim,

sorry for my late reply, was little busy.
This option are not possible, you need Linux (not Android!) on your Phone and root access 
and a complete "installation" of clamscan and freshclam and mybe some cronjobs.

kind greetings
Marc


Von / From: Clamav User Mailinglist 
An / To: Newcomer01 
CC / CC: Rahim Fakir 
Gesendet / Sent: Montag, Oktober 23, 2023 um 00:18 (at 12:18 AM) +0200
Betreff / Subject: [clamav-users] first questioon

I would like to know if it is possible to have clamav on the desktop and 
remotely scan the phone.
for example: clamscan -r -i remove=yes ipaddress root.of.cellphone


Eu desejava saber se é possível ter o clamav no desktop e remotamente fazer um 
scan ao telemovel.
for example: clamscan -r -i remove=yes ipaddress root.of.cellphone

Rahim 00351 933 5959 74 is bugged

___

Manage your clamav-users mailing list subscription / unsubscribe:
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/Cisco-Talos/clamav-documentation

https://docs.clamav.net/#mailing-lists-and-chat


___

Manage your clamav-users mailing list subscription / unsubscribe:
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/Cisco-Talos/clamav-documentation

https://docs.clamav.net/#mailing-lists-and-chat


Re: [clamav-users] first questioon????

2023-10-25 Thread Micah Snyder (micasnyd) via clamav-users
Hi Rahim,

Sorry, this is not possible.

-Micah


Micah Snyder
ClamAV Development
Talos
Cisco Systems, Inc.

From: clamav-users  on behalf of Rahim 
Fakir via clamav-users 
Sent: Sunday, October 22, 2023 5:18 PM
To: clamav-users@lists.clamav.net 
Cc: Rahim Fakir 
Subject: [clamav-users] first questioon

I would like to know if it is possible to have clamav on the desktop and 
remotely scan the phone.
for example: clamscan -r -i remove=yes ipaddress root.of.cellphone


Eu desejava saber se é possível ter o clamav no desktop e remotamente fazer um 
scan ao telemovel.
for example: clamscan -r -i remove=yes ipaddress root.of.cellphone

Rahim 00351 933 5959 74 is bugged
___

Manage your clamav-users mailing list subscription / unsubscribe:
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/Cisco-Talos/clamav-documentation

https://docs.clamav.net/#mailing-lists-and-chat


Re: [clamav-users] [ext] Compressing log files with clamav

2023-10-25 Thread Micah Snyder (micasnyd) via clamav-users
There are no plans to add compression for log files.  And I can't recall any 
prior feature request asking for this though I see the appeal.  Feel free to 
put in a feature request issue on GitHub.

I imagine it wouldn't be hard to add this feature.  If anyone wants to 
contribute this feature, you're welcome to.  My team is unfortunately down a 
developer, and already behind on other work. It is unlikely that we'll pick it 
up ourselves.

Regards,
Micah


Micah Snyder
ClamAV Development
Talos
Cisco Systems, Inc.

From: clamav-users  on behalf of Andrew 
C Aitchison via clamav-users 
Sent: Tuesday, October 24, 2023 12:20 PM
To: Vu, Hong-Duc V. via clamav-users 
Cc: Andrew C Aitchison ; Vu, Hong-Duc V. 

Subject: Re: [clamav-users] [ext] Compressing log files with clamav

On Tue, 24 Oct 2023, Vu, Hong-Duc V. via clamav-users wrote:

>> Use logrotate:
> ==
>
>
> Thank you Ralf. I take that to mean there is no compression directive in the 
> configuration file by default.
>
> Are there plans to add this feature to a future release, Micah?

I guess this might be useful in docker or a similar container,
but it would be a lot if work to do it on every platform
and unless you include the right optional features, a lot
of people will use logrotate anyway.

--
Andrew C. Aitchison  Kendal, UK
and...@aitchison.me.uk
___

Manage your clamav-users mailing list subscription / unsubscribe:
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/Cisco-Talos/clamav-documentation

https://docs.clamav.net/#mailing-lists-and-chat
___

Manage your clamav-users mailing list subscription / unsubscribe:
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/Cisco-Talos/clamav-documentation

https://docs.clamav.net/#mailing-lists-and-chat