@@ -124,6 +124,7 @@ class WebSocketException(Exception):
124124from lib .request .methodrequest import MethodRequest
125125from thirdparty import six
126126from thirdparty .odict import OrderedDict
127+ from thirdparty .six import unichr as _unichr
127128from thirdparty .six .moves import http_client as _http_client
128129from thirdparty .six .moves import urllib as _urllib
129130from thirdparty .socks .socks import ProxyError
@@ -245,7 +246,8 @@ def getPage(**kwargs):
245246 elif conf .dummy or conf .murphyRate and randomInt () % conf .murphyRate == 0 :
246247 if conf .murphyRate :
247248 time .sleep (randomInt () % (MAX_MURPHY_SLEEP_TIME + 1 ))
248- return getUnicode (randomStr (int (randomInt ()), alphabet = [chr (_ ) for _ in xrange (256 )]), {}, int (randomInt ())), None , None if not conf .murphyRate else randomInt (3 )
249+
250+ return randomStr (int (randomInt ()), alphabet = [_unichr (_ ) for _ in xrange (256 )]), None , None if not conf .murphyRate else randomInt (3 )
249251
250252 threadData = getCurrentThreadData ()
251253 with kb .locks .request :
@@ -1043,7 +1045,7 @@ def _adjustParameter(paramString, parameter, newValue):
10431045
10441046 match = re .search (r"String\.fromCharCode\(([\d+, ]+)\)" , token .value )
10451047 if match :
1046- token .value = "" .join (chr (int (_ )) for _ in match .group (1 ).replace (' ' , "" ).split (',' ))
1048+ token .value = "" .join (_unichr (int (_ )) for _ in match .group (1 ).replace (' ' , "" ).split (',' ))
10471049
10481050 if not token :
10491051 if conf .csrfUrl and conf .csrfToken and conf .csrfUrl != conf .url and code == _http_client .OK :
0 commit comments