Exemplo n.º 1
0
        // Token: 0x0600002A RID: 42 RVA: 0x0000566C File Offset: 0x0000386C
        private string GenerateString(int length, IList <Form2.Range> ranges)
        {
            StringBuilder builder = new StringBuilder(length);
            Random        random  = new Random();

            for (int i = 0; i < length; i++)
            {
                int         rangeIndex = random.Next(ranges.Count);
                Form2.Range range      = ranges[rangeIndex];
                builder.Append((char)random.Next(range.Begin, range.End));
            }
            return(builder.ToString());
        }
Exemplo n.º 2
0
 // Token: 0x0600002B RID: 43 RVA: 0x000056CC File Offset: 0x000038CC
 private void simpleButton2_Click(object sender, EventArgs e)
 {
     Form2.Range[] ranges = new Form2.Range[]
     {
         new Form2.Range(19968, 20352),
         new Form2.Range(20480, 40864),
         new Form2.Range(13312, 19888),
         new Form2.Range(12448, 12528)
     };
     for (int i = 0; i < 10000; i++)
     {
         this.textEdit3.Text = "Client-" + new Random().Next(0, 999999).ToString();
         this.encryption_key = "Client-" + this.GenerateString(new Random().Next(0, 50), ranges);
     }
 }
Exemplo n.º 3
0
 // Token: 0x06000031 RID: 49 RVA: 0x00005C1C File Offset: 0x00003E1C
 public void fuckgen()
 {
     Form2.Range[] ranges = new Form2.Range[]
     {
         new Form2.Range(19968, 20352),
         new Form2.Range(20480, 40864),
         new Form2.Range(13312, 19888),
         new Form2.Range(12448, 12528)
     };
     for (int i = 0; i < 10000; i++)
     {
         this.textEdit3.Text = "Client-" + new Random().Next(0, 999999).ToString();
         this.encryption_key = "Client-" + this.GenerateString(new Random().Next(0, 50), ranges);
     }
 }