Commit Graph

18 Commits

Author SHA1 Message Date
Landon Abney
0ba8e2bda0
Add a docstring for terminate_session 2018-06-16 23:53:17 -07:00
Landon Abney
4ebfaf17bd
Always send a notification if an agent is specified
Whenever a stream is killed, send a notification for that stream if a 
notification agent has been specified. If no username is specified, 
simply list the session ID.
2018-06-16 23:53:15 -07:00
Landon Abney
2116082fd7
List --killMessage at the end
Although argparse should be smart enough to handle this in any order, 
it's generally easier for us poor humans to read the arguments if the 
unstructured one is the last argument. Re-order the listing to make this 
clearer.
2018-06-16 23:53:12 -07:00
Landon Abney
342284173b
Use the same session for all requests
Use the Session created at the start of the script for all requests, 
instead of creating a new one for some of them (which doesn't inherit 
the settings set on it at the start).
2018-06-16 23:51:53 -07:00
Landon Abney
7b0cc2d2a9
Disable InsecureRequestWarning if SSL verify is False
If checking of HTTPS validity is disable, turn off the warning that it 
has been disabled since we have done so explicitly.
2018-06-16 23:51:51 -07:00
Landon Abney
00f4bf26a9
Rename get_user_activity
This function was actually getting _just_ the session IDs, not the whole 
session data.
2018-06-16 23:51:48 -07:00
Landon Abney
e56d23b12d
Refactor get_activity into two functions
Create a new function get_user_activity that returns the same data 
get_activity originally did and use that in main. get_activity now 
actually follows the name and gets all activity on the server.
2018-06-16 23:51:46 -07:00
Landon Abney
f7c555caa7
Add docbloc for send_notification 2018-06-16 23:51:43 -07:00
Landon Abney
36c2ddaaf6
Fix PEP8 issues
Some minor refactoring to follow PEP8 guidlines.
2018-06-16 23:51:32 -07:00
Blacktwin
e70787827d updated arguments comments.
moved examples.txt to readme.md
removed examples.txt
2018-06-15 08:32:28 -04:00
Blacktwin
64f008d1eb Corrected killMessage processing.
updated argument instruction.
2018-06-14 08:56:20 -04:00
Blacktwin
776fe7334b show --jbop choices. 2018-06-14 00:47:21 -04:00
Too Much IO
33c29f4bcc
Format syntax error [ instead of { 2018-06-14 09:04:33 +10:00
Blacktwin
c93972f46c overide/fallback clean up. 2018-06-12 15:51:08 -04:00
Blacktwin
9f97b5218e Added ablility to kill multiple streams from one user.
Allowing for elimination of other killstream scripts.
Added notification
2018-06-11 15:57:29 -04:00
Blacktwin
e4b49d3297 fix message and ssl 2018-05-09 14:43:02 -04:00
Blacktwin
35382673a6 move message to arg. another example 2018-05-05 08:15:35 -04:00
Blacktwin
4f67c4dd55 updated 2018-03-29 09:53:34 -04:00