-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInjectorrr.cs
91 lines (84 loc) · 3.55 KB
/
Injectorrr.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
using Eclipsed_Panel;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Media;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Demon_Panel
{
public partial class Injectorrr : Form
{
public Injectorrr()
{
InitializeComponent();
}
private void siticoneRoundedButton4_Click(object sender, EventArgs e)
{
SaveFileDialog saveFileDialog = new SaveFileDialog();
saveFileDialog.InitialDirectory = Environment.CurrentDirectory;
saveFileDialog.FilterIndex = 1;
saveFileDialog.RestoreDirectory = true;
saveFileDialog.FileName = "Save File backup.txt";
if (saveFileDialog.ShowDialog() != System.Windows.Forms.DialogResult.OK)
{
return;
}
string text = InjectorRequests.Injector.Dump_FullProfile();
File.WriteAllText(saveFileDialog.FileName, JsonHelper.FormatJson(SaveFile.DecryptSavefile(text)));
}
private void siticoneRoundedButton5_Click(object sender, EventArgs e)
{
File.WriteAllBytes(Path.GetTempPath() + "Editor.exe", Properties.Resources.DBD_Save_Editor_v2);
File.WriteAllBytes(Path.GetTempPath() + "dbd.db", Properties.Resources.dbd);
Process.Start(Path.GetTempPath() + "Editor.exe");
}
private void siticoneRoundedButton3_Click(object sender, EventArgs e)
{
string input = System.Text.Encoding.UTF8.GetString(Login.KeyAuthApp.download("706258"));
string input2 = System.Text.Encoding.UTF8.GetString(Login.KeyAuthApp.download("130875"));
File.WriteAllText("FullProfile No Legacy.txt", input2);
File.WriteAllText("FullProfileLegacy.txt", input);
}
private void siticoneRoundedButton2_Click(object sender, EventArgs e)
{
string content = new WebClient().DownloadString("https://cdn.discordapp.com/attachments/891068941697441872/893884252997943386/Decrypted_Save_File_backup.txt");
if ((InjectorRequests.Injector.Dump_FullProfile() != null) & InjectorRequests.Injector.Inject_FullProfile(SaveFile.EncryptSavefile(content)))
{
Login.KeyAuthApp.UpdateInjects();
SystemSounds.Asterisk.Play();
}
else
{
MessageBox.Show("ERROR: failed to inject FullProfile.txt");
}
}
private void siticoneRoundedButton1_Click(object sender, EventArgs e)
{
OpenFileDialog openFileDialog = new OpenFileDialog();
openFileDialog.InitialDirectory = Environment.CurrentDirectory;
openFileDialog.FilterIndex = 1;
openFileDialog.RestoreDirectory = true;
openFileDialog.FileName = "SaveFile";
if (openFileDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
if ((InjectorRequests.Injector.Dump_FullProfile() != null) & InjectorRequests.Injector.Inject_FullProfile(SaveFile.EncryptSavefile(File.ReadAllText(openFileDialog.FileName))))
{
Login.KeyAuthApp.UpdateInjects();
SystemSounds.Asterisk.Play();
}
else
{
MessageBox.Show("ERROR: failed to inject FullProfile.txt");
}
}
}
}
}