Browse Source

V 0.1

master
root 2 years ago
parent
commit
a9f2c846ae
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      server.py

+ 2
- 1
server.py View File

@@ -12,6 +12,7 @@ key="abcdefghijklmno" #(sur 16 carac. !)
enc = AES.new(key[:32])
fichier_zone = "/etc/bind/zones/db.debugo.fr.extra"
code = 'toto'
subdomain = "xxx"

def encrypt(clear):
temp = (str(clear) + (AES.block_size - len(str(clear)) % AES.block_size) * "\0")
@@ -46,7 +47,7 @@ class ClientThread(threading.Thread):
item[0] = "\t"+str(item[0]) # on rajoute la tabulation devant
#s = "\t"
line = s.join(item)+"\n" # on reforme la ligne
if "home" in item: # si un des items est le mot home
if subdomain in item: # si un des items est le mot home
# print item[3]
# print self.ip
if item[3] != self.ip : # Si IP differente

Loading…
Cancel
Save