Skip to content

Instantly share code, notes, and snippets.

@rdymc
rdymc / CiscoIOUKeygen.py
Created March 14, 2022 15:24
CiscoIOUKeygen
#! /usr/bin/python
print("*********************************************************************")
print("Cisco IOU License Generator - Kal 2011, python port of 2006 C version")
print("Modified to work with python3 by c_d 2014")
import os
import socket
import hashlib
import struct
# get the host id and host name to calculate the hostkey