Conversation
Adds a long-lived USB/protocol session and proxy bridge so command handlers can reuse one open connection without tearing it down.
Adds ./nrsuite --interact and ./nrsuite interact with a shared session, prompt, status/devices/help/exit commands, and foreground command dispatch. One-shot CLI behavior is unchanged.
Interpreter mode now launches through espbridge open_usb_device instead of the log-tail child path, so the no-newline prompt appears immediately. Logs are still echoed when stderr is a tty.
Termux espbridge 1.1.0 open_usb_device exits without an fd on stdout. Interactive mode now reuses the working TERMUX_CALLBACK/TERMUX_EXPORT_FD launch path without redirecting stdout/stderr, so the prompt and logs stay on the terminal.
Adds show modules/options/status/devices, use <module>, set/unset, run/exploit, and back. Modules are discovered from the real argparse parser so interpreter and one-shot options stay in sync. Also fixes the scan dispatch call in interpreter mode.
Interactive mode now launches without auto-connecting, lists USB devices, supports use device/disconnect, friendly unknown-command suggestions, colored prompts/output, and topic help. Adds docs for the new flow.
Adds clear/cls to interpreter mode and makes the parent ignore SIGINT while the Termux connected child owns the terminal, avoiding competing prompts.
Adds a synchronous hook bus, explicit --plugin loading with a small PluginAPI, dynamic plug/* modules, and set pscript post/* automation with a built-in pcap count post script. Local Python tests expanded to 94 passing.
Adds show plugins/show posts with load counts, colored help, ~/.config/nrsuite/plugins and ~/.config/nrsuite/posts auto-loading, and source tracking for post scripts. Local tests now 97 passing.
Post script dict results now render as readable [+] key: value lines instead of a Python repr.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
nrsuite_lib/session.py, a long-lived USB/Protocol session.nrsuite_lib/interpreter.pywith foreground interpreter mode../nrsuite --interactand./nrsuite interact.status,devices,help,exit, and normal command dispatch inside the prompt../nrsuite scan,./nrsuite sniff --channel 6, etc. still work.Testing
python -m unittest discover -s tests -v— 59 passed../nrsuite --helpno-args behavior preserved.Current limitations
masstorage startandbadusbintentionally exit interpreter mode because those commands re-enumerate/disconnect the USB link.Do not merge automatically; human review required.