From b2925728dc3cbd40300a4517ae8bf8035d3b6663 Mon Sep 17 00:00:00 2001 From: thomas grothe Date: Thu, 30 Nov 2023 12:19:16 -0600 Subject: should get back to working on the ssh monitor --- sshd-secmon.sh | 2 ++ 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, + + diff --git a/wow2.py b/wow2.py index cd5178e..802b9c9 100755 --- a/wow2.py +++ b/wow2.py @@ -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 -- cgit v1.2.3