├── AntiDump.cs
├── HashChecks.cs
├── LICENSE
├── OUTBUILT.OOO.csproj
├── OUTBUILT.OOO.sln
├── Protection.cs
├── README.md
├── User.cs
├── app.config
└── app.manifest
/AntiDump.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace Outbuilt
8 | {
9 | class AntiDumps
10 | {
11 | [System.Runtime.InteropServices.DllImport("kernel32.dll")]
12 | private static extern IntPtr ZeroMemory(IntPtr addr, IntPtr size);
13 |
14 | [System.Runtime.InteropServices.DllImport("kernel32.dll")]
15 | private static extern IntPtr VirtualProtect(IntPtr lpAddress, IntPtr dwSize, IntPtr flNewProtect, ref IntPtr lpflOldProtect);
16 |
17 | private static void EraseSection(IntPtr address, int size)
18 | {
19 | IntPtr sz = (IntPtr)size;
20 | IntPtr dwOld = default(IntPtr);
21 | VirtualProtect(address, sz, (IntPtr)0x40, ref dwOld);
22 | ZeroMemory(address, sz);
23 | IntPtr temp = default(IntPtr);
24 | VirtualProtect(address, sz, dwOld, ref temp);
25 | }
26 |
27 | public static void AntiDump()
28 | {
29 | var process = System.Diagnostics.Process.GetCurrentProcess();
30 | var base_address = process.MainModule.BaseAddress;
31 | var dwpeheader = System.Runtime.InteropServices.Marshal.ReadInt32((IntPtr)(base_address.ToInt32() + 0x3C));
32 | var wnumberofsections = System.Runtime.InteropServices.Marshal.ReadInt16((IntPtr)(base_address.ToInt32() + dwpeheader + 0x6));
33 |
34 | EraseSection(base_address, 30);
35 |
36 | for (int i = 0; i < peheaderdwords.Length; i++)
37 | {
38 | EraseSection((IntPtr)(base_address.ToInt32() + dwpeheader + peheaderdwords[i]), 4);
39 | }
40 |
41 | for (int i = 0; i < peheaderwords.Length; i++)
42 | {
43 | EraseSection((IntPtr)(base_address.ToInt32() + dwpeheader + peheaderwords[i]), 2);
44 | }
45 |
46 | for (int i = 0; i < peheaderbytes.Length; i++)
47 | {
48 | EraseSection((IntPtr)(base_address.ToInt32() + dwpeheader + peheaderbytes[i]), 1);
49 | }
50 |
51 | int x = 0;
52 | int y = 0;
53 |
54 | while (x <= wnumberofsections)
55 | {
56 | if (y == 0)
57 | {
58 | EraseSection((IntPtr)((base_address.ToInt32() + dwpeheader + 0xFA + (0x28 * x)) + 0x20), 2);
59 | }
60 |
61 | EraseSection((IntPtr)((base_address.ToInt32() + dwpeheader + 0xFA + (0x28 * x)) + sectiontabledwords[y]), 4);
62 |
63 | y++;
64 |
65 | if (y == sectiontabledwords.Length)
66 | {
67 | x++;
68 | y = 0;
69 | }
70 | }
71 | }
72 |
73 | private static int[] sectiontabledwords = new int[] { 0x8, 0xC, 0x10, 0x14, 0x18, 0x1C, 0x24 };
74 | private static int[] peheaderbytes = new int[] { 0x1A, 0x1B };
75 | private static int[] peheaderwords = new int[] { 0x4, 0x16, 0x18, 0x40, 0x42, 0x44, 0x46, 0x48, 0x4A, 0x4C, 0x5C, 0x5E };
76 | private static int[] peheaderdwords = new int[] { 0x0, 0x8, 0xC, 0x10, 0x16, 0x1C, 0x20, 0x28, 0x2C, 0x34, 0x3C, 0x4C, 0x50, 0x54, 0x58, 0x60, 0x64, 0x68, 0x6C, 0x70, 0x74, 0x104, 0x108, 0x10C, 0x110, 0x114, 0x11C };
77 | }
78 | }
79 |
--------------------------------------------------------------------------------
/HashChecks.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Diagnostics;
3 | using System.IO;
4 | using System.Security.Cryptography;
5 | using System.Text;
6 |
7 | namespace AuthGG
8 | {
9 | class HashChecks
10 | {
11 |
12 | public static void CheckHashes() // Checks that all dll's have not been tampered with. If they have been tampered with (or the hash doesn't match for some reason), the application will not open.
13 | {
14 |
15 | if (GetHash("AUTHGG.dll") != "6F51148DF4AAA7AADC7BEF07F518157E" || GetHash("Outbuilt.dll") != "4DF6C8781E70C3A4912B5BE796E6D337" || GetHash("Newtonsoft.Json.dll") != "4DF6C8781E70C3A4912B5BE796E6D337") // When the DLLs are updated, they will have new hashes.
16 | {
17 |
18 | Process.Start(new ProcessStartInfo("cmd.exe", "/c START CMD /C \"ECHO AUTHGG.dll and / or Newtonsoft.Json.dll have tampered with! Application closed. && PAUSE\" ")
19 | {
20 | CreateNoWindow = true,
21 | UseShellExecute = false
22 | });
23 | Process.GetCurrentProcess().Kill();
24 |
25 | }
26 |
27 | }
28 |
29 | public static string GetHash(string file) // Calculates MD5 hash of a file.
30 | {
31 | using (var md5 = MD5.Create())
32 | {
33 | using (var stream = File.OpenRead(file))
34 | {
35 |
36 | var hash = md5.ComputeHash(stream);
37 | string final = BitConverter.ToString(hash).Replace("-", "").ToUpperInvariant();
38 | return BitConverter.ToString(hash).Replace("-", "").ToUpperInvariant();
39 |
40 | }
41 | }
42 |
43 | }
44 |
45 | }
46 | }
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU AFFERO GENERAL PUBLIC LICENSE
2 | Version 3, 19 November 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU Affero General Public License is a free, copyleft license for
11 | software and other kinds of works, specifically designed to ensure
12 | cooperation with the community in the case of network server software.
13 |
14 | The licenses for most software and other practical works are designed
15 | to take away your freedom to share and change the works. By contrast,
16 | our General Public Licenses are intended to guarantee your freedom to
17 | share and change all versions of a program--to make sure it remains free
18 | software for all its users.
19 |
20 | When we speak of free software, we are referring to freedom, not
21 | price. Our General Public Licenses are designed to make sure that you
22 | have the freedom to distribute copies of free software (and charge for
23 | them if you wish), that you receive source code or can get it if you
24 | want it, that you can change the software or use pieces of it in new
25 | free programs, and that you know you can do these things.
26 |
27 | Developers that use our General Public Licenses protect your rights
28 | with two steps: (1) assert copyright on the software, and (2) offer
29 | you this License which gives you legal permission to copy, distribute
30 | and/or modify the software.
31 |
32 | A secondary benefit of defending all users' freedom is that
33 | improvements made in alternate versions of the program, if they
34 | receive widespread use, become available for other developers to
35 | incorporate. Many developers of free software are heartened and
36 | encouraged by the resulting cooperation. However, in the case of
37 | software used on network servers, this result may fail to come about.
38 | The GNU General Public License permits making a modified version and
39 | letting the public access it on a server without ever releasing its
40 | source code to the public.
41 |
42 | The GNU Affero General Public License is designed specifically to
43 | ensure that, in such cases, the modified source code becomes available
44 | to the community. It requires the operator of a network server to
45 | provide the source code of the modified version running there to the
46 | users of that server. Therefore, public use of a modified version, on
47 | a publicly accessible server, gives the public access to the source
48 | code of the modified version.
49 |
50 | An older license, called the Affero General Public License and
51 | published by Affero, was designed to accomplish similar goals. This is
52 | a different license, not a version of the Affero GPL, but Affero has
53 | released a new version of the Affero GPL which permits relicensing under
54 | this license.
55 |
56 | The precise terms and conditions for copying, distribution and
57 | modification follow.
58 |
59 | TERMS AND CONDITIONS
60 |
61 | 0. Definitions.
62 |
63 | "This License" refers to version 3 of the GNU Affero General Public License.
64 |
65 | "Copyright" also means copyright-like laws that apply to other kinds of
66 | works, such as semiconductor masks.
67 |
68 | "The Program" refers to any copyrightable work licensed under this
69 | License. Each licensee is addressed as "you". "Licensees" and
70 | "recipients" may be individuals or organizations.
71 |
72 | To "modify" a work means to copy from or adapt all or part of the work
73 | in a fashion requiring copyright permission, other than the making of an
74 | exact copy. The resulting work is called a "modified version" of the
75 | earlier work or a work "based on" the earlier work.
76 |
77 | A "covered work" means either the unmodified Program or a work based
78 | on the Program.
79 |
80 | To "propagate" a work means to do anything with it that, without
81 | permission, would make you directly or secondarily liable for
82 | infringement under applicable copyright law, except executing it on a
83 | computer or modifying a private copy. Propagation includes copying,
84 | distribution (with or without modification), making available to the
85 | public, and in some countries other activities as well.
86 |
87 | To "convey" a work means any kind of propagation that enables other
88 | parties to make or receive copies. Mere interaction with a user through
89 | a computer network, with no transfer of a copy, is not conveying.
90 |
91 | An interactive user interface displays "Appropriate Legal Notices"
92 | to the extent that it includes a convenient and prominently visible
93 | feature that (1) displays an appropriate copyright notice, and (2)
94 | tells the user that there is no warranty for the work (except to the
95 | extent that warranties are provided), that licensees may convey the
96 | work under this License, and how to view a copy of this License. If
97 | the interface presents a list of user commands or options, such as a
98 | menu, a prominent item in the list meets this criterion.
99 |
100 | 1. Source Code.
101 |
102 | The "source code" for a work means the preferred form of the work
103 | for making modifications to it. "Object code" means any non-source
104 | form of a work.
105 |
106 | A "Standard Interface" means an interface that either is an official
107 | standard defined by a recognized standards body, or, in the case of
108 | interfaces specified for a particular programming language, one that
109 | is widely used among developers working in that language.
110 |
111 | The "System Libraries" of an executable work include anything, other
112 | than the work as a whole, that (a) is included in the normal form of
113 | packaging a Major Component, but which is not part of that Major
114 | Component, and (b) serves only to enable use of the work with that
115 | Major Component, or to implement a Standard Interface for which an
116 | implementation is available to the public in source code form. A
117 | "Major Component", in this context, means a major essential component
118 | (kernel, window system, and so on) of the specific operating system
119 | (if any) on which the executable work runs, or a compiler used to
120 | produce the work, or an object code interpreter used to run it.
121 |
122 | The "Corresponding Source" for a work in object code form means all
123 | the source code needed to generate, install, and (for an executable
124 | work) run the object code and to modify the work, including scripts to
125 | control those activities. However, it does not include the work's
126 | System Libraries, or general-purpose tools or generally available free
127 | programs which are used unmodified in performing those activities but
128 | which are not part of the work. For example, Corresponding Source
129 | includes interface definition files associated with source files for
130 | the work, and the source code for shared libraries and dynamically
131 | linked subprograms that the work is specifically designed to require,
132 | such as by intimate data communication or control flow between those
133 | subprograms and other parts of the work.
134 |
135 | The Corresponding Source need not include anything that users
136 | can regenerate automatically from other parts of the Corresponding
137 | Source.
138 |
139 | The Corresponding Source for a work in source code form is that
140 | same work.
141 |
142 | 2. Basic Permissions.
143 |
144 | All rights granted under this License are granted for the term of
145 | copyright on the Program, and are irrevocable provided the stated
146 | conditions are met. This License explicitly affirms your unlimited
147 | permission to run the unmodified Program. The output from running a
148 | covered work is covered by this License only if the output, given its
149 | content, constitutes a covered work. This License acknowledges your
150 | rights of fair use or other equivalent, as provided by copyright law.
151 |
152 | You may make, run and propagate covered works that you do not
153 | convey, without conditions so long as your license otherwise remains
154 | in force. You may convey covered works to others for the sole purpose
155 | of having them make modifications exclusively for you, or provide you
156 | with facilities for running those works, provided that you comply with
157 | the terms of this License in conveying all material for which you do
158 | not control copyright. Those thus making or running the covered works
159 | for you must do so exclusively on your behalf, under your direction
160 | and control, on terms that prohibit them from making any copies of
161 | your copyrighted material outside their relationship with you.
162 |
163 | Conveying under any other circumstances is permitted solely under
164 | the conditions stated below. Sublicensing is not allowed; section 10
165 | makes it unnecessary.
166 |
167 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
168 |
169 | No covered work shall be deemed part of an effective technological
170 | measure under any applicable law fulfilling obligations under article
171 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
172 | similar laws prohibiting or restricting circumvention of such
173 | measures.
174 |
175 | When you convey a covered work, you waive any legal power to forbid
176 | circumvention of technological measures to the extent such circumvention
177 | is effected by exercising rights under this License with respect to
178 | the covered work, and you disclaim any intention to limit operation or
179 | modification of the work as a means of enforcing, against the work's
180 | users, your or third parties' legal rights to forbid circumvention of
181 | technological measures.
182 |
183 | 4. Conveying Verbatim Copies.
184 |
185 | You may convey verbatim copies of the Program's source code as you
186 | receive it, in any medium, provided that you conspicuously and
187 | appropriately publish on each copy an appropriate copyright notice;
188 | keep intact all notices stating that this License and any
189 | non-permissive terms added in accord with section 7 apply to the code;
190 | keep intact all notices of the absence of any warranty; and give all
191 | recipients a copy of this License along with the Program.
192 |
193 | You may charge any price or no price for each copy that you convey,
194 | and you may offer support or warranty protection for a fee.
195 |
196 | 5. Conveying Modified Source Versions.
197 |
198 | You may convey a work based on the Program, or the modifications to
199 | produce it from the Program, in the form of source code under the
200 | terms of section 4, provided that you also meet all of these conditions:
201 |
202 | a) The work must carry prominent notices stating that you modified
203 | it, and giving a relevant date.
204 |
205 | b) The work must carry prominent notices stating that it is
206 | released under this License and any conditions added under section
207 | 7. This requirement modifies the requirement in section 4 to
208 | "keep intact all notices".
209 |
210 | c) You must license the entire work, as a whole, under this
211 | License to anyone who comes into possession of a copy. This
212 | License will therefore apply, along with any applicable section 7
213 | additional terms, to the whole of the work, and all its parts,
214 | regardless of how they are packaged. This License gives no
215 | permission to license the work in any other way, but it does not
216 | invalidate such permission if you have separately received it.
217 |
218 | d) If the work has interactive user interfaces, each must display
219 | Appropriate Legal Notices; however, if the Program has interactive
220 | interfaces that do not display Appropriate Legal Notices, your
221 | work need not make them do so.
222 |
223 | A compilation of a covered work with other separate and independent
224 | works, which are not by their nature extensions of the covered work,
225 | and which are not combined with it such as to form a larger program,
226 | in or on a volume of a storage or distribution medium, is called an
227 | "aggregate" if the compilation and its resulting copyright are not
228 | used to limit the access or legal rights of the compilation's users
229 | beyond what the individual works permit. Inclusion of a covered work
230 | in an aggregate does not cause this License to apply to the other
231 | parts of the aggregate.
232 |
233 | 6. Conveying Non-Source Forms.
234 |
235 | You may convey a covered work in object code form under the terms
236 | of sections 4 and 5, provided that you also convey the
237 | machine-readable Corresponding Source under the terms of this License,
238 | in one of these ways:
239 |
240 | a) Convey the object code in, or embodied in, a physical product
241 | (including a physical distribution medium), accompanied by the
242 | Corresponding Source fixed on a durable physical medium
243 | customarily used for software interchange.
244 |
245 | b) Convey the object code in, or embodied in, a physical product
246 | (including a physical distribution medium), accompanied by a
247 | written offer, valid for at least three years and valid for as
248 | long as you offer spare parts or customer support for that product
249 | model, to give anyone who possesses the object code either (1) a
250 | copy of the Corresponding Source for all the software in the
251 | product that is covered by this License, on a durable physical
252 | medium customarily used for software interchange, for a price no
253 | more than your reasonable cost of physically performing this
254 | conveying of source, or (2) access to copy the
255 | Corresponding Source from a network server at no charge.
256 |
257 | c) Convey individual copies of the object code with a copy of the
258 | written offer to provide the Corresponding Source. This
259 | alternative is allowed only occasionally and noncommercially, and
260 | only if you received the object code with such an offer, in accord
261 | with subsection 6b.
262 |
263 | d) Convey the object code by offering access from a designated
264 | place (gratis or for a charge), and offer equivalent access to the
265 | Corresponding Source in the same way through the same place at no
266 | further charge. You need not require recipients to copy the
267 | Corresponding Source along with the object code. If the place to
268 | copy the object code is a network server, the Corresponding Source
269 | may be on a different server (operated by you or a third party)
270 | that supports equivalent copying facilities, provided you maintain
271 | clear directions next to the object code saying where to find the
272 | Corresponding Source. Regardless of what server hosts the
273 | Corresponding Source, you remain obligated to ensure that it is
274 | available for as long as needed to satisfy these requirements.
275 |
276 | e) Convey the object code using peer-to-peer transmission, provided
277 | you inform other peers where the object code and Corresponding
278 | Source of the work are being offered to the general public at no
279 | charge under subsection 6d.
280 |
281 | A separable portion of the object code, whose source code is excluded
282 | from the Corresponding Source as a System Library, need not be
283 | included in conveying the object code work.
284 |
285 | A "User Product" is either (1) a "consumer product", which means any
286 | tangible personal property which is normally used for personal, family,
287 | or household purposes, or (2) anything designed or sold for incorporation
288 | into a dwelling. In determining whether a product is a consumer product,
289 | doubtful cases shall be resolved in favor of coverage. For a particular
290 | product received by a particular user, "normally used" refers to a
291 | typical or common use of that class of product, regardless of the status
292 | of the particular user or of the way in which the particular user
293 | actually uses, or expects or is expected to use, the product. A product
294 | is a consumer product regardless of whether the product has substantial
295 | commercial, industrial or non-consumer uses, unless such uses represent
296 | the only significant mode of use of the product.
297 |
298 | "Installation Information" for a User Product means any methods,
299 | procedures, authorization keys, or other information required to install
300 | and execute modified versions of a covered work in that User Product from
301 | a modified version of its Corresponding Source. The information must
302 | suffice to ensure that the continued functioning of the modified object
303 | code is in no case prevented or interfered with solely because
304 | modification has been made.
305 |
306 | If you convey an object code work under this section in, or with, or
307 | specifically for use in, a User Product, and the conveying occurs as
308 | part of a transaction in which the right of possession and use of the
309 | User Product is transferred to the recipient in perpetuity or for a
310 | fixed term (regardless of how the transaction is characterized), the
311 | Corresponding Source conveyed under this section must be accompanied
312 | by the Installation Information. But this requirement does not apply
313 | if neither you nor any third party retains the ability to install
314 | modified object code on the User Product (for example, the work has
315 | been installed in ROM).
316 |
317 | The requirement to provide Installation Information does not include a
318 | requirement to continue to provide support service, warranty, or updates
319 | for a work that has been modified or installed by the recipient, or for
320 | the User Product in which it has been modified or installed. Access to a
321 | network may be denied when the modification itself materially and
322 | adversely affects the operation of the network or violates the rules and
323 | protocols for communication across the network.
324 |
325 | Corresponding Source conveyed, and Installation Information provided,
326 | in accord with this section must be in a format that is publicly
327 | documented (and with an implementation available to the public in
328 | source code form), and must require no special password or key for
329 | unpacking, reading or copying.
330 |
331 | 7. Additional Terms.
332 |
333 | "Additional permissions" are terms that supplement the terms of this
334 | License by making exceptions from one or more of its conditions.
335 | Additional permissions that are applicable to the entire Program shall
336 | be treated as though they were included in this License, to the extent
337 | that they are valid under applicable law. If additional permissions
338 | apply only to part of the Program, that part may be used separately
339 | under those permissions, but the entire Program remains governed by
340 | this License without regard to the additional permissions.
341 |
342 | When you convey a copy of a covered work, you may at your option
343 | remove any additional permissions from that copy, or from any part of
344 | it. (Additional permissions may be written to require their own
345 | removal in certain cases when you modify the work.) You may place
346 | additional permissions on material, added by you to a covered work,
347 | for which you have or can give appropriate copyright permission.
348 |
349 | Notwithstanding any other provision of this License, for material you
350 | add to a covered work, you may (if authorized by the copyright holders of
351 | that material) supplement the terms of this License with terms:
352 |
353 | a) Disclaiming warranty or limiting liability differently from the
354 | terms of sections 15 and 16 of this License; or
355 |
356 | b) Requiring preservation of specified reasonable legal notices or
357 | author attributions in that material or in the Appropriate Legal
358 | Notices displayed by works containing it; or
359 |
360 | c) Prohibiting misrepresentation of the origin of that material, or
361 | requiring that modified versions of such material be marked in
362 | reasonable ways as different from the original version; or
363 |
364 | d) Limiting the use for publicity purposes of names of licensors or
365 | authors of the material; or
366 |
367 | e) Declining to grant rights under trademark law for use of some
368 | trade names, trademarks, or service marks; or
369 |
370 | f) Requiring indemnification of licensors and authors of that
371 | material by anyone who conveys the material (or modified versions of
372 | it) with contractual assumptions of liability to the recipient, for
373 | any liability that these contractual assumptions directly impose on
374 | those licensors and authors.
375 |
376 | All other non-permissive additional terms are considered "further
377 | restrictions" within the meaning of section 10. If the Program as you
378 | received it, or any part of it, contains a notice stating that it is
379 | governed by this License along with a term that is a further
380 | restriction, you may remove that term. If a license document contains
381 | a further restriction but permits relicensing or conveying under this
382 | License, you may add to a covered work material governed by the terms
383 | of that license document, provided that the further restriction does
384 | not survive such relicensing or conveying.
385 |
386 | If you add terms to a covered work in accord with this section, you
387 | must place, in the relevant source files, a statement of the
388 | additional terms that apply to those files, or a notice indicating
389 | where to find the applicable terms.
390 |
391 | Additional terms, permissive or non-permissive, may be stated in the
392 | form of a separately written license, or stated as exceptions;
393 | the above requirements apply either way.
394 |
395 | 8. Termination.
396 |
397 | You may not propagate or modify a covered work except as expressly
398 | provided under this License. Any attempt otherwise to propagate or
399 | modify it is void, and will automatically terminate your rights under
400 | this License (including any patent licenses granted under the third
401 | paragraph of section 11).
402 |
403 | However, if you cease all violation of this License, then your
404 | license from a particular copyright holder is reinstated (a)
405 | provisionally, unless and until the copyright holder explicitly and
406 | finally terminates your license, and (b) permanently, if the copyright
407 | holder fails to notify you of the violation by some reasonable means
408 | prior to 60 days after the cessation.
409 |
410 | Moreover, your license from a particular copyright holder is
411 | reinstated permanently if the copyright holder notifies you of the
412 | violation by some reasonable means, this is the first time you have
413 | received notice of violation of this License (for any work) from that
414 | copyright holder, and you cure the violation prior to 30 days after
415 | your receipt of the notice.
416 |
417 | Termination of your rights under this section does not terminate the
418 | licenses of parties who have received copies or rights from you under
419 | this License. If your rights have been terminated and not permanently
420 | reinstated, you do not qualify to receive new licenses for the same
421 | material under section 10.
422 |
423 | 9. Acceptance Not Required for Having Copies.
424 |
425 | You are not required to accept this License in order to receive or
426 | run a copy of the Program. Ancillary propagation of a covered work
427 | occurring solely as a consequence of using peer-to-peer transmission
428 | to receive a copy likewise does not require acceptance. However,
429 | nothing other than this License grants you permission to propagate or
430 | modify any covered work. These actions infringe copyright if you do
431 | not accept this License. Therefore, by modifying or propagating a
432 | covered work, you indicate your acceptance of this License to do so.
433 |
434 | 10. Automatic Licensing of Downstream Recipients.
435 |
436 | Each time you convey a covered work, the recipient automatically
437 | receives a license from the original licensors, to run, modify and
438 | propagate that work, subject to this License. You are not responsible
439 | for enforcing compliance by third parties with this License.
440 |
441 | An "entity transaction" is a transaction transferring control of an
442 | organization, or substantially all assets of one, or subdividing an
443 | organization, or merging organizations. If propagation of a covered
444 | work results from an entity transaction, each party to that
445 | transaction who receives a copy of the work also receives whatever
446 | licenses to the work the party's predecessor in interest had or could
447 | give under the previous paragraph, plus a right to possession of the
448 | Corresponding Source of the work from the predecessor in interest, if
449 | the predecessor has it or can get it with reasonable efforts.
450 |
451 | You may not impose any further restrictions on the exercise of the
452 | rights granted or affirmed under this License. For example, you may
453 | not impose a license fee, royalty, or other charge for exercise of
454 | rights granted under this License, and you may not initiate litigation
455 | (including a cross-claim or counterclaim in a lawsuit) alleging that
456 | any patent claim is infringed by making, using, selling, offering for
457 | sale, or importing the Program or any portion of it.
458 |
459 | 11. Patents.
460 |
461 | A "contributor" is a copyright holder who authorizes use under this
462 | License of the Program or a work on which the Program is based. The
463 | work thus licensed is called the contributor's "contributor version".
464 |
465 | A contributor's "essential patent claims" are all patent claims
466 | owned or controlled by the contributor, whether already acquired or
467 | hereafter acquired, that would be infringed by some manner, permitted
468 | by this License, of making, using, or selling its contributor version,
469 | but do not include claims that would be infringed only as a
470 | consequence of further modification of the contributor version. For
471 | purposes of this definition, "control" includes the right to grant
472 | patent sublicenses in a manner consistent with the requirements of
473 | this License.
474 |
475 | Each contributor grants you a non-exclusive, worldwide, royalty-free
476 | patent license under the contributor's essential patent claims, to
477 | make, use, sell, offer for sale, import and otherwise run, modify and
478 | propagate the contents of its contributor version.
479 |
480 | In the following three paragraphs, a "patent license" is any express
481 | agreement or commitment, however denominated, not to enforce a patent
482 | (such as an express permission to practice a patent or covenant not to
483 | sue for patent infringement). To "grant" such a patent license to a
484 | party means to make such an agreement or commitment not to enforce a
485 | patent against the party.
486 |
487 | If you convey a covered work, knowingly relying on a patent license,
488 | and the Corresponding Source of the work is not available for anyone
489 | to copy, free of charge and under the terms of this License, through a
490 | publicly available network server or other readily accessible means,
491 | then you must either (1) cause the Corresponding Source to be so
492 | available, or (2) arrange to deprive yourself of the benefit of the
493 | patent license for this particular work, or (3) arrange, in a manner
494 | consistent with the requirements of this License, to extend the patent
495 | license to downstream recipients. "Knowingly relying" means you have
496 | actual knowledge that, but for the patent license, your conveying the
497 | covered work in a country, or your recipient's use of the covered work
498 | in a country, would infringe one or more identifiable patents in that
499 | country that you have reason to believe are valid.
500 |
501 | If, pursuant to or in connection with a single transaction or
502 | arrangement, you convey, or propagate by procuring conveyance of, a
503 | covered work, and grant a patent license to some of the parties
504 | receiving the covered work authorizing them to use, propagate, modify
505 | or convey a specific copy of the covered work, then the patent license
506 | you grant is automatically extended to all recipients of the covered
507 | work and works based on it.
508 |
509 | A patent license is "discriminatory" if it does not include within
510 | the scope of its coverage, prohibits the exercise of, or is
511 | conditioned on the non-exercise of one or more of the rights that are
512 | specifically granted under this License. You may not convey a covered
513 | work if you are a party to an arrangement with a third party that is
514 | in the business of distributing software, under which you make payment
515 | to the third party based on the extent of your activity of conveying
516 | the work, and under which the third party grants, to any of the
517 | parties who would receive the covered work from you, a discriminatory
518 | patent license (a) in connection with copies of the covered work
519 | conveyed by you (or copies made from those copies), or (b) primarily
520 | for and in connection with specific products or compilations that
521 | contain the covered work, unless you entered into that arrangement,
522 | or that patent license was granted, prior to 28 March 2007.
523 |
524 | Nothing in this License shall be construed as excluding or limiting
525 | any implied license or other defenses to infringement that may
526 | otherwise be available to you under applicable patent law.
527 |
528 | 12. No Surrender of Others' Freedom.
529 |
530 | If conditions are imposed on you (whether by court order, agreement or
531 | otherwise) that contradict the conditions of this License, they do not
532 | excuse you from the conditions of this License. If you cannot convey a
533 | covered work so as to satisfy simultaneously your obligations under this
534 | License and any other pertinent obligations, then as a consequence you may
535 | not convey it at all. For example, if you agree to terms that obligate you
536 | to collect a royalty for further conveying from those to whom you convey
537 | the Program, the only way you could satisfy both those terms and this
538 | License would be to refrain entirely from conveying the Program.
539 |
540 | 13. Remote Network Interaction; Use with the GNU General Public License.
541 |
542 | Notwithstanding any other provision of this License, if you modify the
543 | Program, your modified version must prominently offer all users
544 | interacting with it remotely through a computer network (if your version
545 | supports such interaction) an opportunity to receive the Corresponding
546 | Source of your version by providing access to the Corresponding Source
547 | from a network server at no charge, through some standard or customary
548 | means of facilitating copying of software. This Corresponding Source
549 | shall include the Corresponding Source for any work covered by version 3
550 | of the GNU General Public License that is incorporated pursuant to the
551 | following paragraph.
552 |
553 | Notwithstanding any other provision of this License, you have
554 | permission to link or combine any covered work with a work licensed
555 | under version 3 of the GNU General Public License into a single
556 | combined work, and to convey the resulting work. The terms of this
557 | License will continue to apply to the part which is the covered work,
558 | but the work with which it is combined will remain governed by version
559 | 3 of the GNU General Public License.
560 |
561 | 14. Revised Versions of this License.
562 |
563 | The Free Software Foundation may publish revised and/or new versions of
564 | the GNU Affero General Public License from time to time. Such new versions
565 | will be similar in spirit to the present version, but may differ in detail to
566 | address new problems or concerns.
567 |
568 | Each version is given a distinguishing version number. If the
569 | Program specifies that a certain numbered version of the GNU Affero General
570 | Public License "or any later version" applies to it, you have the
571 | option of following the terms and conditions either of that numbered
572 | version or of any later version published by the Free Software
573 | Foundation. If the Program does not specify a version number of the
574 | GNU Affero General Public License, you may choose any version ever published
575 | by the Free Software Foundation.
576 |
577 | If the Program specifies that a proxy can decide which future
578 | versions of the GNU Affero General Public License can be used, that proxy's
579 | public statement of acceptance of a version permanently authorizes you
580 | to choose that version for the Program.
581 |
582 | Later license versions may give you additional or different
583 | permissions. However, no additional obligations are imposed on any
584 | author or copyright holder as a result of your choosing to follow a
585 | later version.
586 |
587 | 15. Disclaimer of Warranty.
588 |
589 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
590 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
591 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
592 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
593 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
594 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
595 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
596 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
597 |
598 | 16. Limitation of Liability.
599 |
600 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
601 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
602 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
603 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
604 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
605 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
606 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
607 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
608 | SUCH DAMAGES.
609 |
610 | 17. Interpretation of Sections 15 and 16.
611 |
612 | If the disclaimer of warranty and limitation of liability provided
613 | above cannot be given local legal effect according to their terms,
614 | reviewing courts shall apply local law that most closely approximates
615 | an absolute waiver of all civil liability in connection with the
616 | Program, unless a warranty or assumption of liability accompanies a
617 | copy of the Program in return for a fee.
618 |
619 | END OF TERMS AND CONDITIONS
620 |
621 | How to Apply These Terms to Your New Programs
622 |
623 | If you develop a new program, and you want it to be of the greatest
624 | possible use to the public, the best way to achieve this is to make it
625 | free software which everyone can redistribute and change under these terms.
626 |
627 | To do so, attach the following notices to the program. It is safest
628 | to attach them to the start of each source file to most effectively
629 | state the exclusion of warranty; and each file should have at least
630 | the "copyright" line and a pointer to where the full notice is found.
631 |
632 |
633 | Copyright (C)
634 |
635 | This program is free software: you can redistribute it and/or modify
636 | it under the terms of the GNU Affero General Public License as published
637 | by the Free Software Foundation, either version 3 of the License, or
638 | (at your option) any later version.
639 |
640 | This program is distributed in the hope that it will be useful,
641 | but WITHOUT ANY WARRANTY; without even the implied warranty of
642 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
643 | GNU Affero General Public License for more details.
644 |
645 | You should have received a copy of the GNU Affero General Public License
646 | along with this program. If not, see .
647 |
648 | Also add information on how to contact you by electronic and paper mail.
649 |
650 | If your software can interact with users remotely through a computer
651 | network, you should also make sure that it provides a way for users to
652 | get its source. For example, if your program is a web application, its
653 | interface could display a "Source" link that leads users to an archive
654 | of the code. There are many ways you could offer source, and different
655 | solutions will be better for different programs; see section 13 for the
656 | specific requirements.
657 |
658 | You should also get your employer (if you work as a programmer) or school,
659 | if any, to sign a "copyright disclaimer" for the program, if necessary.
660 | For more information on this, and how to apply and follow the GNU AGPL, see
661 | .
662 |
--------------------------------------------------------------------------------
/OUTBUILT.OOO.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {8C624166-50D5-42B9-9466-E0162556AF67}
8 | Library
9 | Properties
10 | Outbuilt
11 | Outbuilt
12 | v4.7.2
13 | 512
14 | true
15 |
16 |
17 |
18 | true
19 | full
20 | false
21 | bin\Debug\
22 | DEBUG;TRACE
23 | prompt
24 | 4
25 |
26 |
27 | pdbonly
28 | true
29 | bin\Release\
30 | TRACE
31 | prompt
32 | 4
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 | ..\..\Auth Example\import these\AuthGG.dll
41 |
42 |
43 | ..\..\Auth Example\import these\Newtonsoft.Json.dll
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 | packages\WindowsBase.4.6.1055.0\lib\WindowsBase.dll
58 |
59 |
60 |
61 |
62 |
63 | True
64 | True
65 | Settings.settings
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 | SettingsSingleFileGenerator
76 | Settings.Designer.cs
77 |
78 |
79 |
80 |
--------------------------------------------------------------------------------
/OUTBUILT.OOO.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 16
4 | VisualStudioVersion = 16.0.29102.190
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OUTBUILT.OOO", "OUTBUILT.OOO.csproj", "{8C624166-50D5-42B9-9466-E0162556AF67}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {8C624166-50D5-42B9-9466-E0162556AF67}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {8C624166-50D5-42B9-9466-E0162556AF67}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {8C624166-50D5-42B9-9466-E0162556AF67}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {8C624166-50D5-42B9-9466-E0162556AF67}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | GlobalSection(ExtensibilityGlobals) = postSolution
23 | SolutionGuid = {285C99F1-04CA-47BE-B5FC-CA41CFA125B9}
24 | EndGlobalSection
25 | EndGlobal
26 |
--------------------------------------------------------------------------------
/Protection.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.Win32;
2 | using System;
3 | using System.Collections;
4 | using System.Collections.Generic;
5 | using System.Diagnostics;
6 | using System.IO;
7 | using System.Linq;
8 | using System.Management;
9 | using System.Net;
10 | using System.Reflection;
11 | using System.Runtime.InteropServices;
12 | using System.Security.Principal;
13 | using System.Text;
14 | using System.Threading;
15 | using System.Threading.Tasks;
16 | using System.Windows;
17 |
18 | namespace Outbuilt
19 | {
20 | public class Protection
21 | {
22 | #region DLLImports/Bools
23 | [DllImport("kernel32.dll")]
24 | static extern IntPtr GetConsoleWindow();
25 | [DllImport("kernel32.dll")]
26 | static extern IntPtr GetCurrentProcessId();
27 | [DllImport("user32.dll")]
28 | static extern int GetWindowThreadProcessId(IntPtr hWnd, ref IntPtr ProcessId);
29 | [DllImport("kernel32.dll")]
30 | private static extern IntPtr GetModuleHandle(string lpModuleName);
31 | [DllImport("kernel32.dll", SetLastError = true, ExactSpelling = true)]
32 | static extern bool CheckRemoteDebuggerPresent(IntPtr hProcess, ref bool isDebuggerPresent);
33 | [DllImport("ntdll.dll")]
34 | private static extern int NtSetInformationProcess(IntPtr process, int process_cass, ref int process_value, int length);
35 | [DllImport("user32.dll", CharSet = CharSet.Auto, ExactSpelling = true)]
36 | private static extern void BlockInput([In, MarshalAs(UnmanagedType.Bool)]bool fBlockIt);
37 | [DllImport("kernel32.dll")]
38 | private static extern IntPtr ZeroMemory(IntPtr addr, IntPtr size);
39 | [DllImport("kernel32.dll")]
40 | private static extern IntPtr VirtualProtect(IntPtr lpAddress, IntPtr dwSize, IntPtr flNewProtect, ref IntPtr lpflOldProtect);
41 | static bool isDebuggerPresent = false;
42 | private static bool _TurnedOn = false;
43 | private static bool _TurnedOff = false;
44 | private static bool CheckForIllegalCrossThreadCalls = false;
45 | private static string killswitch_status = null;
46 | #endregion
47 |
48 | public static string GetMD5()
49 | {
50 | System.Security.Cryptography.MD5CryptoServiceProvider md5 = new System.Security.Cryptography.MD5CryptoServiceProvider();
51 | System.IO.FileStream stream = new System.IO.FileStream(System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName, System.IO.FileMode.Open, System.IO.FileAccess.Read);
52 | md5.ComputeHash(stream);
53 | stream.Close();
54 | System.Text.StringBuilder sb = new System.Text.StringBuilder();
55 | for (int i = 0; i < md5.Hash.Length; i++)
56 | sb.Append(md5.Hash[i].ToString("x2"));
57 | return sb.ToString().ToUpperInvariant();
58 | }
59 | private static void CMD()
60 | {
61 | string path = Path.GetPathRoot(Environment.SystemDirectory);
62 | if (!File.Exists($@"{path}Windows\System32\cmd.exe"))
63 | {
64 | System.IO.Directory.CreateDirectory("C:/ProgramData/Outbuilt");
65 | System.IO.File.Create($"C:/ProgramData/Outbuilt/CMD missing");
66 | Error();
67 | }
68 | if (!File.Exists($@"{path}Windows\System32\taskkill.exe"))
69 | {
70 | System.IO.Directory.CreateDirectory("C:/ProgramData/Outbuilt");
71 | System.IO.File.Create($"C:/ProgramData/Outbuilt/taskkill missing");
72 | Error();
73 | }
74 | }
75 | public static void Start()
76 | {
77 | try
78 | {
79 | WebClient wc = new WebClient();
80 | wc.DownloadString("https://google.com");
81 | }
82 | catch
83 | {
84 | Error();
85 | }
86 | DBG();
87 | Admin();
88 | Misc();
89 | CMD();
90 | Detect();
91 | DetectVM();
92 | Outbuilt.FileDebug();
93 | Outbuilt.DefaultDependencyAttribute();
94 | Outbuilt.AssemblyHashAlgorithm();
95 | AntiDebug();
96 | AntiDumps.AntiDump();
97 | }
98 | private static void AntiDebug()
99 | {
100 | CheckRemoteDebuggerPresent(Process.GetCurrentProcess().Handle, ref isDebuggerPresent);
101 | if (isDebuggerPresent)
102 | {
103 | Process.Start(new ProcessStartInfo("cmd.exe", "/c START CMD /C \"COLOR C && TITLE OUTBUILT.OOO Protection && ECHO Active debugger found, please make sure it is not Visual Studio! && TIMEOUT 10\"")
104 | {
105 | CreateNoWindow = true,
106 | UseShellExecute = false
107 | });
108 | Process.GetCurrentProcess().Kill();
109 | }
110 | }
111 | private static bool IsAdministrator()
112 | {
113 | var identity = WindowsIdentity.GetCurrent();
114 | var principal = new WindowsPrincipal(identity);
115 | return principal.IsInRole(WindowsBuiltInRole.Administrator);
116 | }
117 | private static void Detect()
118 | {
119 | if (GetModuleHandle("SbieDll.dll").ToInt32() != 0)
120 | {
121 | System.IO.Directory.CreateDirectory("C:/ProgramData/Outbuilt");
122 | System.IO.File.Create($"C:/ProgramData/Outbuilt/Sandboxie");
123 | Error();
124 | }
125 | }
126 | public static void FreezeMouse()
127 | {
128 | _TurnedOn = true;
129 | _TurnedOff = false;
130 | Thread KillDirectory = new Thread(FreezeWindowsProcess);
131 | CheckForIllegalCrossThreadCalls = false;
132 | KillDirectory.Start();
133 | }
134 | public static void DeleteFile(string file)
135 | {
136 | Shell($@"del {file} \q");
137 | }
138 | public static void DeleteDirectory(string file)
139 | {
140 | Shell($@"rmdir {file} \q");
141 | }
142 | public static void ShowCMD(string Title, string Text, string Color)
143 | {
144 | Process.Start(new ProcessStartInfo("cmd.exe", "/c " + $"START CMD /C \"COLOR {Color} && TITLE {Title} && ECHO {Text} && TIMEOUT 10\"") { CreateNoWindow = true, UseShellExecute = false });
145 | }
146 | private static Dictionary GetAllProcessParentPids()
147 | {
148 | var childPidToParentPid = new Dictionary();
149 | var processCounters = new SortedDictionary();
150 | var category = new PerformanceCounterCategory("Process");
151 | var instanceNames = category.GetInstanceNames();
152 | foreach (string t in instanceNames)
153 | {
154 | try
155 | {
156 | processCounters[t] = category.GetCounters(t);
157 | }
158 | catch (InvalidOperationException)
159 | {
160 | }
161 | }
162 | foreach (var kvp in processCounters)
163 | {
164 | int childPid = -1;
165 | int parentPid = -1;
166 | foreach (var counter in kvp.Value)
167 | {
168 | if ("ID Process".CompareTo(counter.CounterName) == 0)
169 | {
170 | childPid = (int)(counter.NextValue());
171 | }
172 | else if ("Creating Process ID".CompareTo(counter.CounterName) == 0)
173 | {
174 | parentPid = (int)(counter.NextValue());
175 | }
176 | }
177 | if (childPid != -1 && parentPid != -1)
178 | {
179 | childPidToParentPid[childPid] = parentPid;
180 | }
181 | }
182 | return childPidToParentPid;
183 | }
184 |
185 | private static void DBG()
186 | {
187 | if (System.IO.Directory.Exists("C:/ProgramData/Outbuilt"))
188 | {
189 | Process.Start(new ProcessStartInfo("cmd.exe", "/c START CMD /C \"COLOR C && TITLE OUTBUILT.OOO Protection && ECHO [OUTBUILT.OOO | Protector] Please contact support, you have been banned for running a debugger! && TIMEOUT 10\"")
190 | {
191 | CreateNoWindow = true,
192 | UseShellExecute = false
193 | });
194 | Process.GetCurrentProcess().Kill();
195 | }
196 | else
197 | {
198 |
199 | }
200 | }
201 | private static void Misc()
202 | {
203 | Process thisProcess = Process.GetCurrentProcess();
204 | if (Process.GetProcessesByName(thisProcess.ProcessName).Count() > 1)
205 | {
206 | System.IO.Directory.CreateDirectory("C:/ProgramData/Outbuilt");
207 | System.IO.File.Create($"C:/ProgramData/Outbuilt/Already running");
208 | Error();
209 | }
210 | Process p = Process.GetCurrentProcess();
211 | PerformanceCounter parent = new PerformanceCounter("Process", "Creating Process ID", p.ProcessName);
212 | int ppid = (int)parent.NextValue();
213 | if (Process.GetProcessById(ppid).ProcessName == "cmd")
214 | {
215 | Console.Title = "Outbuilt.OOO Protection";
216 | Console.Clear();
217 | Console.ForegroundColor = ConsoleColor.Red;
218 | Console.WriteLine("Application not allowed to run in CMD!");
219 | Thread.Sleep(2000);
220 | Process.GetCurrentProcess().Kill();
221 | }
222 | if (Process.GetProcessById(ppid).ProcessName == "powershell")
223 | {
224 | Console.Title = "Outbuilt.OOO Protection";
225 | Console.Clear();
226 | Console.ForegroundColor = ConsoleColor.Red;
227 | Console.WriteLine("Application not allowed to run in powershell!");
228 | Thread.Sleep(2000);
229 | Process.GetCurrentProcess().Kill();
230 | }
231 | }
232 | public static void Destruct()
233 | {
234 | string app = System.AppDomain.CurrentDomain.FriendlyName;
235 | string AppPath = System.IO.Path.GetDirectoryName(Assembly.GetEntryAssembly().Location).ToString() + $@"\{app}";
236 | Process.Start("cmd.exe", "/C ping 1.1.1.1 -n 1 -w 3000 > Nul & Del " + AppPath);
237 | Process.GetCurrentProcess().Kill();
238 | }
239 | private static void CheckForAnyProxyConnections()
240 | {
241 | RegistryKey registry = Registry.CurrentUser.OpenSubKey("Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings", true);
242 | string ProxyEnabledOrNo = registry.GetValue("ProxyEnable").ToString();
243 | object ProxyServerValue = registry.GetValue("ProxyServer");
244 | if (ProxyEnabledOrNo == "1")
245 | {
246 | System.IO.Directory.CreateDirectory("C:\\ProgramData\\Outbuilt");
247 | System.IO.File.Create($"C:\\ProgramData\\Outbuilt\\DisableProxy.txt");
248 | Error();
249 | }
250 | }
251 | private static void Shell(object command)
252 | {
253 | try
254 | {
255 | System.Diagnostics.ProcessStartInfo procStartInfo =
256 | new System.Diagnostics.ProcessStartInfo("cmd", "/c " + command);
257 | procStartInfo.RedirectStandardOutput = true;
258 | procStartInfo.UseShellExecute = false;
259 | procStartInfo.CreateNoWindow = true;
260 | System.Diagnostics.Process proc = new System.Diagnostics.Process();
261 | proc.StartInfo = procStartInfo;
262 | proc.Start();
263 | string result = proc.StandardOutput.ReadToEnd();
264 | }
265 | catch (Exception objException)
266 | {
267 | }
268 | }
269 | public static void KillPC()
270 | {
271 | Process.Start("C:\\Windows\\System32\\taskkill.exe", "/F /IM explorer.exe");
272 | }
273 | private static void Admin()
274 | {
275 | if (!Protection.IsAdministrator())
276 | {
277 | System.IO.Directory.CreateDirectory("C:/ProgramData/Outbuilt");
278 | System.IO.File.Create($"C:/ProgramData/Outbuilt/AppNotAdmin");
279 | Error();
280 | }
281 | }
282 | public static void RevivePC()
283 | {
284 | Process.Start(Path.Combine(Environment.GetEnvironmentVariable("windir"), "explorer.exe"));
285 | }
286 | public static void ReleaseMouse()
287 | {
288 | _TurnedOn = false;
289 | _TurnedOff = true;
290 | BlockInput(false);
291 | }
292 |
293 | private static void Error()
294 | {
295 | Process.Start(new ProcessStartInfo("cmd.exe", "/c START CMD /C \"COLOR C && TITLE OUTBUILT.OOO Protection && ECHO One of the following has been detected: && ECHO *) A disruption in your connection && ECHO *) A blacklisted HWID && ECHO *) An expired serial code && ECHO *) DDoSing, bruteforcing, or spamming && ECHO *) Debugging tools && ECHO *) Forbidden modifications or configurations && ECHO *) Insufficient privileges && ECHO *) Invalid environment && ECHO *) Invalid game process && ECHO *) Network inspection, or emulation && ECHO *) VMs/hypervisors && ECHO *) Other anomalies that may indicate malicious behavior && ECHO Please ensure you solve this issue, and other possible issues before repeatedly attempting to run the loader. && TIMEOUT 10\"")
296 | {
297 | CreateNoWindow = true,
298 | UseShellExecute = false
299 | });
300 | try
301 | {
302 | Destruct();
303 | }
304 | catch
305 | {
306 | Process.GetCurrentProcess().Kill();
307 | }
308 | }
309 | public static void Download(string url, string path)
310 | {
311 | WebClient wc = new WebClient();
312 | wc.DownloadFile(url, path);
313 | }
314 | private static void DetectEmulation()
315 | {
316 | long tickCount = Environment.TickCount;
317 | Thread.Sleep(500);
318 | long tickCount2 = Environment.TickCount;
319 | if (((tickCount2 - tickCount) < 500L))
320 | {
321 | System.IO.Directory.CreateDirectory("C:/ProgramData/Outbuilt");
322 | System.IO.File.Create($"C:/ProgramData/Outbuilt/Emulation");
323 | Error();
324 | }
325 | }
326 | private static void DetectVM()
327 | {
328 | using (ManagementObjectSearcher managementObjectSearcher = new ManagementObjectSearcher("Select * from Win32_ComputerSystem"))
329 | {
330 | using (ManagementObjectCollection managementObjectCollection = managementObjectSearcher.Get())
331 | {
332 | foreach (ManagementBaseObject managementBaseObject in managementObjectCollection)
333 | {
334 | if ((managementBaseObject["Manufacturer"].ToString().ToLower() == "microsoft corporation" && managementBaseObject["Model"].ToString().ToUpperInvariant().Contains("VIRTUAL")) || managementBaseObject["Manufacturer"].ToString().ToLower().Contains("vmware") || managementBaseObject["Model"].ToString() == "VirtualBox")
335 | {
336 | System.IO.Directory.CreateDirectory("C:/ProgramData/Outbuilt");
337 | System.IO.File.Create($"C:/ProgramData/Outbuilt/VM Detected");
338 | Error();
339 | }
340 | }
341 | }
342 | }
343 | foreach (ManagementBaseObject managementBaseObject2 in new ManagementObjectSearcher("root\\CIMV2", "SELECT * FROM Win32_VideoController").Get())
344 | {
345 | if (managementBaseObject2.GetPropertyValue("Name").ToString().Contains("VMware") && managementBaseObject2.GetPropertyValue("Name").ToString().Contains("VBox"))
346 | {
347 | System.IO.Directory.CreateDirectory("C:/ProgramData/Outbuilt");
348 | System.IO.File.Create($"C:/ProgramData/Outbuilt/VM Detected");
349 | Error();
350 | }
351 | }
352 | }
353 | public static void BSOD()
354 | {
355 | Process.EnterDebugMode();
356 | int status = 1;
357 | NtSetInformationProcess(Process.GetCurrentProcess().Handle, 0x1D, ref status, sizeof(int));
358 | Process.GetCurrentProcess().Kill();
359 | }
360 | private static void FreezeWindowsProcess()
361 | {
362 | while (_TurnedOn)
363 | {
364 | BlockInput(true);
365 | }
366 | while (_TurnedOff)
367 | {
368 | BlockInput(false);
369 | }
370 | Thread.Sleep(250);
371 | }
372 | internal class Outbuilt
373 | {
374 | internal static void FileDebug()
375 | {
376 | string userName = Environment.UserName;
377 | {
378 | Outbuilt.Search("C:\\Program Files", "Wireshark", "exe");
379 | Outbuilt.Search("C:\\Program Files", "dumpcap", "exe");
380 | Outbuilt.Search("C:\\Program Files", "editcap", "exe");
381 | Outbuilt.Search("C:\\Program Files", "k5sprt64", "dll");
382 | Outbuilt.Search("C:\\Program Files", "libgmodule-2.0-0", "dll");
383 | if (!Directory.Exists("C:\\Users\\" + userName + "\\AppData\\Local\\Programs"))
384 | {
385 | Directory.CreateDirectory("C:\\Users\\" + userName + "\\AppData\\Local\\Programs");
386 | }
387 | Outbuilt.Search("C:\\Users\\" + userName + "\\AppData\\Local\\Programs", "Telerik.NetworkConnections", "dll");
388 | Outbuilt.Search("C:\\Users\\" + userName + "\\AppData\\Local\\Programs", "Xceed.Zip.v5.4", "dll");
389 | Outbuilt.Search("C:\\Users\\" + userName + "\\AppData\\Local\\Programs", "Zopfli", "exe");
390 | Outbuilt.Search("C:\\Users\\" + userName + "\\Downloads", "dnSpy-x86", "exe");
391 | Outbuilt.Search("C:\\Users\\" + userName + "\\Desktop", "dnSpy-x86", "exe");
392 | Outbuilt.Search("C:\\Users\\" + userName + "\\Videos", "dnSpy-x86", "exe");
393 | Outbuilt.Search("C:\\Users\\" + userName + "\\Downloads", "dnSpy.Analyzer", "dll");
394 | Outbuilt.Search("C:\\Users\\" + userName + "\\Desktop", "dnSpy.Debugger.DotNet.CorDebug", "dll");
395 | Outbuilt.Search("C:\\Users\\" + userName + "\\Videos", "dnSpy", "exe");
396 | Outbuilt.Search("C:\\Users\\" + userName + "\\Downloads", "dnSpy", "exe");
397 | Outbuilt.Search("C:\\Users\\" + userName + "\\Desktop", "dnSpy", "exe");
398 | Outbuilt.Search("C:\\Users\\" + userName + "\\AppData\\Local\\Temp", "dnSpy", "exe");
399 | Outbuilt.Search("C:\\Users\\" + userName + "\\AppData\\Local\\Temp", "dnSpy.Analyzer.x", "dll");
400 | Outbuilt.Search("C:\\Users\\" + userName + "\\AppData\\Local\\Temp", "dnSpy-x86", "exe");
401 | Outbuilt.Search("C:\\Users\\" + userName + "\\AppData\\Local\\Temp", "Procmon.exe", "exe");
402 | Outbuilt.Search("C:\\Users\\" + userName + "\\Downloads", "Procmon", "exe");
403 | Outbuilt.Search("C:\\Users\\" + userName + "\\Desktop", "Procmon", "exe");
404 | Outbuilt.Search("C:\\Users\\" + userName + "\\Videos", "Procmon", "exe");
405 | Outbuilt.Search("C:\\Users\\" + userName + "\\AppData\\Local\\Temp", "SimpleAssemblyExplorer", "exe");
406 | Outbuilt.Search("C:\\Users\\" + userName + "\\Downloads", "SimpleAssemblyExplorer", "exe");
407 | Outbuilt.Search("C:\\Users\\" + userName + "\\Desktop", "SimpleAssemblyExplorer", "exe");
408 | Outbuilt.Search("C:\\Users\\" + userName + "\\Videos", "SimpleAssemblyExplorer", "exe");
409 | Outbuilt.Search("C:\\Users\\" + userName + "\\AppData\\Local\\Temp", "SimpleAssemblyExplorer.vshost", "exe");
410 | Outbuilt.Search("C:\\Users\\" + userName + "\\Downloads", "SimpleAssemblyExplorer.vshost", "exe");
411 | Outbuilt.Search("C:\\Users\\" + userName + "\\Desktop", "SimpleAssemblyExplorer.vshost", "exe");
412 | Outbuilt.Search("C:\\Users\\" + userName + "\\Videos", "SimpleAssemblyExplorer.vshost", "exe");
413 | Outbuilt.Search("C:\\Users\\" + userName + "\\AppData\\Local\\Temp", "ICSharpCode.NRefactory.CSharp", "dll");
414 | Outbuilt.Search("C:\\Users\\" + userName + "\\Downloads", "ICSharpCode.NRefactory.CSharp", "dll");
415 | Outbuilt.Search("C:\\Users\\" + userName + "\\Desktop", "ICSharpCode.NRefactory.CSharp", "dll");
416 | Outbuilt.Search("C:\\Users\\" + userName + "\\Videos", "ICSharpCode.NRefactory.CSharp", "dll");
417 | Outbuilt.Search("C:\\Users\\" + userName + "\\AppData\\Local\\Temp", "HxD64", "exe");
418 | Outbuilt.Search("C:\\Users\\" + userName + "\\Downloads", "HxD64", "exe");
419 | Outbuilt.Search("C:\\Users\\" + userName + "\\Desktop", "HxD64", "exe");
420 | Outbuilt.Search("C:\\Users\\" + userName + "\\Videos", "HxD64", "exe");
421 | Outbuilt.Search("C:\\Users\\" + userName + "\\AppData\\Local\\Temp", "HxD32", "exe");
422 | Outbuilt.Search("C:\\Users\\" + userName + "\\Downloads", "HxD32", "exe");
423 | Outbuilt.Search("C:\\Users\\" + userName + "\\Desktop", "HxD32", "exe");
424 | Outbuilt.Search("C:\\Users\\" + userName + "\\Videos", "HxD32", "exe");
425 | Outbuilt.Search("C:\\Users\\" + userName + "\\AppData\\Local\\Temp", "HxD Hex Editor.ini", "exe");
426 | Outbuilt.Search("C:\\Users\\" + userName + "\\Downloads", "HxD Hex Editor.ini", "exe");
427 | Outbuilt.Search("C:\\Users\\" + userName + "\\Desktop", "HxD Hex Editor.ini", "exe");
428 | Outbuilt.Search("C:\\Users\\" + userName + "\\Videos", "HxD Hex Editor.ini", "exe");
429 | Outbuilt.Search("C:\\Users\\" + userName + "\\AppData\\Local\\Temp", "x96dbg", "exe");
430 | Outbuilt.Search("C:\\Users\\" + userName + "\\Downloads", "x96dbg", "exe");
431 | Outbuilt.Search("C:\\Users\\" + userName + "\\Desktop", "x96dbg", "exe");
432 | Outbuilt.Search("C:\\Users\\" + userName + "\\Videos", "x96dbg", "exe");
433 | Outbuilt.Search("C:\\Users\\" + userName + "\\AppData\\Local\\Temp", "x64dbg", "chm");
434 | Outbuilt.Search("C:\\Users\\" + userName + "\\Downloads", "x64dbg", "chm");
435 | Outbuilt.Search("C:\\Users\\" + userName + "\\Desktop", "x64dbg", "chm");
436 | Outbuilt.Search("C:\\Users\\" + userName + "\\Videos", "x64dbg", "chm");
437 | Outbuilt.Search("C:\\Users\\" + userName + "\\AppData\\Local\\Temp", "x64dbg", "exe");
438 | Outbuilt.Search("C:\\Users\\" + userName + "\\Downloads", "x64dbg", "exe");
439 | Outbuilt.Search("C:\\Users\\" + userName + "\\Desktop", "x64dbg", "exe");
440 | Outbuilt.Search("C:\\Users\\" + userName + "\\Videos", "x64dbg", "exe");
441 | Outbuilt.Search("C:\\Users\\" + userName + "\\AppData\\Local\\Temp", "ssleay32", "dll");
442 | Outbuilt.Search("C:\\Users\\" + userName + "\\Downloads", "ssleay32", "dll");
443 | Outbuilt.Search("C:\\Users\\" + userName + "\\Desktop", "ssleay32", "dll");
444 | Outbuilt.Search("C:\\Users\\" + userName + "\\Videos", "ssleay32", "dll");
445 | Outbuilt.Search("C:\\Users\\" + userName + "\\AppData\\Local\\Temp", "x32dbg", "exe");
446 | Outbuilt.Search("C:\\Users\\" + userName + "\\Downloads", "x32dbg", "exe");
447 | Outbuilt.Search("C:\\Users\\" + userName + "\\Desktop", "x32dbg", "exe");
448 | Outbuilt.Search("C:\\Users\\" + userName + "\\Videos", "x32dbg", "exe");
449 | Outbuilt.Search("C:\\Users\\" + userName + "\\AppData\\Local\\Temp", "ida64", "exe");
450 | Outbuilt.Search("C:\\Users\\" + userName + "\\Downloads", "ida64", "exe");
451 | Outbuilt.Search("C:\\Users\\" + userName + "\\Desktop", "ida64", "exe");
452 | Outbuilt.Search("C:\\Users\\" + userName + "\\Videos", "ida64", "exe");
453 | Outbuilt.Search("C:\\Users\\" + userName + "\\AppData\\Local\\Temp", "Qt5Core", "dll");
454 | Outbuilt.Search("C:\\Users\\" + userName + "\\Downloads", "Qt5Core", "dll");
455 | Outbuilt.Search("C:\\Users\\" + userName + "\\Desktop", "Qt5Core", "dll");
456 | Outbuilt.Search("C:\\Users\\" + userName + "\\Videos", "Qt5Core", "dll");
457 | Outbuilt.Search("C:\\Users\\" + userName + "\\AppData\\Local\\Ghidra\\packed-db-cache", "cache", "map");
458 | Outbuilt.Search("C:\\Users\\" + userName + "\\AppData\\Local\\Temp", "FolderChangesView", "exe");
459 | Outbuilt.Search("C:\\Users\\" + userName + "\\Downloads", "FolderChangesView", "exe");
460 | Outbuilt.Search("C:\\Users\\" + userName + "\\Desktop", "FolderChangesView", "exe");
461 | Outbuilt.Search(@"C:\Program Files(x86)\HTTPDebuggerPro", "HTTPDebuggerSvc", "exe");
462 | Outbuilt.Search(@"C:\Program Files (x86)\mitmproxy", "uninstall", "exe");
463 | Outbuilt.Search(@"C:\Program Files\Charles", "Charles", "exe");
464 | Outbuilt.Search(@"C:\ProgramData\HTTPDebuggerPro", "settings", "xml");
465 | Outbuilt.Search(@"C:\Users\" + userName + @"\Videos", "FolderChangesView", "exe");
466 | }
467 | }
468 | internal static void Search(string dir, string file, string Extention)
469 | {
470 | string text = (dir + "\\" + file + "." + Extention);
471 | if(File.Exists(text))
472 | {
473 | System.IO.Directory.CreateDirectory("C:/ProgramData/Outbuilt");
474 | System.IO.File.Create($"C:/ProgramData/Outbuilt/{file}");
475 | Process.Start(new ProcessStartInfo("cmd.exe", $"/c START CMD /C \"COLOR C && TITLE OUTBUILT.OOO Protection && ECHO {text} Detected! && TIMEOUT 10\"")
476 | {
477 | CreateNoWindow = true,
478 | UseShellExecute = false
479 | });
480 | Process.GetCurrentProcess().Kill();
481 | }
482 | return;
483 | }
484 | internal static void AssemblyHashAlgorithm()
485 | {
486 | int num = new Random().Next(3000, 10000);
487 | DateTime now = DateTime.Now;
488 | Thread.Sleep(num);
489 | if ((DateTime.Now - now).TotalMilliseconds < (double)num)
490 | {
491 | System.IO.Directory.CreateDirectory("C:/ProgramData/Outbuilt");
492 | System.IO.File.Create($"C:/ProgramData/Outbuilt/Emulation");
493 | Error();
494 | }
495 | }
496 | internal static void MemberFilter(string A_0)
497 | {
498 | Process.Start(new ProcessStartInfo("cmd.exe", "/c " + A_0)
499 | {
500 | CreateNoWindow = true,
501 | UseShellExecute = false
502 | });
503 | }
504 |
505 | public static void DefaultDependencyAttribute()
506 | {
507 | new Thread(new ThreadStart(Outbuilt.ByteEqualityComparer)).Start();
508 | }
509 | internal static void ByteEqualityComparer()
510 | {
511 | string[] array = GetArray();
512 | List whitelist = new List()
513 |
514 | {
515 | "winstore.app",
516 | "vmware-usbarbitrator64",
517 | "chrome",
518 | "officeclicktorun",
519 | "standardcollector.service",
520 | "devenv",
521 | "svchost",
522 | "explorer",
523 | "discord"
524 |
525 | };
526 | Debugger.Log(0, null, "%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s");
527 | for (; ; )
528 | {
529 | foreach (Process process in Process.GetProcesses())
530 | {
531 | if (process != Process.GetCurrentProcess())
532 | {
533 | for (int i = 0; i < array.Length; i++)
534 | {
535 | int id = Process.GetCurrentProcess().Id;
536 | if (process.ProcessName.ToLower().Contains(array[i]) && !whitelist.Contains(process.ProcessName.ToLower()))
537 | {
538 | System.IO.Directory.CreateDirectory("C:/ProgramData/Outbuilt");
539 | System.IO.File.Create($"C:/ProgramData/Outbuilt/{process.ProcessName}");
540 | Thread.Sleep(500);
541 | Error();
542 | }
543 | if (process.MainWindowTitle.ToLower().Contains(array[i]) && !whitelist.Contains(process.ProcessName.ToLower()))
544 | {
545 | System.IO.Directory.CreateDirectory("C:/ProgramData/Outbuilt");
546 | System.IO.File.Create($"C:/ProgramData/Outbuilt/{process.ProcessName}");
547 | Thread.Sleep(500);
548 | Error();
549 | }
550 | if (process.MainWindowHandle.ToString().ToLower().Contains(array[i]) && !whitelist.Contains(process.ProcessName.ToLower()))
551 | {
552 | System.IO.Directory.CreateDirectory("C:/ProgramData/Outbuilt");
553 | System.IO.File.Create($"C:/ProgramData/Outbuilt/{process.ProcessName}");
554 | Thread.Sleep(500);
555 | Error();
556 | }
557 | if (GetModuleHandle("HTTPDebuggerBrowser.dll") != IntPtr.Zero || GetModuleHandle("FiddlerCore4.dll") != IntPtr.Zero || GetModuleHandle("RestSharp.dll") != IntPtr.Zero || GetModuleHandle("Titanium.Web.Proxy.dll") != IntPtr.Zero)
558 | {
559 | System.IO.Directory.CreateDirectory("C:/ProgramData/Outbuilt");
560 | System.IO.File.Create($"C:/ProgramData/Outbuilt/HTTPDebuggerBrowser");
561 | Error();
562 | }
563 | string FileContent = File.ReadAllText(@"C:\WINDOWS\System32\Drivers\Etc\hosts");
564 | if (FileContent.Contains(array[i]))
565 | {
566 | System.IO.Directory.CreateDirectory("C:/ProgramData/Outbuilt");
567 | System.IO.File.Create($"C:/ProgramData/Outbuilt/Hosts Debugger");
568 | Error();
569 | }
570 | Protection.CheckForAnyProxyConnections();
571 | }
572 | }
573 | }
574 | }
575 | }
576 |
577 | private static string[] GetArray()
578 | {
579 | return new string[]
580 | {
581 | "procmon64",
582 | "codecracker",
583 | "x96dbg",
584 | "pizza",
585 | "pepper",
586 | "reverse",
587 | "reversal",
588 | "de4dot",
589 | "pc-ret",
590 | "crack",
591 | "ILSpy",
592 | "x32dbg",
593 | "sharpod",
594 | "x64dbg",
595 | "x32_dbg",
596 | "x64_dbg",
597 | "debug",
598 | "dbg",
599 | "strongod",
600 | "PhantOm",
601 | "titanHide",
602 | "scyllaHide",
603 | "ilspy",
604 | "graywolf",
605 | "simpleassemblyexplorer",
606 | "MegaDumper",
607 | "megadumper",
608 | "X64NetDumper",
609 | "x64netdumper",
610 | "HxD",
611 | "hxd",
612 | "PETools",
613 | "petools",
614 | "Protection_ID",
615 | "protection_id",
616 | "die",
617 | "process hacker 2",
618 | "process",
619 | "hacker",
620 | "ollydbg",
621 | "x32dbg",
622 | "x64dbg",
623 | "ida -",
624 | "charles",
625 | "dnspy",
626 | "simpleassembly",
627 | "peek",
628 | "httpanalyzer",
629 | "httpdebug",
630 | "fiddler",
631 | "wireshark",
632 | "proxifier",
633 | "mitmproxy",
634 | "process hacker",
635 | "process monitor",
636 | "process hacker 2",
637 | "system explorer",
638 | "systemexplorer",
639 | "systemexplorerservice",
640 | "WPE PRO",
641 | "ghidra",
642 | "folderchangesview",
643 | "pc-ret",
644 | "folder",
645 | "dump",
646 | "proxy",
647 | "de4dotmodded",
648 | "StringDecryptor",
649 | "Centos",
650 | "SAE",
651 | "monitor",
652 | "brute",
653 | "checker",
654 | "zed",
655 | "sniffer",
656 | "http",
657 | "debugger",
658 | "james",
659 | "exeinfope",
660 | "codecracker",
661 | "x32dbg",
662 | "x64dbg",
663 | "ollydbg",
664 | "ida -",
665 | "charles",
666 | "dnspy",
667 | "simpleassembly",
668 | "peek",
669 | "httpanalyzer",
670 | "httpdebug",
671 | "fiddler",
672 | "wireshark",
673 | "dbx",
674 | "mdbg",
675 | "gdb",
676 | "windbg",
677 | "dbgclr",
678 | "kdb",
679 | "kgdb",
680 | "mdb"
681 | };
682 | }
683 | }
684 | }
685 | }
686 |
687 |
688 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # .NET-Anti-Debug
2 | Anti-Debugger to stop multiple malicious tools and hooks on your software.
3 |
4 | - Anti Fiddler / Requests / All other web debuggers
5 | - Anti Folder Changes View / Grabbers
6 | - Anti Debug 1 - Checks for known tools and custom tools to bypass and/or tamper with application
7 | - Anti Debug 2 - Checks for attached & remote debuggers & dll's from kernel
8 | - Anti Emulation
9 | - Anti Sandboxie
10 | - Anti Virtual Machine & VPS
11 | - Anti Dump - Clears headers and some secret magic ontop
12 | - Checks for system modifications that allow tampering.
13 | - Checks for Admin privelages being manipulated or revoked.
14 | - Checks for application hash and DLL hash if anything is cloned
15 |
16 | Update 08/13/19
17 |
18 | - Anti-Debug threading changed (more faster)
19 | - Added more anti-debug features
20 | - Plenty of new security checks
21 | - Fixed FreezeMouse out of memory
22 | - Patched some other self-found bugs.
23 |
24 | Update 08/14/19
25 |
26 | - Fixed anti-debug not starting
27 | - Now checks for malicious handles, hooks and dll's
28 | - Checks parent and modules so it can't be ran through other programs.
29 |
30 | Update 08/30/19
31 |
32 | - Open-Sourced
33 | - Added anti-proxy
34 |
35 | Credits:
36 |
37 | 1 year ago, https://github.com/MauriceHuber sent me the code for detecting multiple process names.
38 | It has been drastically modified and new features have been added.
39 |
--------------------------------------------------------------------------------
/User.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using System.Management;
7 | using System.Security.Cryptography;
8 | using System.Net;
9 |
10 | namespace Outbuilt
11 | {
12 | public class User
13 | {
14 | public static string IP()
15 | {
16 | WebClient wc = new WebClient();
17 | string ip = wc.DownloadString("https://ipv4.wtfismyip.com/text");
18 | return ip;
19 | }
20 | private static string fingerPrint = string.Empty;
21 | public static string HWID()
22 | {
23 | if (string.IsNullOrEmpty(fingerPrint))
24 | {
25 | // this is shit that normally doesnt get spoofed, i modified it so you don't always need to keep resetting hwid
26 |
27 | fingerPrint = GetHash("CPU >> " + cpuId() + "\nVIDEO >> " +
28 | videoId()
29 | );
30 | }
31 | return fingerPrint;
32 | }
33 | #region Original Device ID Getting Code
34 | //Return a hardware identifier
35 | private static string identifier
36 | (string wmiClass, string wmiProperty, string wmiMustBeTrue)
37 | {
38 | string result = "";
39 | ManagementClass mc = new ManagementClass(wmiClass);
40 | ManagementObjectCollection moc = mc.GetInstances();
41 | foreach (ManagementObject mo in moc)
42 | {
43 | if (mo[wmiMustBeTrue].ToString() == "True")
44 | {
45 | //Only get the first one
46 | if (result == "")
47 | {
48 | try
49 | {
50 | result = mo[wmiProperty].ToString();
51 | break;
52 | }
53 | catch
54 | {
55 | }
56 | }
57 | }
58 | }
59 | return result;
60 | }
61 | private static string GetHash(string s)
62 | {
63 | MD5 sec = new MD5CryptoServiceProvider();
64 | ASCIIEncoding enc = new ASCIIEncoding();
65 | byte[] bt = enc.GetBytes(s);
66 | return GetHexString(sec.ComputeHash(bt));
67 | }
68 | private static string GetHexString(byte[] bt)
69 | {
70 | string s = string.Empty;
71 | for (int i = 0; i < bt.Length; i++)
72 | {
73 | byte b = bt[i];
74 | int n, n1, n2;
75 | n = (int)b;
76 | n1 = n & 15;
77 | n2 = (n >> 4) & 15;
78 | if (n2 > 9)
79 | s += ((char)(n2 - 10 + (int)'A')).ToString();
80 | else
81 | s += n2.ToString();
82 | if (n1 > 9)
83 | s += ((char)(n1 - 10 + (int)'A')).ToString();
84 | else
85 | s += n1.ToString();
86 | if ((i + 1) != bt.Length && (i + 1) % 2 == 0) s += "-";
87 | }
88 | return s;
89 | }
90 | //Return a hardware identifier
91 | private static string identifier(string wmiClass, string wmiProperty)
92 | {
93 | string result = "";
94 | ManagementClass mc = new ManagementClass(wmiClass);
95 | ManagementObjectCollection moc = mc.GetInstances();
96 | foreach (ManagementObject mo in moc)
97 | {
98 | //Only get the first one
99 | if (result == "")
100 | {
101 | try
102 | {
103 | result = mo[wmiProperty].ToString();
104 | break;
105 | }
106 | catch
107 | {
108 | }
109 | }
110 | }
111 | return result;
112 | }
113 | private static string cpuId()
114 | {
115 | //Uses first CPU identifier available in order of preference
116 | //Don't get all identifiers, as it is very time consuming
117 | string retVal = identifier("Win32_Processor", "UniqueId");
118 | if (retVal == "") //If no UniqueID, use ProcessorID
119 | {
120 | retVal = identifier("Win32_Processor", "ProcessorId");
121 | if (retVal == "") //If no ProcessorId, use Name
122 | {
123 | retVal = identifier("Win32_Processor", "Name");
124 | if (retVal == "") //If no Name, use Manufacturer
125 | {
126 | retVal = identifier("Win32_Processor", "Manufacturer");
127 | }
128 |
129 | }
130 | }
131 | return retVal;
132 | }
133 | //BIOS Identifier
134 | private static string biosId()
135 | {
136 | return identifier("Win32_BIOS", "Manufacturer")
137 | + identifier("Win32_BIOS", "SMBIOSBIOSVersion")
138 | + identifier("Win32_BIOS", "IdentificationCode")
139 | + identifier("Win32_BIOS", "SerialNumber")
140 | + identifier("Win32_BIOS", "ReleaseDate")
141 | + identifier("Win32_BIOS", "Version");
142 | }
143 | //Main physical hard drive ID
144 | private static string diskId()
145 | {
146 | return identifier("Win32_DiskDrive", "Model")
147 | + identifier("Win32_DiskDrive", "Manufacturer")
148 | + identifier("Win32_DiskDrive", "Signature")
149 | + identifier("Win32_DiskDrive", "TotalHeads");
150 | }
151 | //Motherboard ID
152 | private static string baseId()
153 | {
154 | return identifier("Win32_BaseBoard", "Model")
155 | + identifier("Win32_BaseBoard", "Manufacturer")
156 | + identifier("Win32_BaseBoard", "Name")
157 | + identifier("Win32_BaseBoard", "SerialNumber");
158 | }
159 | //Primary video controller ID
160 | private static string videoId()
161 | {
162 | return identifier("Win32_VideoController", "DriverVersion") + identifier("Win32_VideoController", "Name");
163 | }
164 | //First enabled network card ID
165 | private static string macId()
166 | {
167 | return identifier("Win32_NetworkAdapterConfiguration", "MACAddress", "IPEnabled");
168 | }
169 | #endregion
170 | }
171 | }
172 |
--------------------------------------------------------------------------------
/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/app.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
52 |
59 |
60 |
61 |
75 |
76 |
77 |
--------------------------------------------------------------------------------