Skip to content

Commit c76fb37

Browse files
committed
bump v0.4
1 parent b7fd5a7 commit c76fb37

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

latest-wired.py

+10-2
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,16 @@ def challenge(svr,ran):
7979
return data[4:8]
8080

8181
def md5sum(s):
82-
m = md5.digest(s)
83-
return m
82+
# m = md5.digest(s)
83+
var = s.decode('utf-8')
84+
with open('/tmp/drcom_var', 'wb') as f:
85+
f.write(var)
86+
os.system('./md5')
87+
with open('/tmp/drcom_md5', 'r') as f:
88+
foo = f.read().strip()
89+
bar = binascii.unhexlify(foo)
90+
# print (bar)
91+
return bar
8492

8593
def dump(n):
8694
s = '%x' % n

md5

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
md5sum /tmp/drcom_var | cut -d ' ' -f 1 > /tmp/drcom_md5

0 commit comments

Comments
 (0)