jimmy
07/31/2024, 5:35 PMStefano Bonicatti
07/31/2024, 5:39 PM--yara_delay value, which by default is 50msStefano Bonicatti
07/31/2024, 5:39 PMosqueryd --help | grep yara
--yara_delay VALUE Time in ms to sleep after scan of each file (default 50) to reduce memory spikesFG
07/31/2024, 5:43 PMdefensivedepth
07/31/2024, 7:41 PMjimmy
07/31/2024, 10:31 PMjimmy
07/31/2024, 10:38 PMselect * from yara where path like '/a/b/c/%%' and sigfile='sig.yara' and count > 0;
but this command (which should include everything returned from the previous query) doesn't have any results
select * from yara where path like '/a/%%' and sigfile='sig.yara' and count > 0;
it's especially weird because the first query (which executes deeper), returns matches at e/file.txt and e/something/file2.txtjimmy
08/01/2024, 12:06 AMFG
08/01/2024, 12:52 PMStefano Bonicatti
08/01/2024, 12:54 PMStefano Bonicatti
08/01/2024, 12:57 PM%%, so they'll have the same issueFG
08/01/2024, 1:17 PMselect count(*) from file where path like '/Users/%%' and symlink = 0;Stefano Bonicatti
08/01/2024, 2:53 PMFG
08/01/2024, 2:54 PMStefano Bonicatti
08/01/2024, 3:07 PMsymlink doesn't have any special attribute (index, required , additional), it means that it's not processed by the logic of the table, and it just behaves as a filter applied by sqlite on top of the results from the table.