Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Can be used on any COD! Just insert the inject script and the right image address
- using System;
- using System.IO;
- using System.Linq;
- using System.Windows.Forms;
- namespace CamoCutter
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- public byte[] BeforePic;
- public byte[] AfterPic;
- private void button1_Click(object sender, EventArgs e)
- {
- //Open File | Only .dds .bin format allowed.
- OpenFileDialog openFileDialog1 = new OpenFileDialog();
- openFileDialog1.InitialDirectory = "c:\\";
- openFileDialog1.Filter = "Database files (*.dds, *.bin)|*.dds;*.bin";
- openFileDialog1.FilterIndex = 0;
- openFileDialog1.RestoreDirectory = true;
- if (openFileDialog1.ShowDialog() == DialogResult.OK)
- {
- //AfterPic is the new File with the first 80 Bytes cut
- byte[] BeforePic = File.ReadAllBytes(openFileDialog1.FileName); //Read all Bytes of the chosen Picture
- byte[] AfterPic = BeforePic.Skip(80).ToArray(); //Skips the first 80 Bytes (deletes the first 80 bytes in Beforepic and stores/copies the rest in the new byte[] AfterPic)
- string Before = BitConverter.ToString(BeforePic).Replace("-", " ");
- string After = BitConverter.ToString(AfterPic).Replace("-", " ");
- //beforebox.Text = Before;
- //afterbox.Text = After;
- if (Before.Contains("44 44 53 20 7C") || Before.Contains("42 49 4E 20 7C"))
- { /*Inject AfterPic*/ }
- else
- { /*Inject BeforePic*/ }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement