Comments (5)
Using -output=json gives you example call paths showing why functions have particular capabilities.
There's also -output=graph which outputs the full set of paths from functions to capabilities in a format suitable for use with graphviz, but this can often be very large.
from capslock.
Thanks for trying Capslock! Output formats are definitely something we're still experimenting with to learn what's most useful. We have the command-line flag -output to change how the information is presented. -output=v is similar to what you suggest, although we should probably add the full path for source files instead of just the final filename.
from capslock.
Outputs format are all good.
but I was hoping to see discover of where is food some aspects
For example:
CAPABILITY_NETWORK: 3 references could pump back a link to the path to the file with line numbers for example.
from capslock.
Yes, I just ran this on a module and see CAPABILITY_ARBITRARY_EXECUTION: 2 references
. I'm not clear which modules can do this. I'm also not clear if I'm using the parts that can do this. If it helps, I was running it against this.
https://gitlab.com/lyda/external-dns-openwrt
from capslock.
Perfect. The json output meets my needs.
from capslock.
Related Issues (14)
- install documentation and packaging HOT 1
- go method naming convention used by capslock is inconsistent with other popular tools HOT 1
- Reporting incorrect (pretty sure) CAPABILITY_NETWORK and CAPABILITY_ARBITRARY_EXECUTION HOT 1
- CAPABILITY_EXEC is not detected for unknwon/com package HOT 5
- Json output also has non json output HOT 2
- Ineffective check for len(packageNames) == 0 HOT 1
- accept classifier interface in analyzer HOT 1
- feature request: Capability diff between two versions of a given Go module/package. HOT 3
- incorrect CAPABILITY_NETWORK classification HOT 2
- Path elements in JSON output are not consistent between runs HOT 3
- Add Star History Chart to README.md
- -output=compare exit code is 0 when differences are found
- capslock panics with Go1.22 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from capslock.