diff --git a/docs/services/windows.rst b/docs/services/windows.rst index 8c7454a..5e570a0 100644 --- a/docs/services/windows.rst +++ b/docs/services/windows.rst @@ -46,7 +46,7 @@ Below is an example of an `smb.conf` for a Samba installation, path = /home/demo/share guest ok = yes read only = yes - browseable = yes + browsable = yes Please note that there are some details in the above config that you would want to change, diff --git a/opencanary/config.py b/opencanary/config.py index 4cac737..8c54ca5 100644 --- a/opencanary/config.py +++ b/opencanary/config.py @@ -131,7 +131,7 @@ def setVal(self, key, val): def valid(self, key, val): """ - Test an the validity of an invidual setting + Test an the validity of an individual setting Raise config error message on failure. TODO: delegate module tests to appropriate module """ diff --git a/opencanary/modules/example1.py b/opencanary/modules/example1.py index 485634d..8680f68 100644 --- a/opencanary/modules/example1.py +++ b/opencanary/modules/example1.py @@ -43,7 +43,7 @@ def dataReceived(self, data): self.buffer += data print("Received data: ", repr(data)) - # Discard inital telnet client control chars + # Discard initial telnet client control chars i = self.buffer.find("\x01") if i >= 0: self.buffer = self.buffer[i+1:] diff --git a/opencanary/modules/mssql.py b/opencanary/modules/mssql.py index 84ab4d2..680da22 100644 --- a/opencanary/modules/mssql.py +++ b/opencanary/modules/mssql.py @@ -287,7 +287,7 @@ def process(self,tds): errormsg = "Login failed for user %s." % username payload = self.buildError(errormsg, servername) - # extra data observered on the wire + # extra data observed on the wire payload += b"\xfd\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" rtds = TDSPacket( @@ -321,7 +321,7 @@ def process(self,tds): self.logAuth(username, None, loginData, logtype) payload = self.buildError("Login failed for user %s\\%s." % (domain,username) , hostname) - # extra data observered on the wire + # extra data observed on the wire payload += b"\xfd\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" rtds = TDSPacket( diff --git a/opencanary/modules/ssh.py b/opencanary/modules/ssh.py index 8e03375..c47dca0 100644 --- a/opencanary/modules/ssh.py +++ b/opencanary/modules/ssh.py @@ -248,7 +248,7 @@ def sendDisconnect(self, reason, desc): @param reason: the reason for the disconnect. Should be one of the DISCONNECT_* values. @type reason: C{int} - @param desc: a descrption of the reason for the disconnection. + @param desc: a description of the reason for the disconnection. @type desc: C{str} """ if not 'bad packet length' in desc.decode(): diff --git a/opencanary/test/module_test.py b/opencanary/test/module_test.py index 70c7b39..e26e1c7 100644 --- a/opencanary/test/module_test.py +++ b/opencanary/test/module_test.py @@ -123,7 +123,7 @@ def test_log_in_to_http_with_basic_auth(self): """ request = requests.post('http://localhost/', auth=('user', 'pass')) # Currently the web server returns 200, but in future it should return - # a 403 statuse code. + # a 403 statutes code. self.assertEqual(request.status_code, 200) self.assertIn('Synology DiskStation', request.text) last_log = get_last_log()