Skip to content

Instantly share code, notes, and snippets.

@HirbodBehnam
Created April 8, 2025 08:00
Show Gist options
  • Save HirbodBehnam/568b3c68d07b429494eda53621ef3b98 to your computer and use it in GitHub Desktop.
Save HirbodBehnam/568b3c68d07b429494eda53621ef3b98 to your computer and use it in GitHub Desktop.
Activate Daneshmand software course series with your legit serial key
def find_activation_code(param1, param2):
# Check if all parameters have the expected length
if len(param1) != 16 or len(param2) != 16:
return False
loc4 = ""
loc7 = "0000"
# Process in chunks of 4 characters
for loc8 in range(0, 16, 4):
# Check if integer values are not zero
if int(param1[loc8:loc8+4]) == 0 or int(param2[12-loc8:16-loc8]) == 0:
return False
# Different calculation for each chunk
if loc8 == 0:
loc5 = abs(int(param1[loc8:loc8+4]) * 2 - (10000 - int(param2[12-loc8:16-loc8])))
loc6 = str(loc5)
loc6 = loc6[0:4] if len(loc6) >= 4 else loc7[0:4-len(loc6)] + loc6
loc4 += loc6
elif loc8 == 4:
loc5 = abs(10000 - int(param1[loc8:loc8+4]) + int(param2[12-loc8:16-loc8]) * 2)
loc6 = str(loc5)
loc6 = loc6[0:4] if len(loc6) >= 4 else loc7[0:4-len(loc6)] + loc6
loc4 += loc6
elif loc8 == 8:
loc5 = abs(int(param1[loc8:loc8+4]) / 3 * (int(param2[12-loc8:16-loc8]) ** 2))
loc6 = str(loc5)
loc6 = loc6[0:4] if len(loc6) >= 4 else loc7[0:4-len(loc6)] + loc6
loc4 += loc6
elif loc8 == 12:
loc5 = abs((int(param1[loc8:loc8+4]) ** 3) / (10000 - int(param2[12-loc8:16-loc8])))
loc6 = str(loc5)
loc6 = loc6[0:4] if len(loc6) >= 4 else loc7[0:4-len(loc6)] + loc6
loc4 += loc6
return loc4
installID = input("Enter your install ID without any dashes: ")
productID = installID[1::2][::-1]
print("Your product key is ", productID)
systemID = installID[::2]
print("Your system ID is ", systemID)
activationID = find_activation_code(systemID, productID)
print("Your activation ID is", activationID)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment