alpha1e0 / kiwi Goto Github PK
View Code? Open in Web Editor NEWkiwi:安全源码审计工具
kiwi:安全源码审计工具
请问将 kiwilime 目录整个 copy 到 package-directory后 在sublime里如何对当前 Forder 进行源码安全审计扫描。按钮基本上是灰的
具体的配置过程是怎么样的?我怎么弄都配置不起来
copying build/lib/kiwi/core/issuemgr.py -> build/bdist.linux-x86_64/egg/kiwi/core
copying build/lib/kiwi/init.py -> build/bdist.linux-x86_64/egg/kiwi
byte-compiling build/bdist.linux-x86_64/egg/kiwi/ui/cli/init.py to init.cpython-37.pyc
byte-compiling build/bdist.linux-x86_64/egg/kiwi/ui/cli/main.py to main.cpython-37.pyc
byte-compiling build/bdist.linux-x86_64/egg/kiwi/ui/webui/report_console.py to report_console.cpython-37.pyc
byte-compiling build/bdist.linux-x86_64/egg/kiwi/ui/webui/application.py to application.cpython-37.pyc
byte-compiling build/bdist.linux-x86_64/egg/kiwi/ui/webui/init.py to init.cpython-37.pyc
byte-compiling build/bdist.linux-x86_64/egg/kiwi/ui/init.py to init.cpython-37.pyc
byte-compiling build/bdist.linux-x86_64/egg/kiwi/core/analyzer.py to analyzer.cpython-37.pyc
byte-compiling build/bdist.linux-x86_64/egg/kiwi/core/common.py to common.cpython-37.pyc
File "build/bdist.linux-x86_64/egg/kiwi/core/common.py", line 131
def out(cls, msg, color): print cls.colorize(msg, color)
^
我把这几个都用pip下了,为什么还会报错呢?
$ python2 kiwi.py -f C:\Users\test\Documents\test\kiwi\kiwi\kiwi_data -i TEST001 -t C:\Users\test\Documents\test\test
+------------------------------------------------------------------------------+
| Kiwi. Security tool for auditing source code |
| https://github.com/alpha1e0/kiwi |
+------------------------------------------------------------------------------+
[Kiwi 代码安全扫描]
--------------------------------------------------------------------------------
[i]: kiwi 扫描 C:\Users\test\Documents\test\test ...
C:\Users\test\Documents\test\kiwi\kiwi\kiwi\kiwi\core\common.py:37: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
result = yaml.load(_file)
result = yaml.load(_file)
這是正常的?
win10 64bits
chcp 65001
$ kiwi
+------------------------------------------------------------------------------+
| Kiwi. Security tool for auditing source code |
| https://github.com/alpha1e0/kiwi |
+------------------------------------------------------------------------------+
Traceback (most recent call last):
File "C:\Python27\Scripts\kiwi-script.py", line 11, in <module>
load_entry_point('kiwi==1.1', 'console_scripts', 'kiwi')()
File "C:\Python27\lib\site-packages\kiwi-1.1-py2.7.egg\kiwi\ui\cli\main.py", line 63, in main
out.init(u"Kiwi 代码安全扫描")
File "C:\Python27\lib\site-packages\kiwi-1.1-py2.7.egg\kiwi\core\common.py", line 91, in init
self.yellow(u"[{0}]".format(self._title))
File "C:\Python27\lib\site-packages\kiwi-1.1-py2.7.egg\kiwi\core\common.py", line 141, in yellow
def yellow(cls, msg): cls.out(msg, 'yellow')
File "C:\Python27\lib\site-packages\kiwi-1.1-py2.7.egg\kiwi\core\common.py", line 131, in out
def out(cls, msg, color): print cls.colorize(msg, color)
File "C:\Python27\lib\site-packages\kiwi-1.1-py2.7.egg\kiwi\core\common.py", line 108, in colorize
cls.tostr(msg)
File "C:\Python27\lib\site-packages\kiwi-1.1-py2.7.egg\kiwi\core\common.py", line 98, in tostr
msg = msg.encode(cls.ENCODING)
LookupError: unknown encoding: cp65001
chcp 950
$ kiwi
+------------------------------------------------------------------------------+
| Kiwi. Security tool for auditing source code |
| https://github.com/alpha1e0/kiwi |
+------------------------------------------------------------------------------+
Traceback (most recent call last):
File "C:\Python27\Scripts\kiwi-script.py", line 11, in <module>
load_entry_point('kiwi==1.1', 'console_scripts', 'kiwi')()
File "C:\Python27\lib\site-packages\kiwi-1.1-py2.7.egg\kiwi\ui\cli\main.py", line 63, in main
out.init(u"Kiwi 隞??摰?急?")
File "C:\Python27\lib\site-packages\kiwi-1.1-py2.7.egg\kiwi\core\common.py", line 91, in init
self.yellow(u"[{0}]".format(self._title))
File "C:\Python27\lib\site-packages\kiwi-1.1-py2.7.egg\kiwi\core\common.py", line 141, in yellow
def yellow(cls, msg): cls.out(msg, 'yellow')
File "C:\Python27\lib\site-packages\kiwi-1.1-py2.7.egg\kiwi\core\common.py", line 131, in out
def out(cls, msg, color): print cls.colorize(msg, color)
File "C:\Python27\lib\site-packages\kiwi-1.1-py2.7.egg\kiwi\core\common.py", line 108, in colorize
cls.tostr(msg)
File "C:\Python27\lib\site-packages\kiwi-1.1-py2.7.egg\kiwi\core\common.py", line 98, in tostr
msg = msg.encode(cls.ENCODING)
UnicodeEncodeError: 'cp950' codec can't encode character u'\u7801' in position 7: illegal multibyte sequence
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.