diff options
| author | thomas grothe <grothe.tr@gmail.com> | 2023-11-30 12:19:16 -0600 |
|---|---|---|
| committer | thomas grothe <grothe.tr@gmail.com> | 2023-11-30 12:19:16 -0600 |
| commit | b2925728dc3cbd40300a4517ae8bf8035d3b6663 (patch) | |
| tree | dec0f22c4494ef9cb182ad683e30ff9e08e03b28 | |
| parent | 66a95f2294c4965850b7bc70dfa497f65ebfab7f (diff) | |
should get back to working on the ssh monitor
| -rw-r--r-- | sshd-secmon.sh | 2 | ||||
| -rwxr-xr-x | wow2.py | 12 |
2 files changed, 4 insertions, 10 deletions
diff --git a/sshd-secmon.sh b/sshd-secmon.sh index 85d142c..c671e14 100644 --- a/sshd-secmon.sh +++ b/sshd-secmon.sh @@ -1,2 +1,4 @@ #!/bin/bash #SSH security monitor. logs all successful ssh log ins, repeated failed attempts, attempts at root, + + @@ -43,7 +43,7 @@ def attemptReadSampleFile(filepath): paths=['/home/thomas/doc/j/', '/home/thomas/_poetry', '/home/thomas/doc/_journal_2019'] #the paths to scan recursively for files from which to grab text samplefiles=[] #the paths of the individual files from which we want to grab text -v=True #verbose +v=False #verbose tStart = time.time() for p in paths: if v: print('path {}'.format(p)) @@ -74,12 +74,4 @@ lines = t.splitlines() li = random.randint(0, len(t)) #line index #ci = random.randint(0, len(t)) #character index res = '\n'.join(lines[li: li+7]) -print(res) - - -#for f in samplefiles: -# print(f) - - - - +print(res)
\ No newline at end of file |
