Skip to content

allow session() to fetch just a section of info - #1194

Open
Sniffleupagus wants to merge 1 commit into
evilsocket:masterfrom
Sniffleupagus:bettercap-sub-session
Open

allow session() to fetch just a section of info#1194
Sniffleupagus wants to merge 1 commit into
evilsocket:masterfrom
Sniffleupagus:bettercap-sub-session

Conversation

@Sniffleupagus

Copy link
Copy Markdown

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
Copy Markdown

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

@Sniffleupagus

Copy link
Copy Markdown
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