From 09e7d206516a7bb90deaf135a5cd447e150b4e81 Mon Sep 17 00:00:00 2001 From: g0tmi1k Date: Mon, 22 Jun 2020 22:13:02 +0100 Subject: [PATCH 1/3] Fix #178 - apt issues --- searchsploit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/searchsploit b/searchsploit index 0d3d55d0e..0eb1cf45b 100755 --- a/searchsploit +++ b/searchsploit @@ -156,8 +156,8 @@ function update() { package="${tmp_package[${i}]}" ## Update from the repos (e.g. Kali) - apt-cache search "${package}" 2>/dev/null >/dev/null #dpkg -l "${package}" 2>/dev/null >/dev/null - if [[ "$?" == "0" ]]; then + apt=$( apt-cache search "^${package}$" 2>/dev/null ) #dpkg -l "${package}" 2>/dev/null >/dev/null + if [[ "$?" == "0" ]] && [[ "${apt}" != "" ]]; then updatedeb "${package}" else ## Update from homebrew (e.g. OSX) From 4d077be2a7c0ed9b2bc6dd9c3fe568a3567c4309 Mon Sep 17 00:00:00 2001 From: g0tmi1k Date: Mon, 22 Jun 2020 22:13:28 +0100 Subject: [PATCH 2/3] Remove conflict with exploitdb-papers --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 080afc502..c49808427 100644 --- a/README.md +++ b/README.md @@ -148,7 +148,6 @@ In short: clone the repository, add the binary into `$PATH`, and edit the config ``` $ sudo git clone https://github.com/offensive-security/exploitdb.git /opt/exploitdb -$ sed 's|path_array+=(.*)|path_array+=("/opt/exploitdb")|g' /opt/exploitdb/.searchsploit_rc > ~/.searchsploit_rc $ sudo ln -sf /opt/exploitdb/searchsploit /usr/local/bin/searchsploit ``` From 7ca0e0c447f0d1b0a83b72c29c87001889109a7e Mon Sep 17 00:00:00 2001 From: g0tmi1k Date: Mon, 22 Jun 2020 22:13:58 +0100 Subject: [PATCH 3/3] Version bump --- searchsploit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searchsploit b/searchsploit index 0eb1cf45b..f82845417 100755 --- a/searchsploit +++ b/searchsploit @@ -1,6 +1,6 @@ #!/usr/bin/env bash # Name: SearchSploit - Exploit-DB's CLI search tool -# Version: 4.1.1 (2020-05-01) +# Version: 4.1.2 (2020-06-22) # Written by: Offensive Security, Unix-Ninja, and g0tmi1k # Homepage: https://github.com/offensive-security/exploitdb # Manual: https://www.exploit-db.com/searchsploit