Skip to content
This repository was archived by the owner on Aug 7, 2020. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ikeclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

import socket,OpenSSL,sys,struct
import os
try:
import udp
except:
Expand Down Expand Up @@ -43,7 +44,7 @@ def __init__(self,debug):
def secRandom(self, bytes):
#Creates selected number of random bytes
#Provide the number of bytes required as input, method will return raw bytes
randomBytes = OpenSSL.rand.bytes(bytes)
randomBytes = os.urandom(bytes)
return randomBytes

def payBuild(self, strPayload, lenLen, *arg):
Expand Down