ikeforce icon indicating copy to clipboard operation
ikeforce copied to clipboard

Updated ikeclient.py

Open routeback opened this issue 6 years ago • 2 comments

Proposed fix for error: AttributeError: 'module' object has no attribute 'rand'

./ikeforce.py <IP> -e -w wordlists/groupnames.dic -s 1 [+]Program started in Enumeration Mode [+]Checking for possible enumeration techniques Traceback (most recent call last): File "./ikeforce.py", line 379, in iCookie = ikeneg.secRandom(8).encode('hex') File "/root/scripts/ikeforce/ikeclient.py", line 46, in secRandom randomBytes = OpenSSL.rand.bytes(bytes) AttributeError: 'module' object has no attribute 'rand'

routeback avatar Mar 13 '18 22:03 routeback

as stated here, OpenSSL.rand() is obsolete and should be replaced by os.urandom(). This should be merged

DidierA avatar Dec 19 '18 14:12 DidierA

Just came across this problem and implemented the same fix independently so can confirm that it is the right one and works.

digininja avatar Oct 17 '19 09:10 digininja