Skip to content

Commit

Permalink
Fix typos (#287)
Browse files Browse the repository at this point in the history
* fix typos

* Update docs/services/windows.rst

* Update opencanary/test/module_test.py
  • Loading branch information
stavares843 authored Aug 3, 2023
1 parent dfaa2df commit 8bf829d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion opencanary/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""
Expand Down
2 changes: 1 addition & 1 deletion opencanary/modules/example1.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:]
Expand Down
4 changes: 2 additions & 2 deletions opencanary/modules/mssql.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion opencanary/modules/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down
2 changes: 1 addition & 1 deletion opencanary/test/module_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 status code.
self.assertEqual(request.status_code, 200)
self.assertIn('Synology DiskStation', request.text)
last_log = get_last_log()
Expand Down

0 comments on commit 8bf829d

Please sign in to comment.