Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7ecbfcd3e6 | ||
|
|
a8125f9062 | ||
|
|
b82576d49e |
11
sio2/cyber/10-WireGuard/wg0.conf
Normal file
11
sio2/cyber/10-WireGuard/wg0.conf
Normal file
@@ -0,0 +1,11 @@
|
||||
[Interface]
|
||||
PrivateKey = GIOgHwIs/0uNvwn/iAX5dP5PGjDY7+OpM/c50X6ry2k=
|
||||
Address = 10.0.2.2/32
|
||||
#DNS = 192.168.1.254
|
||||
|
||||
[Peer]
|
||||
PublicKey = COah6qTtwZo4h9GhtBHBhySOwmH4g78sI49NLGmze3M=
|
||||
#AllowedIPs = 10.0.0.0/8, 192.168.1.0/24
|
||||
AllowedIPs = 0.0.0.0/0
|
||||
Endpoint = 192.168.0.40:51820
|
||||
PersistentKeepalive = 20
|
||||
13
sio2/sisr/20-python/cptmot.py
Executable file
13
sio2/sisr/20-python/cptmot.py
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/python3
|
||||
phrase = input('Phrase : ')
|
||||
tabmot = phrase.split(' ')
|
||||
cptmot = {}
|
||||
|
||||
for mot in tabmot :
|
||||
if mot in cptmot :
|
||||
cptmot[mot] = cptmot[mot] + 1
|
||||
else :
|
||||
cptmot[mot] = 1
|
||||
|
||||
for key in cptmot.keys() :
|
||||
print (key, " ", cptmot[key])
|
||||
10
sio2/sisr/20-python/log.py
Executable file
10
sio2/sisr/20-python/log.py
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/usr/python3
|
||||
import re
|
||||
import sys
|
||||
group = {}
|
||||
regexp = '^(\S+) (\S+) (\S+) \[([^]]+)\] "(\w+) (\S+).*" (\d+) (\S+)'
|
||||
for line in sys.stdin:
|
||||
line = line.rstrip ( )
|
||||
match = re.match (regexp, line)
|
||||
if match:
|
||||
print (match.group(1)," ",match.group(8))
|
||||
Reference in New Issue
Block a user