Categories > Exploiting > Complaints >

"Error Occurred. Did the Dll Inject properly?" Error Message, after i injected it.

Posts: 11

Threads: 2

Joined: Feb, 2022

Reputation: 0

Posted

yes, anti-virus is ALWAYS OFF, i watched the tutorial on how to make exploits, i added the wearedevs_API dll after i downloaded the LATEST dll from the official weardevs website, i did successfully make an exploit just like the dude from the video without ANY mistake, there's NO Exception unhandled here, everything is fine, until i tested it, and once i injected it, i tried to execute it, but it says, this error "Error Occurred. Did the Dll Inject properly?" but i injected it,so what's the problem?, i couldn't find any issues here, as the person from the video didn't explain that error message, Can anyone help me please?

 

also, here's the ENTIRE CODES, and please, tell me what is the issue that caused this error? so i can fix it all by myself. :

 

FORM1.CS*     (the form of the exploit)

 

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.IO;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

using System.Windows.Forms;

using WeAreDevs_API;

 

namespace Anti_Modernity

{

    public partial class Form1 : Form

    {

        ExploitAPI Module = new ExploitAPI();

        public Form1()

        {

            InitializeComponent();

        }

        Point lastPoint;

        private void button7_Click(object sender, EventArgs e)

        {

            Application.Exit();

        }

 

        private void button8_Click(object sender, EventArgs e)

        {

            WindowState = FormWindowState.Minimized;

        }

 

        private void Form1_Load(object sender, EventArgs e)

        {

            listBox1.Items.Clear();//Clear Items in the LuaScriptList

            Functions.PopulateListBox(listBox1, "./Scripts", "*.txt");

            Functions.PopulateListBox(listBox1, "./Scripts", "*.lua");

        }

 

        private void button5_Click(object sender, EventArgs e)

        {

            Module.LaunchExploit();

        }

 

        private void button1_Click(object sender, EventArgs e)

        {

            Module.SendLuaScript(fastColoredTextBox1.Text);

        }

 

        private void button2_Click(object sender, EventArgs e)

        {

            fastColoredTextBox1.Clear();

        }

 

        private void panel1_MouseDown(object sender, MouseEventArgs e)

        {

            lastPoint = new Point(e.X, e.Y);

        }

 

        private void panel1_MouseMove(object sender, MouseEventArgs e)

        {

            if (e.Button == MouseButtons.Left)

            {

                this.Left += e.X - lastPoint.X;

                this.Top += e.Y - lastPoint.Y;

            }

        }

 

        private void button3_Click(object sender, EventArgs e)

        {

            SaveFileDialog saveFileDialog1 = new SaveFileDialog();

            if (saveFileDialog1.ShowDialog() == DialogResult.OK)

            {

                using (Stream s = File.Open(saveFileDialog1.FileName, FileMode.CreateNew))

                using (StreamWriter sw = new StreamWriter(s))

                {

                    sw.Write(fastColoredTextBox1.Text);

                }

            }

        }

 

        private void button4_Click(object sender, EventArgs e)

        {

            OpenFileDialog openFileDialog1 = new OpenFileDialog();

            if (openFileDialog1.ShowDialog() == DialogResult.OK)

            {

                openFileDialog1.Title = "Open";

                fastColoredTextBox1.Text = File.ReadAllText(openFileDialog1.FileName);

            }

        }

 

        private void button6_Click(object sender, EventArgs e)

        {

            ScriptHub openform = new ScriptHub();

            openform.Show();

        }

 

        private void listBox1_SelectedIndexChanged(object sender, EventArgs e)

        {

            fastColoredTextBox1.Text = File.ReadAllText($"./Scripts/{listBox1.SelectedItem}");

        }

 

        private void button9_Click(object sender, EventArgs e)

        {

            listBox1.Items.Clear();//Clear Items in the LuaScriptList

            Functions.PopulateListBox(listBox1, "./Scripts", "*.txt");

            Functions.PopulateListBox(listBox1, "./Scripts", "*.lua");

        }

    }

}

 

 

SCRIPTHUB.CS*      (the script hub form from the script hub button)

 

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Net;

using System.Text;

using System.Threading.Tasks;

using System.Windows.Forms;

using WeAreDevs_API;

 

namespace Anti_Modernity

{

    public partial class ScriptHub : Form

    {

        ExploitAPI Module = new ExploitAPI();

        public ScriptHub()

        {

            InitializeComponent();

        }

        Point lastPoint;

        private void button1_Click(object sender, EventArgs e)

        {

            this.Close();

        }

 

        private void button2_Click(object sender, EventArgs e)

        {

            WindowState = FormWindowState.Minimized;

        }

 

        private void panel1_MouseDown(object sender, MouseEventArgs e)

        {

            lastPoint = new Point(e.X, e.Y);

        }

 

        private void panel1_MouseMove(object sender, MouseEventArgs e)

        {

            if (e.Button == MouseButtons.Left)

            {

                this.Left += e.X - lastPoint.X;

                this.Top += e.Y - lastPoint.Y;

            }

        }

 

        private void button3_Click(object sender, EventArgs e)

        {

            WebClient wb = new WebClient();

            string Script = wb.DownloadString("https://pastebin.com/raw/tzTXmYf2");

            Module.SendLuaScript(Script);

        }

    }

 

}

 

FUNCTIONS.CS*    (functions of the exploit)

 

using System;

using System.Collections.Generic;

using System.IO;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

using System.Windows.Forms;

 

namespace Anti_Modernity

{

    class Functions

    {

        public static void PopulateListBox(ListBox lsb, string Folder, string FileType)

        {

            DirectoryInfo dinfo = new DirectoryInfo(Folder);

            FileInfo[] Files = dinfo.GetFiles(FileType);

            foreach (FileInfo file in Files)

            {

                lsb.Items.Add(file.Name);

            }

        }

    }

}

 

that's all the codes i did, please tell me the issue once you found the solution on how to solve this error.

 

 

 

 

May God Bless You All :D

  • 0

Added

so i downloaded visual studio C++ redist X86, doesn't matter, doesn't work, please help me for the love of god.

  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )