offensive-security / exploitdb

The legacy Exploit Database repository - New repo located at https://gitlab.com/exploit-database/exploitdb
https://gitlab.com/exploit-database/exploitdb
GNU General Public License v2.0
7.74k stars 1.88k forks source link

Problem with AWK #193

Closed gianfelicevincenzo closed 2 years ago

gianfelicevincenzo commented 3 years ago

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
atriwidada commented 2 years ago

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)
^(),
offensive-security commented 2 years ago

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)