-
Notifications
You must be signed in to change notification settings - Fork 10
Updated to fix json stream bug in latest Pineapple Firmware. Updated … #4
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
Open
pect0ral
wants to merge
15
commits into
couchfault:master
Choose a base branch
from
pect0ral:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
bc4912b
Updated to fix json stream bug in latest Pineapple Firmware. Updated …
pect0ral eb68349
Rewrote the bulk of recon module for latest firmware. Added comments …
pect0ral d7b9a80
Added download functionality to api. Added an example for it in README.
pect0ral fca9bec
Typo on the README
pect0ral 8193c30
Updated the API to be backwards compatible with older firmware
pect0ral 7bb889e
Had Normal and Live Scan Swapped in Recon
pect0ral e985e21
Added some default to clients. Added missing methods to logging with …
pect0ral fb3947d
Updated filters. Added detail.
pect0ral 52aa06d
some comments and a bug fixed in networking
pect0ral f6a504a
Spacing for readability in recon
pect0ral 4040edf
Updated some bugs in pineap. Fixed a couple bugs.
pect0ral 53ba0d0
Adding list of methods that need to be in PineAP
pect0ral d1bc2b7
Updated Advanced method list
pect0ral af842ee
Indentation error on Advanced
pect0ral f4e07d0
Added note to README just to convey what the rewrite is doing.
pect0ral File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,59 @@ | ||
from module import Module | ||
|
||
class Logging(Module): | ||
|
||
def __init__(self, api): | ||
super(Logging, self).__init__(api, 'Logging') | ||
|
||
def getSyslog(self): | ||
""" | ||
Return raw syslog | ||
""" | ||
return self.request('getSyslog') | ||
|
||
def getDmesg(self): | ||
""" | ||
Return raw dmesg | ||
""" | ||
return self.request('getDmesg') | ||
|
||
def getReportingLog(self): | ||
""" | ||
Return raw reporting log | ||
""" | ||
return self.request('getReportingLog') | ||
|
||
def getPineapLog(self): | ||
""" | ||
Return PineAP Log in JSON Format | ||
""" | ||
return self.request('getPineapLog') | ||
|
||
def clearPineapLog(self): | ||
""" | ||
Clear PineAP Log | ||
""" | ||
return self.request('clearPineapLog') | ||
|
||
def getPineapLogLocation(self): | ||
""" | ||
Return the path where PineAP Log is written | ||
|
||
default: /tmp/ | ||
""" | ||
return self.request('getPineapLogLocation') | ||
|
||
def setPineapLogLocation(self, location): | ||
""" | ||
Update the path where PineAP Log is written | ||
|
||
default: /tmp/ | ||
""" | ||
return self.request('setPineapLogLocation', { 'location': location }) | ||
|
||
def downloadPineapLog(self): | ||
""" | ||
Return the download token for PineAP Log | ||
""" | ||
return self.request('downloadPineapLog') | ||
|
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't p['ssidPool'] return a list instead of a '\n'-joined string?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea probably but that's what's returned from the API raw. I've been using logging.getPineapLog() instead because it comes back structured with clients in json. I'll be publishing some more stuff and rewriting a bunch more of this library in my own repo as I get to it. I have to modify this PR most likely, as it wasn't backwards compatible with older firmware. The pineapple.api in mine is now but before submitting more PRs, I wanted to rewrite a few more things.