无法更新searchsploit

问题描述 投票:0回答:1

每当我这样做时

searchsploit -u
我都会收到此错误:

[i] Git pull'ing
POST git-upload-pack (317 bytes)
fatal: couldn't find remote ref master

[-] Git conflict
fatal: empty string is not a valid pathspec. please use . instead if you meant to match all paths
fatal: empty string is not a valid pathspec. please use . instead if you meant to match all paths
error: cannot open '.git/FETCH_HEAD': Permission denied
POST git-upload-pack (317 bytes)
fatal: couldn't find remote ref master

我尝试做

git config --global init.defaultBranch main
但没有成功。

如何重现:

sudo pacman -S exploitdb
searchsploit -u

git clone https://gitlab.com/exploit-database/exploitdb.git /opt/exploit-database
ln -sf /opt/exploit-database/searchsploit /usr/local/bin/searchsploit
cp -n /opt/exploit-database/.searchsploit_rc ~/
searchsploit -u

我看不到解决方案在 this 线程、this 甚至 this 中的位置。

gitlab
1个回答
0
投票

在 Ubuntu 24.04 安装上从 Gitlab 安装后,我遇到了同样的问题。我检查了searchsploit的代码,发现存储库被硬编码为“master”两次。在 gitlab 上,存储库是“main”。为了测试我将代码更改为“main”,现在它似乎可以工作:

From https://gitlab.com/exploit-database/exploitdb-papers
 * branch            main       -> FETCH_HEAD
 = [up to date]      main       -> upstream/main
Already up to date.

也许这对你也有帮助。

© www.soinside.com 2019 - 2024. All rights reserved.