LibcSearcher 安装 错误处理

第一步 :安装

1.git clone https://github.com/lieanu/LibcSearcher.git
2.cd LibcSearcher
3.python setup.py develop

报错一

Traceback (most recent call last):
  File "setup.py", line 1, in <module>
    from setuptools import find_packages, setup
ImportError: No module named setuptools

解决方案

wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz
tar zxvf setuptools-0.6c11.tar.gz
cd setuptools-0.6c11
python setup.py build
python setup.py install

报错二

xxx@xxx-virtual-machine:~/LibcSearcher/setuptools-0.6c11$ python setup.py develop
running develop
Checking .pth file support in /usr/local/lib/python2.7/dist-packages/
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

    [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/test-easy-install-12856.pth'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /usr/local/lib/python2.7/dist-packages/

Perhaps your account does not have write access to this directory?  If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account.  If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.

For information on other options, you may wish to consult the
documentation at:

  http://peak.telecommunity.com/EasyInstall.html

Please make the appropriate changes for your system and try again.

解决方案

使用

sudo python setup.py develop

搞定

running develop
Checking .pth file support in /usr/local/lib/python2.7/dist-packages/
/usr/bin/python -E -c pass
TEST PASSED: /usr/local/lib/python2.7/dist-packages/ appears to support .pth files
running egg_info
writing setuptools.egg-info/PKG-INFO
writing top-level names to setuptools.egg-info/top_level.txt
writing dependency_links to setuptools.egg-info/dependency_links.txt
writing entry points to setuptools.egg-info/entry_points.txt
reading manifest file 'setuptools.egg-info/SOURCES.txt'
writing manifest file 'setuptools.egg-info/SOURCES.txt'
running build_ext
Creating /usr/local/lib/python2.7/dist-packages/setuptools.egg-link (link to .)
Adding setuptools 0.6c11 to easy-install.pth file
Installing easy_install script to /usr/local/bin
Installing easy_install-2.7 script to /usr/local/bin

Installed /home/kylin/LibcSearcher/setuptools-0.6c11
Processing dependencies for setuptools==0.6c11
Finished processing dependencies for setuptools==0.6c11
  • 5
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
安装LibcSearcher,您可以按照以下步骤进行操作: 1. 首先,您需要手动安装LibcSearcher。您可以使用以下命令将其克隆到您的本地目录: ``` sudo git clone https://github.com/lexsd6/LibcSearcher_plus.git ``` 2. 进入LibcSearcher_plus目录: ``` cd ./LibcSearcher_plus ``` 3. 授予setup.py文件执行权限: ``` sudo chmod 777 ./setup.py ``` 4. 如果您已经安装libc-database,可以将其复制到LibcSearcher_plus目录下。如果没有安装,请执行以下命令克隆libc-database: ``` sudo git clone https://github.com/niklasb/libc-database.git ``` 5. 安装ruby环境(如果您已经安装了ruby环境,可以跳过此步骤): ``` sudo apt-get install ruby2.6 ruby2.6-dev ``` 6. 安装one_gadget工具: ``` sudo gem install one_gadget ``` 7. 执行setup.py文件进行安装: ``` sudo ./setup.py develop ``` 8. 如果您已经安装libc-database,可以跳过此步骤。否则,进入libc-database目录并获取适用于Ubuntu和Debian系统的libc数据库: ``` cd ./libc-database sudo ./get ubuntu debian ``` 这样,您就成功安装LibcSearcher。请注意,这是一个针对CTF比赛开发的小工具,用于在泄露了Libc中的某个函数地址后,根据地址的最后12位与常见的Libc.so进行对比。\[1\]\[2\] #### 引用[.reference_title] - *1* [LibcSearcher安装的心路历程和坑____Python2,setuptools,libcsearcher其他版本](https://blog.csdn.net/OrientalGlass/article/details/128541226)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [[二进制学习笔记]LibcSearcher安装](https://blog.csdn.net/hide_in_darkness/article/details/126224698)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值