To what extent does reading these formats accurately require the execution of code within the documents ? In other words, not just stuff like zip expansion by a library dependency of rga, but for example macros inside office documents or JavaScript inside PDFs. Note: I have no reason to believe such code execution is actually happening — so please don't take this as FUD. My assumption is that a secure design would in…
Also note that it's not necessarily safe to read these documents even if you don't intend on executing embedded code. For example, reading from pdfs uses poppler, which has had a few CVEs that could result in arbitrary code execution, mostly around image decoding. https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=poppler (No shade to poppler intended, just the first tool on the list I looked at.)
Rga: Ripgrep, but also search in PDFs, E-Books, Office documents, zip, etc.
11–20 of 59 posts
Re: Rga: Ripgrep, but also search in PDFs, E-Books, Office documents, zip, etc.
#12EDIT: For instance, under Trisquel/Ubuntu/Debian and derivatives, click on 'recollcmd', and with the right click button mark all the dependencies.
Install RecollGUI for a nice UI.
Now you will have something like Google Search but libre in your own desktop.
Re: Rga: Ripgrep, but also search in PDFs, E-Books, Office documents, zip, etc.
#13Re: Rga: Ripgrep, but also search in PDFs, E-Books, Office documents, zip, etc.
#14To what extent does reading these formats accurately require the execution of code within the documents ? In other words, not just stuff like zip expansion by a library dependency of rga, but for example macros inside office documents or JavaScript inside PDFs. Note: I have no reason to believe such code execution is actually happening — so please don't take this as FUD. My assumption is that a secure design would in…
Also note that it's not necessarily safe to read these documents even if you don't intend on executing embedded code. For example, reading from pdfs uses poppler, which has had a few CVEs that could result in arbitrary code execution, mostly around image decoding. https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=poppler (No shade to poppler intended, just the first tool on the list I looked at.)
Re: Rga: Ripgrep, but also search in PDFs, E-Books, Office documents, zip, etc.
#15Re: Rga: Ripgrep, but also search in PDFs, E-Books, Office documents, zip, etc.
#16Lazy question but anyone integrated this with Emacs Dired, to transparently search all the files?
Re: Rga: Ripgrep, but also search in PDFs, E-Books, Office documents, zip, etc.
#17Earlier quoted context omitted.
Also note that it's not necessarily safe to read these documents even if you don't intend on executing embedded code. For example, reading from pdfs uses poppler, which has had a few CVEs that could result in arbitrary code execution, mostly around image decoding. https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=poppler (No shade to poppler intended, just the first tool on the list I looked at.)
this is why i do like to try and parse shit myself for my own tools, not that thats without risk but i dont share my.code so its untargeted. however, to support a wide variety like this the tools are ok. most code honestly in a pdf will not target pdftotext , i think. i think it would target the thing people open pdfs with like browsers and maybe a few readers like adobe and foxit reader. pdftotext seems more like an…
Re: Rga: Ripgrep, but also search in PDFs, E-Books, Office documents, zip, etc.
#18To what extent does reading these formats accurately require the execution of code within the documents ? In other words, not just stuff like zip expansion by a library dependency of rga, but for example macros inside office documents or JavaScript inside PDFs. Note: I have no reason to believe such code execution is actually happening — so please don't take this as FUD. My assumption is that a secure design would in…
https://pandoc.org/MANUAL.html#a-note-on-security
It's just text, this isn't ripgrepping through your excel macros, just the data that's actually in the excel file.
Re: Rga: Ripgrep, but also search in PDFs, E-Books, Office documents, zip, etc.
#19Ever heard of ugrep?
Re: Rga: Ripgrep, but also search in PDFs, E-Books, Office documents, zip, etc.
#20Use Recoll for that; check the recommended dependencies from your package manager. Synaptic it's good for this with a click from the right mouse button on the package. EDIT: For instance, under Trisquel/Ubuntu/Debian and derivatives, click on 'recollcmd', and with the right click button mark all the dependencies. Install RecollGUI for a nice UI. Now you will have something like Google Search but libre in your own des…