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 session() to fetch just a section of info #1194

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Sniffleupagus
Copy link

Allow session() to request a subsection of info from bettercap

Description

bettercap.session() takes an optional parameter to request just a part of the tree. The default behavior requests "session", which gets everything. The parameter can be set as "session/wifi" or "session/ble", etc to get just that part of the tree. "session/gps" does not seem to be supported by bettercap, but session/wifi, session/ble and session/hid are.

Motivation and Context

Change required to reduce the data going back and forth in some cases.

#1193

  • [X ] I have raised an issue to propose this change (required)

How Has This Been Tested?

Tested by running on pwnagotchi for months.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • [X ] New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • [X ] My code follows the code style of this project.
  • My change requires a change to the documentation.
  • [ X] I have updated the documentation accordingly.
  • [ X] I've read the CONTRIBUTION guide
  • [ X] I have signed-off my commits with git commit -s

Signed-off-by: Sniffleupagus <midden_sofas0k@icloud.com>
@aluminum-ice
Copy link

Could you submit this PR to my fork? Seems useful.

@Sniffleupagus
Copy link
Author

Sure. I’m still figuring out GitHub, but yep

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

Successfully merging this pull request may close these issues.

2 participants