Last active
June 29, 2018 16:35
-
-
Save BigNerd95/53d640a4c6718cde59b2dc4ec0b60eb5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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