We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7fd5a7 commit c76fb37Copy full SHA for c76fb37
latest-wired.py
@@ -79,8 +79,16 @@ def challenge(svr,ran):
79
return data[4:8]
80
81
def md5sum(s):
82
- m = md5.digest(s)
83
- return m
+ # m = md5.digest(s)
+ 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
92
93
def dump(n):
94
s = '%x' % n
md5
@@ -0,0 +1,3 @@
1
+#!/bin/sh
2
+
3
+md5sum /tmp/drcom_var | cut -d ' ' -f 1 > /tmp/drcom_md5
0 commit comments