Skip to content

Instantly share code, notes, and snippets.

@BigNerd95
Last active June 29, 2018 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BigNerd95/53d640a4c6718cde59b2dc4ec0b60eb5 to your computer and use it in GitHub Desktop.
Save BigNerd95/53d640a4c6718cde59b2dc4ec0b60eb5 to your computer and use it in GitHub Desktop.
using System;
using System.Reflection;
using System.IO;
namespace StKeyGen
{
class Program
{
static void Main(string[] args)
{
Type keygen = null;
try
{
keygen = Assembly.LoadFile(Directory.GetCurrentDirectory() + @"\St.exe").GetType("St.KeyGeneratorLib");
}
catch {
Console.WriteLine("Error!");
Console.ReadLine();
Environment.Exit(1);
}
if (keygen != null)
{
String pid = (String)keygen.GetMethod("GeneraIDProdotto").Invoke(null, null);
String mod = (String)keygen.GetMethod("modificaIDProdotto").Invoke(null, new object[] { pid });
String reg = (String)keygen.GetMethod("GeneraIDRegistrazione").Invoke(null, new object[] { mod });
Console.WriteLine(reg);
}
else {
Console.WriteLine("Error!");
}
Console.ReadLine();
}
}
}
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\VB and VBA Program Settings\Application\S]
"AR"="10000"
"IsFiSt"="False"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment