From 934295b60cd71fe64e26e11578ab3ce41402ffc0 Mon Sep 17 00:00:00 2001 From: rushilwiz Date: Tue, 16 Jun 2020 23:59:07 -0400 Subject: [PATCH] a --- .1.sstern1profile | 1 - .2023rumaretiprofile | 1 - .rushilwizprofile | 1 - .sstern1profile | 1 - bgservice.bgservice.html | 187 ------------------ bgservice.checker.html | 44 ----- bgservice.html | 23 --- rushilwiz | 1 - sstern1/2023clas8_sstern1/README.md | 0 sstern1/Students/wow4_sstern1/2023rumareti | 1 - sstern1/Students/wow4_sstern1/rushilwiz | 1 - sstern1/wow4_sstern1/Hackathon/fuck.txt | 0 sstern1/wow4_sstern1/Hailstone/Driver.java | 0 .../wow4_sstern1/Hailstone/instructions.txt | 1 - sstern1/wow4_sstern1/README.md | 0 15 files changed, 262 deletions(-) delete mode 100644 .1.sstern1profile delete mode 100644 .2023rumaretiprofile delete mode 100644 .rushilwizprofile delete mode 100644 .sstern1profile delete mode 100644 bgservice.bgservice.html delete mode 100644 bgservice.checker.html delete mode 100644 bgservice.html delete mode 160000 rushilwiz delete mode 100644 sstern1/2023clas8_sstern1/README.md delete mode 160000 sstern1/Students/wow4_sstern1/2023rumareti delete mode 160000 sstern1/Students/wow4_sstern1/rushilwiz delete mode 100644 sstern1/wow4_sstern1/Hackathon/fuck.txt delete mode 100644 sstern1/wow4_sstern1/Hailstone/Driver.java delete mode 100644 sstern1/wow4_sstern1/Hailstone/instructions.txt delete mode 100644 sstern1/wow4_sstern1/README.md diff --git a/.1.sstern1profile b/.1.sstern1profile deleted file mode 100644 index b141284..0000000 --- a/.1.sstern1profile +++ /dev/null @@ -1 +0,0 @@ -{"username": "eharris1", "is_student": false, "password": "hackgroup1"} \ No newline at end of file diff --git a/.2023rumaretiprofile b/.2023rumaretiprofile deleted file mode 100644 index 6df406f..0000000 --- a/.2023rumaretiprofile +++ /dev/null @@ -1 +0,0 @@ -{"username": "2022rkhondak", "grade": 9, "is_student": true, "password": "hackgroup1"} \ No newline at end of file diff --git a/.rushilwizprofile b/.rushilwizprofile deleted file mode 100644 index 303651c..0000000 --- a/.rushilwizprofile +++ /dev/null @@ -1 +0,0 @@ -{"username": "rushilwiz", "grade": 69, "is_student": true, "password": "a"} \ No newline at end of file diff --git a/.sstern1profile b/.sstern1profile deleted file mode 100644 index a51e01c..0000000 --- a/.sstern1profile +++ /dev/null @@ -1 +0,0 @@ -{"username": "sstern1", "is_student": false, "password": "Riya2011"} \ No newline at end of file diff --git a/bgservice.bgservice.html b/bgservice.bgservice.html deleted file mode 100644 index e422f56..0000000 --- a/bgservice.bgservice.html +++ /dev/null @@ -1,187 +0,0 @@ - -Python: module bgservice.bgservice - - - - - -
 
- 
bgservice.bgservice
index
/home/nkenschaft/Sysadmin/skoolos/bgservice/bgservice.py
-

A simple background service to log events in a directory,
-check for git commands in bash/zsh history,
-and check for non-whitelisted files in the watched directory.

-

- - - - - -
 
-Modules
       
bgservice.checker
-os
-
pyinotify
-sys
-
time
-

- - - - - -
 
-Classes
       
-
pyinotify.ProcessEvent(pyinotify._ProcessEvent) -
-
-
EventHandler -
-
-
-

- - - - - - - -
 
-class EventHandler(pyinotify.ProcessEvent)
   EventHandler(pevent=None, **kargs)

-Custom event handler for watching a SkoolOS work directory
 
 
Method resolution order:
-
EventHandler
-
pyinotify.ProcessEvent
-
pyinotify._ProcessEvent
-
builtins.object
-
-
-Methods defined here:
-
process_IN_CLOSE_WRITE(self, event)
Generates an output to record for IN_CLOSE_WRITE events
-param event: event automatically passed to function
-return: none
- -
process_IN_CREATE(self, event)
Generates an output to record for IN_CREATE events
-param event: event automatically passed to function
-return: none
- -
process_IN_DELETE(self, event)
Generates an output to record for IN_DELETE events
-param event: event automatically passed to function
-return: none
- -
process_IN_MOVED_FROM(self, event)
Generates an output to record for IN_MOVED_FROM events
-param event: event automatically passed to function
-return: none
- -
process_IN_MOVED_TO(self, event)
Generates an output to record for IN_MOVED_TO events
-param event: event automatically passed to function
-return: none
- -
process_IN_OPEN(self, event)
Generates an output to record for IN_OPEN events
-param event: event automatically passed to function
-return: none
- -
-Methods inherited from pyinotify.ProcessEvent:
-
__call__(self, event)
To behave like a functor the object must be callable.
-This method is a dispatch method. Its lookup order is:
-  1. process_MASKNAME method
-  2. process_FAMILY_NAME method
-  3. otherwise calls process_default

-@param event: Event to be processed.
-@type event: Event object
-@return: By convention when used from the ProcessEvent class:
-         - Returning False or None (default value) means keep on
-         executing next chained functors (see chain.py example).
-         - Returning True instead means do not execute next
-           processing functions.
-@rtype: bool
-@raise ProcessEventError: Event object undispatchable,
-                          unknown event.
- -
__init__(self, pevent=None, **kargs)
Enable chaining of ProcessEvent instances.

-@param pevent: Optional callable object, will be called on event
-               processing (before self).
-@type pevent: callable
-@param kargs: This constructor is implemented as a template method
-              delegating its optionals keyworded arguments to the
-              method my_init().
-@type kargs: dict
- -
my_init(self, **kargs)
This method is called from ProcessEvent.__init__(). This method is
-empty here and must be redefined to be useful. In effect, if you
-need to specifically initialize your subclass' instance then you
-just have to override this method in your subclass. Then all the
-keyworded arguments passed to ProcessEvent.__init__() will be
-transmitted as parameters to this method. Beware you MUST pass
-keyword arguments though.

-@param kargs: optional delegated arguments from __init__().
-@type kargs: dict
- -
nested_pevent(self)
- -
process_IN_Q_OVERFLOW(self, event)
By default this method only reports warning messages, you can overredide
-it by subclassing ProcessEvent and implement your own
-process_IN_Q_OVERFLOW method. The actions you can take on receiving this
-event is either to update the variable max_queued_events in order to
-handle more simultaneous events or to modify your code in order to
-accomplish a better filtering diminishing the number of raised events.
-Because this method is defined, IN_Q_OVERFLOW will never get
-transmitted as arguments to process_default calls.

-@param event: IN_Q_OVERFLOW event.
-@type event: dict
- -
process_default(self, event)
Default processing event method. By default does nothing. Subclass
-ProcessEvent and redefine this method in order to modify its behavior.

-@param event: Event to be processed. Can be of any type of events but
-              IN_Q_OVERFLOW events (see method process_IN_Q_OVERFLOW).
-@type event: Event instance
- -
-Data and other attributes inherited from pyinotify.ProcessEvent:
-
pevent = None
- -
-Methods inherited from pyinotify._ProcessEvent:
-
__repr__(self)
Return repr(self).
- -
-Data descriptors inherited from pyinotify._ProcessEvent:
-
__dict__
-
dictionary for instance variables (if defined)
-
-
__weakref__
-
list of weak references to the object (if defined)
-
-

- - - - - -
 
-Functions
       
stop_watching()
Stops the watch started by watch_dir()
-return: none
-
watch_dir(watched_dir='/home/nkenschaft', log_dir='SkoolOS/logs')
Watches the specified directory for changes and outputs it in
-human readable format to a log file in the specified log directory.
-param watched_dir: directory to watch for changes
-param log_dir: directory to store log files
-return: none
-

