kpcyrd / sn0int

Semi-automatic OSINT framework and package manager
https://sn0int.readthedocs.io/
GNU General Public License v3.0
1.92k stars 177 forks source link

Add basic lua repl #127

Closed kpcyrd closed 4 years ago

kpcyrd commented 4 years ago

This is supposed to aid script development.

Unfortunately, due to restrictions in the lua library, if we want to print the result of a function we have to prefix it with return, so this returns nothing:

> sn0int_version()
>

While this does:

> return sn0int_version()
"0.13.0"
> 

For convenience, if tab is pressed while the cursor is at the start of the line we insert return, so the following combo can be used to rerun the last command with return prefixed:

<up><ctrl a><tab><enter>