Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow exposing stdin to scripts #45

Closed
kpcyrd opened this issue Dec 7, 2018 · 0 comments
Closed

Allow exposing stdin to scripts #45

kpcyrd opened this issue Dec 7, 2018 · 0 comments
Milestone

Comments

@kpcyrd
Copy link
Owner

kpcyrd commented Dec 7, 2018

In some cases we want to pass a file to a script. Since we don't expose any functions to access the filesystem this is currently not possible, but we could add an --stdin mode that enables some functions to access stdin. This would allow parsing some text based files or output of some tools:

cat dhcpd.leases | sn0int run --stdin -f ./dhcpd-parser.lua
@kpcyrd kpcyrd added this to the v0.6.0 milestone Dec 7, 2018
@kpcyrd kpcyrd closed this as completed in #46 Dec 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant