Scan list of files... how?

Community forum to discuss cxs.
If you believe that there is a problem with your cxs installation and want support then, as a paid product, you should use the helpdesk after having consulted the documentation.
4 posts Page 1 of 1
danbv
Junior Member
Posts: 8
Joined: 16 Dec 2014, 11:53


How can I tell cxs to scan a list of files? It seems to accept only a single resource (file name or directory) on the command line.

I've tried entering more than one on the command line, but cxs only scans the first resource specified.

I've tried using the --xtra option on a file with a few "file:/full/path/to/file" entries, but cxs seems to ignore them completely and only scan the single file I supply on the command line. It's not feasible for me to run cxs for every single file listed.

I hope I'm doing something very wrong, because I can't believe cxs would be missing such basic functionality. :confused:
Sarah
Moderator
Posts: 762
Joined: 09 Dec 2006, 22:49


It's not really clear what you are trying to get cxs to do. Your best bet would be to submit a ticket on the helpdesk and provide more details so we can help.

Regards,
Sarah
danbv
Junior Member
Posts: 8
Joined: 16 Dec 2014, 11:53


Thanks for your reply, Sarah. I'm sorry, what's not clear? :confused: I want cxs to scan more than one specific file in a single execution. For example, let's say I want to scan three files:

index.php
whatever.php
somefile.suspicious

If I specify all three files on the command line:
cxs index.php whatever.php somefile.suspicious

cxs only scans the first file and ignores the rest, which is understandable, it says so in the syntax: "cxs [OPTION]... RESOURCE" <-- (single resource)

Ok, so if I create a file called list_of_files with the following content:

file:index.php
file:whatever.php
file:somefile.suspicious

... and use the "--xtra list_of_files" option (cxs' help says "--xtra [file] points to a file containing a list of regular expression matches and filenames that cxs will additionally scan for"), cxs won't run unless I specify at least one resource (ignoring the obvious list of files mentioned in --xtra), and when I do specify a resource, it only scans that resource, ignoring the list of files altogether. Does --xtra even work? Am I using it right?

I'll gladly submit a ticket if we can be sure there's absolutely no way to scan multiple specific files in a single run. I wouldn't want to bother the dev team otherwise.
Sarah
Moderator
Posts: 762
Joined: 09 Dec 2006, 22:49


Please submit a ticket on the helpdesk so we can help you with using cxs. As cxs is a paid-for product, we provide support for it via the helpdesk. Thanks.

Regards,
Sarah
4 posts Page 1 of 1