2 Commits 46c24503dc ... 0a356c0c70

Auteur SHA1 Message Date
  Joshua 0a356c0c70 Merge branch 'develop' of https://git.tk.informatik.tu-darmstadt.de/leon.boeck/ID2T-toolkit-BotnetTraffic into develop il y a 6 ans
  Joshua a1b19af7f4 corrected code requirements of review process il y a 6 ans
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      code/ID2TLib/OldLibs/PortGenerator.py

+ 2 - 0
code/ID2TLib/OldLibs/PortGenerator.py

@@ -6,6 +6,8 @@ def gen_random_server_port(offset: int=2199):
     Generates a valid random first and last character for a bots hostname
     and computes a port from these two characters.
     The default offset is chosen from a Sality implementation in 2011
+    :param offest: default value, which is added to the two ASCII values
+    :return: sum of two ASCII characters and the default value
     """
     firstLetter = random.choice(string.ascii_letters);
     lastLetter = random.choice(string.ascii_letters + string.digits);