Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
p0dalirius committed Oct 4, 2023
2 parents 16335a0 + 24c9057 commit 1feb53a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion coercer/network/DCERPCSession.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def connect_ncacn_ip_tcp(self, target, port, targetIp=None, debug=False):
self.session.set_auth_level(RPC_C_AUTHN_LEVEL_PKT_PRIVACY)

if debug:
print(" [>] Connecting to %s ... " % ncan_target, end="")
print(" [>] Connecting to %s ... " % ncacn_ip_tcp, end="")
sys.stdout.flush()
try:
self.session.connect()
Expand Down
3 changes: 2 additions & 1 deletion coercer/network/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import socket
import sys
import struct
from platform import uname


def get_ip_address_of_interface(ifname):
Expand All @@ -16,7 +17,7 @@ def get_ip_address_of_interface(ifname):
if sys.platform == "win32":
return None

elif sys.platform == "linux":
elif sys.platform == "linux" and "microsoft" not in uname().release.lower() and "microsoft" not in uname().version.lower():
import fcntl
if type(ifname) == str:
ifname = bytes(ifname, "utf-8")
Expand Down

0 comments on commit 1feb53a

Please sign in to comment.