exploitdb icon indicating copy to clipboard operation
exploitdb copied to clipboard

Problem with AWK

Open gianfelicevincenzo opened this issue 5 years ago • 1 comments

Hi. When i try to search for something i get this syntax error in awk:

[i] Found (#1): /opt/tools/exploitdb/files_exploits.csv
[i] To remove this message, please edit "/opt/tools/exploitdb/.searchsploit_rc" for "files_exploits.csv" (package_array: exploitdb)

[i] Found (#1): /opt/tools/exploitdb/files_shellcodes.csv
[i] To remove this message, please edit "/opt/tools/exploitdb/.searchsploit_rc" for "files_shellcodes.csv" (package_array: exploitdb)

awk: line 1: regular expression compile failed (missing operand)
^(),
Exploits: No Results
awk: line 1: regular expression compile failed (missing operand)
^(),
Shellcodes: No Results

gianfelicevincenzo avatar Dec 28 '20 02:12 gianfelicevincenzo

excerpt from run with bash -x:

++ eval awk -F ''\''[,]'\''' ''\''{print' '$1","$2","$3}'\''' '"/home/user/exploitdb/files_exploits.csv"' '|' grep --color=never -F -i '"Debian"'
++ sort -u
++ sed 's/\"//g;   s_\\_\\\\_g'
+++ awk -F '[,]' '{print $1","$2","$3}' /home/user/exploitdb/files_exploits.csv
+++ grep --color=never -F -i Debian
++ awk '/^(),/ {print}' /home/user/exploitdb/files_exploits.csv
awk: line 1: regular expression compile failed (missing operand)
^(),

atriwidada avatar Mar 15 '22 12:03 atriwidada

Sorry for the delay. Please could you try again with the latest version? You should be able to get updates now from: https://gitlab.com/exploit-database/exploitdb If you are still having issues, open up a ticket here: https://gitlab.com/exploit-database/exploitdb/-/issues Could you also provide more information about your setup (what is your OS, package versions etc)

offensive-security avatar Nov 10 '22 19:11 offensive-security