Guest User

Untitled

a guest
Dec 17th, 2021
1,122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 16.99 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
  3.   <title>Mathematica and SystemModeler Keygen</title>
  4.   <style>
  5.   table, th, td {
  6.     border: 1px solid black;
  7.     border-collapse: collapse;
  8.   }
  9.   th, td {
  10.   padding: 4px;
  11.   }
  12.   </style>
  13.   <script>
  14.     function f1(n, byte, c) { // inverse of f2: f1(f2(x, y, c), c, y, c) == x
  15.       for (var bitIndex = 0; bitIndex <= 7; bitIndex++) {
  16.        var bit = (byte >> bitIndex) & 1;
  17.         if (bit + ((n - bit) & ~1) == n) {
  18.          n = (n - bit) >> 1;
  19.         } else {
  20.           n = ((c - bit) ^ n) >> 1;
  21.         }
  22.       }
  23.       return n;
  24.     }
  25.    
  26.     /*function f2(n, byte, c) {
  27.       for (var bitIndex = 7; bitIndex >= 0; bitIndex--) {
  28.         var bit = (byte >> bitIndex) & 1;
  29.         var temp = (n << 1) + bit;
  30.        if (n & 0x8000) {
  31.          temp ^= c;
  32.        }
  33.        n = temp;
  34.      }
  35.      return n;
  36.    }*/
  37.    
  38.    function genPassword(str,hash) {//0x42DD; // Mathematica 11.0.1: Change to 0x25DB  
  39.      for (var byteIndex = str.length - 1; byteIndex >= 0; byteIndex--) {
  40.         hash = f1(hash, str.charCodeAt(byteIndex), 0x105C3);
  41.       }
  42.      
  43.       var n1 = 0;
  44.       while (f1(f1(hash, n1 & 0xFF, 0x105C3), n1 >> 8, 0x105C3) != 0xA5B6) {
  45.        if (++n1 >= 0xFFFF) {
  46.          alert("Failed to find a key!");
  47.           return "";
  48.         }
  49.       }
  50.      
  51.       n1 = Math.floor(((n1 + 0x72FA) & 0xFFFF) * 99999.0 / 0xFFFF);
  52.       var n1str = ("0000" + n1.toString(10)).slice(-5); // this will be used at the end
  53.      
  54.       var temp = parseInt(n1str.slice(0,-3) + n1str.slice(-2) + n1str.slice(-3, -2), 10);
  55.       temp = Math.ceil((temp / 99999.0) * 0xFFFF);
  56.       temp = f1(f1(0, temp & 0xFF, 0x1064B), temp >> 8, 0x1064B);
  57.      
  58.       for (byteIndex = str.length - 1; byteIndex >= 0; byteIndex--) {
  59.         temp = f1(temp, str.charCodeAt(byteIndex), 0x1064B);
  60.       }
  61.      
  62.       var n2 = 0;
  63.       while (f1(f1(temp, n2 & 0xFF, 0x1064B), n2 >> 8, 0x1064B) != 0xA5B6) {
  64.        if (++n2 >= 0xFFFF) {
  65.          alert("Failed to find a key!");
  66.           return "";
  67.         }
  68.       }
  69.      
  70.       n2 = Math.floor((n2 & 0xFFFF) * 99999.0 / 0xFFFF);
  71.       var n2str = ("0000" + n2.toString(10)).slice(-5);
  72.      
  73.       var password = n2str.charAt(3) + n1str.charAt(3) + n1str.charAt(1)
  74.                    + n1str.charAt(0) +       "-"       + n2str.charAt(4)
  75.                    + n1str.charAt(2) + n2str.charAt(0) +       "-"      
  76.                    + n2str.charAt(2) + n1str.charAt(4) + n2str.charAt(1);
  77.       return password;
  78.     }
  79.    
  80.     function genFromMathId() {
  81.       var mathId = document.getElementById("str").value;
  82.       var debug = document.getElementById("debug").value;
  83.       var type=document.getElementById("type").value;
  84.       var activationKey = document.getElementById("actkey").value;
  85.       var expdate = document.getElementById("expdate").value;
  86.       var limstr=document.getElementById("limstr").value;
  87.  
  88.       var hashval=document.getElementById("hashval").value;
  89.       var keyvalstr=mathId;
  90.       if(expdate!=""){
  91.       keyvalstr=keyvalstr+"@"+expdate;
  92.       }
  93.       if(limstr!=""){
  94.       keyvalstr=keyvalstr+":"+limstr;
  95.       }
  96.       if(type!=""){
  97.       keyvalstr=keyvalstr+"$"+type;
  98.       }
  99.       keyvalstr=keyvalstr+"&"+activationKey;
  100.       document.getElementById("debugout").value=keyvalstr;
  101.       if(debug!=""){
  102.       keyvalstr=debug;
  103.       }
  104.       var password = genPassword(keyvalstr,parseInt(hashval));
  105.     //String example for floating license
  106.     //"We Are Everywhere!6202-07203-27542@20180502:20*CA&L1234-4321"
  107.     //Real standalone key example
  108.     //Mathematica Trial 11.2
  109.     //6202-07203-27542  3973-7213-822J7R  4559-305-821:2,2,4,4:3:20180130
  110.     //6202-07203-27542  3984-9756-8J5HHW  8823-709-932:2,2,4,4:3:20180204
  111.     //Student 11
  112.     //6202-24738-25165  3893-9258-K6XJLE  2241-033-602:2,2,8,8:5
  113.     //SystemModeler Trial 5.0.0
  114.     //6202-07203-27542  4014-6943-3K6XXP  7327-981-239:1:3:20180228
  115.       password=password+":"+limstr;
  116.       password=password+":"+type;
  117.       if(expdate!=""){
  118.       password=password+":"+expdate;
  119.       }
  120.       document.getElementById("output").value=password;
  121.       //6202-07203-27542@5:2,2,8,8&3893-9258-K6XJLE
  122.       //6202-07203-27542:2,2,8,8$5&3893-9258-K6XJLE
  123.    }
  124.  </script>
  125. <style></style></head>
  126.  
  127. <body>
  128.  <h2>Mathematica and SystemModeler Keygen</h2>
  129.  <p>This generator works with Mathematica 10.0 and later, SystemModeler 4.0 and later.<br />
  130.     To download Mathematica, sign up for a free trial here: <a href="https://www.wolfram.com/mathematica/trial/">Download a Free Trial of Mathematica</a>.<br />
  131.      To download SystemModeler, sign up for a free trial here: <a href="https://www.wolfram.com/system-modeler/trial/">Download a Free Trial of SystemModeler</a>.<br />
  132.      You can use, for example, any number of temporary e-mail adreses at <a href="https://www.mailinator.com/">mailinator</a> or any other temporary e-mail host.</p>
  133.  <p>On the Mathematica activation screen, click the "Other ways to activate" button and then "Activate Manually".<br />
  134.     Enter your MathID and chose Activation Key in the form, and click "Generate".<br />
  135.      All other fields are otional.</p>
  136.  <p><font color="red">*Required field</font></p>
  137.    
  138.  <h3>Hash<font color="red">*</font></h3>
  139.  
  140.  <p>
  141.    Copy a Hex value from the corresponding table.<br />
  142.    Example for Mathematica: <font style='font-family:"Courier New", Courier, monospace; font-size:100%'>0x5417</font><br />
  143.     Example for SystemModeler: <font style='font-family:"Courier New", Courier, monospace; font-size:100%'>0x8C72</font><br />
  144.  
  145.     <table style='font-family:"Courier New", Courier, monospace; font-size:100%'>
  146.       <caption><b>Mathematica</b></caption>
  147.  
  148.       <tr>
  149.         <th rowspan="2">Mathematica 10.0 - 11.0</th>                           <th>Hex</th><td>0x25DB</td>
  150.       </tr>                                                                                              
  151.       <tr>                                                                                                
  152.                                                                                <th>Dec</th><td>9691</td>  
  153.       </tr>
  154.  
  155.       <tr>
  156.         <th rowspan="2">Mathematica 10.0 - 11.1</th>                           <th>Hex</th><td>0x42DD</td>
  157.       </tr>                                                                                              
  158.       <tr>                                                                                                
  159.                                                                                <th>Dec</th><td>17117</td>
  160.       </tr>
  161.  
  162.       <tr>
  163.         <th rowspan="2">Mathematica 10.0 - 11.2</th>                           <th>Hex</th><td>0x6A91</td>
  164.       </tr>                                                                                              
  165.       <tr>                                                                                                
  166.                                                                                <th>Dec</th><td>27281</td>
  167.       </tr>
  168.  
  169.       <tr>
  170.         <th rowspan="2">Mathematica 10.0 - 11.3</th>                           <th>Hex</th><td>0x29F8</td>
  171.       </tr>                                                                                              
  172.       <tr>                                                                                                
  173.                                                                                <th>Dec</th><td>10744</td>
  174.       </tr>
  175.  
  176.       <tr>
  177.         <th rowspan="2">Mathematica 10.0 - 12.0</th>                           <th>Hex</th><td>0xA68B</td>
  178.       </tr>                                                                                              
  179.       <tr>                                                                                                
  180.                                                                                <th>Dec</th><td>42635</td>
  181.       </tr>
  182.  
  183.       <tr>
  184.         <th rowspan="2">Mathematica 10.0 - 12.1</th>                           <th>Hex</th><td>0xE4A8</td>
  185.       </tr>
  186.       <tr>
  187.                                                                                <th>Dec</th><td>58536</td>
  188.       </tr>
  189.  
  190.       <tr>
  191.         <th rowspan="2">Mathematica 10.0 - 12.0</th>                           <th>Hex</th><td>0xA439</td>
  192.       </tr>                                                                                              
  193.       <tr>                                                                                                
  194.                                                                                <th>Dec</th><td>42041</td>
  195.       </tr>
  196.  
  197.       <tr>
  198.         <th rowspan="2">Mathematica 10.2 - 12.2</th>                           <th>Hex</th><td>0x2FDB</td>
  199.       </tr>
  200.       <tr>
  201.                                                                                <th>Dec</th><td>12251</td>
  202.       </tr>
  203.  
  204.       <tr>
  205.         <th rowspan="2">Mathematica 10.2 - 12.3</th>                           <th>Hex</th><td>0xD227</td>
  206.       </tr>
  207.       <tr>
  208.                                                                                <th>Dec</th><td>53799</td>
  209.       </tr>
  210.  
  211.       <tr>
  212.         <th rowspan="2">Mathematica 10.2 - 13.0</th>                           <th>Hex</th><td>0xDB75</td>
  213.       </tr>
  214.       <tr>
  215.                                                                                <th>Dec</th><td>56181</td>
  216.       </tr>
  217.  
  218.       <tr>
  219.         <th rowspan="2">Mathematica 10.2 - 13.0+</th>                          <th>Hex</th><td>0xEE71</td><td>0x29C2</td><td>0x44F1</td>
  220.       </tr>
  221.       <tr>
  222.                                                                                <th>Dec</th><td>61041</td> <td>10690</td> <td>17649</td>
  223.       </tr>
  224.  
  225.       <tr>
  226.         <th rowspan="2">Mathematica 12.0 - 13.0+</th>                          <th>Hex</th><td>0x8E3C</td><td>0x60F0</td><td>0xABEB</td><td>0x8250</td><td>0x8C68</td><td>0xE756</td>
  227.       </tr>
  228.       <tr>
  229.                                                                                <th>Dec</th><td>36412</td> <td>24816</td> <td>44011</td> <td>33360</td> <td>35944</td> <td>59222</td>
  230.       </tr>
  231.  
  232.       <tr>
  233.         <th rowspan="2">Mathematica 13.0 - 13.0+</th>                          <th>Hex</th><td>0xB4D0</td><td>0xCD2D</td><td>0x22DD</td><td>0x66C0</td><td>0xD54F</td><td>0xB013</td><td>0x5417</td>
  234.       </tr>
  235.       <tr>
  236.                                                                                <th>Dec</th><td>46288</td> <td>52525</td> <td>8925</td>  <td>26304</td> <td>54607</td> <td>45075</td> <td>21527</td>
  237.       </tr>
  238.  
  239.     </table>
  240.  
  241.     <table style='font-family:"Courier New", Courier, monospace; font-size:100%'>
  242.       <caption><b>SystemModeler</b></caption>
  243.  
  244.       <tr>
  245.         <th rowspan="2">SystemModeler  4.0</th>                                <th>Hex</th><td>0x15BF</td>
  246.       </tr>
  247.       <tr>
  248.                                                                                <th>Dec</th><td>5567</td>  
  249.       </tr>
  250.  
  251.       <tr>
  252.         <th rowspan="2">SystemModeler  4.0 -  4.1</th>                         <th>Hex</th><td>0x6897</td>
  253.       </tr>
  254.       <tr>
  255.                                                                                <th>Dec</th><td>26775</td>
  256.       </tr>
  257.  
  258.       <tr>
  259.         <th rowspan="2">SystemModeler  4.0 -  4.2</th>                         <th>Hex</th><td>0x2F33</td><td>0x72C4</td>
  260.       </tr>                                                                                                              
  261.       <tr>                                                                                                              
  262.                                                                                <th>Dec</th><td>12083</td> <td>29380</td>
  263.       </tr>
  264.  
  265.       <tr>
  266.         <th rowspan="2">SystemModeler  4.0 -  5.0</th>                         <th>Hex</th><td>0x8330</td>
  267.       </tr>                                                                                              
  268.       <tr>                                                                                                
  269.                                                                                <th>Dec</th><td>33584</td>
  270.       </tr>
  271.  
  272.       <tr>
  273.         <th rowspan="2">SystemModeler  4.0 -  5.1?</th>                        <th>Hex</th><td>0x81DD</td>
  274.       </tr>                                                                                              
  275.       <tr>                                                                                                
  276.                                                                                <th>Dec</th><td>33245</td>
  277.       </tr>
  278.  
  279.       <tr>
  280.         <th rowspan="2">SystemModeler  4.0 - 12.0</th>                         <th>Hex</th><td>0x47C5</td>
  281.       </tr>                                                                                              
  282.       <tr>                                                                                                
  283.                                                                                <th>Dec</th><td>18373</td>
  284.       </tr>
  285.  
  286.       <tr>
  287.         <th rowspan="2">SystemModeler  4.0 - 12.1</th>                         <th>Hex</th><td>0xB4D3</td>
  288.       </tr>
  289.       <tr>
  290.                                                                                <th>Dec</th><td>46291</td>
  291.       </tr>
  292.  
  293.       <tr>
  294.         <th rowspan="2">SystemModeler  4.0 - 12.2</th>                         <th>Hex</th><td>0xAB0B</td>
  295.       </tr>
  296.       <tr>
  297.                                                                                <th>Dec</th><td>43787</td>
  298.       </tr>
  299.  
  300.       <tr>
  301.         <th rowspan="2">SystemModeler  4.0 - 12.3</th>                         <th>Hex</th><td>0x6188</td>
  302.       </tr>
  303.       <tr>
  304.                                                                                <th>Dec</th><td>24968</td>
  305.       </tr>
  306.  
  307.       <tr>
  308.         <th rowspan="2">SystemModeler  5.0 - 13.0</th>                         <th>Hex</th><td>0xBF47</td>
  309.       </tr>
  310.       <tr>
  311.                                                                                <th>Dec</th><td>48967</td>
  312.       </tr>
  313.  
  314.       <tr>
  315.         <th rowspan="2">SystemModeler  5.0 - 13.0+</th>                        <th>Hex</th><td>0x1330</td><td>0xF536</td><td>0xA5CE</td><td>0x755E</td><td>0x1361</td><td>0xEEFE</td><td>0x7C91</td><td>0x5770</td>
  316.       </tr>
  317.       <tr>
  318.                                                                                <th>Dec</th><td>4912</td>  <td>62774</td> <td>42446</td> <td>30046</td> <td>4961</td>  <td>61182</td> <td>31889</td> <td>22384</td>
  319.       </tr>
  320.  
  321.       <tr>
  322.         <th rowspan="2">SystemModeler 13.0 - 13.0+</th>                        <th>Hex</th><td>0x7C53</td><td>0x64EC</td><td>0x73EE</td><td>0x4209</td><td>0x8C72</td>
  323.       </tr>
  324.       <tr>
  325.                                                                                <th>Dec</th><td>31827</td> <td>25836</td> <td>29678</td> <td>16905</td> <td>35954</td>  
  326.       </tr>
  327.  
  328.     </table>
  329.  
  330.   </p>
  331.  
  332.   <input type="text" id="hashval" value="0x5417">
  333.   <h3>MathID<font color="red">*</font></h3>
  334.   <p>Copy from Mathematica or SystemModeler</p>
  335.   <input type="text" id="str">
  336.   <h3>Activation Key<font color="red">*</font></h3>
  337.   <p>Format: <font style='font-family:"Courier New", Courier, monospace; font-size:100%'>xxxx-xxxx-XXXXXX</font><br />
  338.   Where: <font style='font-family:"Courier New", Courier, monospace; font-size:100%'>x=0..9, X=0..9 and A..Z</font><br />
  339.   Example: <font style='font-family:"Courier New", Courier, monospace; font-size:100%'>3893-9258-K6XJLE</font></p>
  340.   <input type="text" id="actkey" value="3893-9258-K6XJLE">
  341.   <h3>$LicenseExpirationDate</h3>
  342.   <p>Optional, leave empty if not needed.<br />
  343.      Format: <font style='font-family:"Courier New", Courier, monospace; font-size:100%'>YYYYMMDD</font><br />
  344.      Example: <font style='font-family:"Courier New", Courier, monospace; font-size:100%'>20200619</font></p>
  345.   <input type="text" id="expdate">
  346.   <h3>$MaxLicenseProcesses</h3>
  347.   <p>Optional, leave empty if not needed.</p>
  348.   <input type="text" id="limstr">
  349.   <h3>$LicenseType</h3>
  350.   <p>Optional, leave empty if not needed.</p>
  351.   <table style='font-family:"Courier New", Courier, monospace; font-size:100%'>
  352.     <tr>
  353.     <td>Professional</td>
  354.     <td> 0</td>
  355.     <td> 1</td>
  356.     <td> 8</td>
  357.     <td> 9</td>
  358.     </tr>
  359.     <tr>
  360.     <td>Trial</td>
  361.     <td> 2</td>
  362.     <td> 3</td>
  363.     <td> 6</td>
  364.     <td> 7</td>
  365.     </tr>
  366.     <tr>
  367.     <td>Student</td>
  368.     <td> 4</td>
  369.     <td> 5</td>
  370.     </tr>
  371.     <tr>
  372.     <td>CDF Player</td>
  373.     <td>10</td>
  374.     <td>11</td>
  375.     </tr>
  376.     <tr>
  377.     <td>CDF Player Trial</td>
  378.     <td>12</td>
  379.     <td>13</td>
  380.     </tr>
  381.   </table>
  382.   <br />
  383.   <input type="text" id="type" value="1">
  384.   <h3>Debug Only</h3>
  385.   <p>Leave this blank if you don't know what you are doing!</p>
  386.   <input type="text" id="debug">
  387.   <input type="text" readonly="readonly" id="debugout">
  388.   <br>
  389.   <button onclick="genFromMathId()">Generate</button>
  390.   <br>
  391.   <h3>Password</h3>
  392.   <input type="text" readonly="readonly" id="output">
  393.   <br>
  394. </body></html>
  395.  
Advertisement
Add Comment
Please, Sign In to add comment