Skip to content

Commit

Permalink
Merge pull request #24 from leviolet/master
Browse files Browse the repository at this point in the history
修改newclinet-py3.py,适配linux(WSL)
  • Loading branch information
mchome authored Sep 1, 2020
2 parents 5bab512 + 6d1a90d commit 2ba09ce
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
[submodule "dr-jlu-win32"]
path = dr-jlu-win32
url = https://github.com/ImFengLala/dr-jlu-win32
[submodule "jlu-drcom-csharp"]
path = jlu-drcom-csharp

[submodule "jlu-drcom-dotnet"]
path = jlu-drcom-dotnet
url = https://github.com/leviolet/DrcomDotnet
1 change: 0 additions & 1 deletion jlu-drcom-csharp
Submodule jlu-drcom-csharp deleted from 6100d7
1 change: 1 addition & 0 deletions jlu-drcom-dotnet
Submodule jlu-drcom-dotnet added at 6466fe
6 changes: 4 additions & 2 deletions jlu-drcom-py3/newclinet-py3.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python
# coding: utf-8
# license: AGPL-V3
# tested: Windows 10, WSL 1

import re
import socket
Expand Down Expand Up @@ -87,7 +88,7 @@ def log(*args, **kwargs):
print(*args, **kwargs)
if DEBUG and platform.uname().system != 'Windows':
with open(LOG_PATH,'a') as f:
f.write(s + '\n')
f.write(str(s) + '\n')


def challenge(svr, ran):
Expand Down Expand Up @@ -370,7 +371,8 @@ def daemon():
def main():
if not IS_TEST:
daemon()
execfile(CONF, globals())
with open(CONF) as f:
exec(f.read(), globals())
log("auth svr:", server, "\nusername:", username ,
"\npassword:", password, "\nmac:", str(hex(mac)))
log(bind_ip)
Expand Down

0 comments on commit 2ba09ce

Please sign in to comment.