Skip to content

Commit

Permalink
TODO comments removed, amended
Browse files Browse the repository at this point in the history
  • Loading branch information
Balazs Bucsay committed Jun 3, 2018
1 parent 540dc9f commit 80c3d03
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
6 changes: 1 addition & 5 deletions modules/ICMP.py
Expand Up @@ -43,10 +43,6 @@
from support.icmp_proto import ICMP_Proto
from support.icmp_proto import ICMP_Client

#TODO: reverse check from the server
# if the client does not answer, the packets does not go thru
# seq must be modified.

class ICMP(Stateless_module.Stateless_module):

module_name = "ICMP"
Expand Down Expand Up @@ -228,7 +224,7 @@ def do_check(self):
# start talking to the server
# do authentication or encryption first
def do_hello(self):
# TODO: maybe change this later to push some more info, not only the
# TODO: maybe change this later to push some more info, not just the
# private IP
message = socket.inet_aton(self.config.get("Global", "clientip"))
self.send(common.CONTROL_CHANNEL_BYTE, common.CONTROL_INIT+message,
Expand Down
3 changes: 1 addition & 2 deletions modules/Stateful_module.py
Expand Up @@ -143,7 +143,6 @@ def packet_reader_default(self, tunnel, first_read, serverorclient):
packet = os.read(tunnel, 4096)
return packet

# TODO: placeholder function to transform packets back and forth.
# encryption, encodings anything that should be done on the packet and
# should be easily variable based on the config
def transform(self, details, packet, encrypt):
Expand Down Expand Up @@ -338,7 +337,7 @@ def do_check(self):
# start talking to the server
# do authentication or encryption first
def do_hello(self):
# TODO: maybe change this later to push some more info, not only the
# TODO: maybe change this later to push some more info, not just the
# private IP
message = socket.inet_aton(self.config.get("Global", "clientip"))
self.send(common.CONTROL_CHANNEL_BYTE, common.CONTROL_INIT+message, None)
Expand Down
2 changes: 0 additions & 2 deletions modules/TCP_generic.py
Expand Up @@ -101,8 +101,6 @@ def recv(self):
messages = []
message = self.partial_message + self.comms_socket.recv(4096)
if len(message) == len(self.partial_message):
# TODO: check other module if they have this
# 0 length read, socket died
self._stop = True

if len(message) < 2:
Expand Down
2 changes: 1 addition & 1 deletion modules/UDP_generic.py
Expand Up @@ -65,7 +65,7 @@ def do_check(self):
# start talking to the server
# do authentication or encryption first
def do_hello(self):
# TODO: maybe change this later to push some more info, not only the
# TODO: maybe change this later to push some more info, not just the
# private IP
message = socket.inet_aton(self.config.get("Global", "clientip"))
self.send(common.CONTROL_CHANNEL_BYTE, common.CONTROL_INIT+message, (self.server_tuple, None))
Expand Down

0 comments on commit 80c3d03

Please sign in to comment.