security changes
This commit is contained in:
parent
5fd2477e2a
commit
43decc6a7a
5 changed files with 24 additions and 14 deletions
8
README.MD
Normal file
8
README.MD
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
[Bild 1]: img.png "Optionaler Titel"
|
||||
|
||||
Dieses Script führt auf dem Host den Befehl rclone aus, um ein entferntes Volumen mit einem Verzeichnis auf dem Host
|
||||
zu syncronisieren (copy).
|
||||
Nach erfolgreichen Kopieren wird eine Mitteilung per Telegram versendet, welche folgende Informationen
|
||||
beinhaltet:
|
||||
|
||||
![Alt-Text][Bild 1]
|
||||
BIN
img.png
Normal file
BIN
img.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 74 KiB |
|
|
@ -16,7 +16,7 @@ result_msg = []
|
|||
|
||||
start = datetime.datetime.now()
|
||||
|
||||
telegram_chat_id = "322673713"
|
||||
telegram_chat_id = "322673713"rr
|
||||
telegram_token ='NjgyODY5NzgwOTpBQUhzZG5vbTUzU1FHYVlkZ1FCVXJ4ckQyY01rd3VydXBLSQ=='
|
||||
|
||||
def parse_log(logfile, source, target):
|
||||
|
|
|
|||
1
read.me
1
read.me
|
|
@ -1 +0,0 @@
|
|||
ein Test...
|
||||
27
test.py
27
test.py
|
|
@ -1,14 +1,17 @@
|
|||
import datetime
|
||||
from time import sleep
|
||||
import base64
|
||||
|
||||
start = datetime.datetime.now()
|
||||
#sleep(5)
|
||||
end = datetime.datetime.now()
|
||||
duration = end - start
|
||||
sample_string = "6828697809:AAHsdnom53SQGaYdgQBUrxrD2cMkwurupKI"
|
||||
sample_string_bytes = sample_string.encode("ascii")
|
||||
|
||||
if duration.total_seconds() >6:
|
||||
print('Ein Ereigniss')
|
||||
else:
|
||||
print('kein Ereigniss')
|
||||
print(duration.total_seconds())
|
||||
print(divmod(65, 60)[0], divmod(65, 60)[1])
|
||||
base64_bytes = base64.b64encode(sample_string_bytes)
|
||||
base64_string = base64_bytes.decode("ascii")
|
||||
|
||||
print(f"Encoded string: {base64_string}")
|
||||
|
||||
#base64_string =base64_string
|
||||
base64_bytes = base64_string.encode("ascii")
|
||||
|
||||
sample_string_bytes = base64.b64decode(base64_bytes)
|
||||
sample_string = sample_string_bytes.decode("ascii")
|
||||
|
||||
print(f"Decoded string: {sample_string}")
|
||||
Loading…
Add table
Add a link
Reference in a new issue