- - - - - -
 
-Data
       DIR = None
-NOTIFIER = None
-START_TIME = None
-STDOUT = <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>
- \ No newline at end of file diff --git a/bgservice.checker.html b/bgservice.checker.html deleted file mode 100644 index 1fa7c36..0000000 --- a/bgservice.checker.html +++ /dev/null @@ -1,44 +0,0 @@ - -Python: module bgservice.checker - - - - - -
 
- 
bgservice.checker
index
/home/nkenschaft/Sysadmin/skoolos/bgservice/checker.py
-

-

- - - - - -
 
-Modules
       
os
-

- - - - - -
 
-Functions
       
file_check(dir_)
Checks specified dir_ for non-whitelisted files using verify_file()
-param dir_: directory to check
-return: list of suspicious files
-
shell_check()
Check .bash_history and .histfile for git commands that could interfere with SkoolOS
-return: results of the check
-
verify_file(file_)
Check if the file name has an extension in the list of whitelisted file exentsions
-param file_: path to file
-return: whether or not the file's extension is whitelisted
-

- - - - - -
 
-Data
       file_whitelist = ['.doc', '.docx', '.odt', '.pdf', '.rtf', '.tex', '.txt', '.wpd', '.3g2', '.3gp', '.avi', '.flv', '.h264', '.m4v', '.mkv', '.mov', '.mp4', '.mpg', '.mpeg', '.rm', ...]
- \ No newline at end of file diff --git a/bgservice.html b/bgservice.html deleted file mode 100644 index 98a850e..0000000 --- a/bgservice.html +++ /dev/null @@ -1,23 +0,0 @@ - -Python: package bgservice - - - - - -
 
- 
bgservice
index
/home/nkenschaft/Sysadmin/skoolos/bgservice/__init__.py
-

-

- - - - - -
 
-Package Contents
       
bgservice
-
checker
-
- \ No newline at end of file diff --git a/rushilwiz b/rushilwiz deleted file mode 160000 index d9cbcc1..0000000 --- a/rushilwiz +++ /dev/null @@ -1 +0,0 @@ -Subproject commit d9cbcc1e6dd8907bf856f30b4565018e48934abf diff --git a/sstern1/2023clas8_sstern1/README.md b/sstern1/2023clas8_sstern1/README.md deleted file mode 100644 index e69de29..0000000 diff --git a/sstern1/Students/wow4_sstern1/2023rumareti b/sstern1/Students/wow4_sstern1/2023rumareti deleted file mode 160000 index ca356ef..0000000 --- a/sstern1/Students/wow4_sstern1/2023rumareti +++ /dev/null @@ -1 +0,0 @@ -Subproject commit ca356ef8532873bf52ec67a647fbb91a25ca1cb7 diff --git a/sstern1/Students/wow4_sstern1/rushilwiz b/sstern1/Students/wow4_sstern1/rushilwiz deleted file mode 160000 index 4df0d29..0000000 --- a/sstern1/Students/wow4_sstern1/rushilwiz +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 4df0d29276f82f25d75cd03e53ca5b754a10db1f diff --git a/sstern1/wow4_sstern1/Hackathon/fuck.txt b/sstern1/wow4_sstern1/Hackathon/fuck.txt deleted file mode 100644 index e69de29..0000000 diff --git a/sstern1/wow4_sstern1/Hailstone/Driver.java b/sstern1/wow4_sstern1/Hailstone/Driver.java deleted file mode 100644 index e69de29..0000000 diff --git a/sstern1/wow4_sstern1/Hailstone/instructions.txt b/sstern1/wow4_sstern1/Hailstone/instructions.txt deleted file mode 100644 index e62b53d..0000000 --- a/sstern1/wow4_sstern1/Hailstone/instructions.txt +++ /dev/null @@ -1 +0,0 @@ -its hailstone easy diff --git a/sstern1/wow4_sstern1/README.md b/sstern1/wow4_sstern1/README.md deleted file mode 100644 index e69de29..0000000