windows环境下安装metasploit带有中文路径时无法启动的解决方法
来源:互联网 发布:mp3剪切大师软件 编辑:程序博客网 时间:2024/05/01 13:45
修改目录下的apps\pro\msf3\lib\msf\base\simple\framework\module_paths.rb文件
module Msf module Simple module Framework module ModulePaths # Initialize the module paths # # @return [void] def init_module_paths(opts={}) # Ensure the module cache is accurate self.modules.refresh_cache_from_database # Initialize the default module search paths if (Msf::Config.module_directory) self.modules.add_module_path(Msf::Config.module_directory, opts) end # Initialize the user module search path if (Msf::Config.user_module_directory) self.modules.add_module_path(Msf::Config.user_module_directory.force_encoding('GBK').encode('utf-8'), opts) end # If additional module paths have been defined globally, then load them. # They should be separated by semi-colons. if self.datastore['MsfModulePaths'] self.datastore['MsfModulePaths'].split(";").each { |path| self.modules.add_module_path(path, opts) } end end end end endend
self.modules.add_module_path(Msf::Config.user_module_directory.force_encoding('GBK').encode('utf-8'), opts)
这一行进行转码即可
0 0
- windows环境下安装metasploit带有中文路径时无法启动的解决方法
- Windows下无法启动oracleDBConsole的解决方法
- Windows下无法启动oracleDBConsole的解决方法
- WinXP下MySQL由于更改路径无法启动的解决方法
- Windows 2003下无法用“../”表示父路径的解决方法
- windows+python3.5环境下安装selenium后无法导入webdriver的解决方法
- CollabNetSubversionEdge windows版安装Subersion Server无法启动!的解决方法
- Linux下安装mysql后无法启动的解决方法
- linux下安装teamviewer服务无法启动的解决方法
- Android SDK的AVD由于中文路径名无法启动的解决方法(转载)
- 搜寻指定路径下所有带有中文的脚本
- win7中文语言包环境下安装软件乱码的解决方法
- metasploit-学习4---windows 7下的安装
- windows apache 无法启动的解决方法
- 电脑无法启动windows的解决方法
- Redis.Windows服务无法启动的解决方法
- windows系统下Metasploit安装及常见问题
- Mongodb在windows环境下的安装和启动
- The Beginning
- MySQL简明教程
- 洗牌算法1-蛮力搜索
- POJ 3273 Monthly Expense(二分)
- JD 1548 平面上的点
- windows环境下安装metasploit带有中文路径时无法启动的解决方法
- Linux——发展历史
- java获取前一天,一周,一个月的时间区间
- oracle 10g提示java.lang.Exception Exception in sending Request null解决方案
- Xcode 5 解决第三方库在iPhone 5s出现的问题
- 杨丰盛老师《Cocos2D-X跨平台游戏课程》
- IP及主机名设置_Linux运维笔记
- SPI内核驱动模型-dm8127
- addChildViewController、removeFromParentViewController等语法