Categories > Exploiting > WRD Exploit API >
Exception: The request was aborted: Could not create SSL/TLS secure channel.
Posted
so, i am making my own exploit, and i made an inject button, but whenever it happens, this error spits out, everytime
"Exception: The request was aborted: Could not create SSL/TLS secure channel."
I want to make an open source exploit and this is the only thing that is stopping me from doing it
Please tell me fixes, or answers to why it wasn't working.. I am also using the wearedevs api, and if needed, this is my cs code
using System;
using System.Windows.Forms;
using WeAreDevs_API;
namespace LuaScriptExecutor
{
public partial class Form1 : Form
{
private ExploitAPI exploit;
// Define controls
private TextBox LuaScriptTextBox;
private Button ExecuteButton;
private Button InjectButton; // New button for injection
public Form1()
{
InitializeComponent(); // Ensure InitializeComponent is called.
exploit = new ExploitAPI();
}
// This method is typically auto-generated by the form designer
private void InitializeComponent()
{
this.LuaScriptTextBox = new System.Windows.Forms.TextBox();
this.ExecuteButton = new System.Windows.Forms.Button();
this.InjectButton = new System.Windows.Forms.Button(); // Initialize the new button
this.SuspendLayout();
// LuaScriptTextBox
this.LuaScriptTextBox.Location = new System.Drawing.Point(12, 12);
this.LuaScriptTextBox.Multiline = true;
this.LuaScriptTextBox.Name = "LuaScriptTextBox";
this.LuaScriptTextBox.Size = new System.Drawing.Size(400, 100);
this.LuaScriptTextBox.TabIndex = 0;
// ExecuteButton
this.ExecuteButton.Location = new System.Drawing.Point(12, 120);
this.ExecuteButton.Name = "ExecuteButton";
this.ExecuteButton.Size = new System.Drawing.Size(75, 23);
this.ExecuteButton.TabIndex = 1;
this.ExecuteButton.Text = "Execute";
this.ExecuteButton.UseVisualStyleBackColor = true;
this.ExecuteButton.Click += new System.EventHandler(this.ExecuteButton_Click);
// InjectButton
this.InjectButton.Location = new System.Drawing.Point(100, 120);
this.InjectButton.Name = "InjectButton";
this.InjectButton.Size = new System.Drawing.Size(75, 23);
this.InjectButton.TabIndex = 2;
this.InjectButton.Text = "Inject";
this.InjectButton.UseVisualStyleBackColor = true;
this.InjectButton.Click += new System.EventHandler(this.InjectButton_Click); // Handle the click event
// Form1
this.ClientSize = new System.Drawing.Size(424, 161);
this.Controls.Add(this.ExecuteButton);
this.Controls.Add(this.InjectButton); // Add the new button to the form
this.Controls.Add(this.LuaScriptTextBox);
this.Name = "Form1";
this.Text = "Lua Script Executor";
this.ResumeLayout(false);
this.PerformLayout();
}
private void ExecuteButton_Click(object sender, EventArgs e)
{
string luaScript = LuaScriptTextBox.Text;
try
{
exploit.SendLuaScript(luaScript);
}
catch (Exception ex)
{
Console.WriteLine("Exception: " + ex.Message);
if (ex.InnerException != null)
{
Console.WriteLine("Inner Exception: " + ex.InnerException.Message);
}
// Add more details if needed...
// Show a message box with the exception details
MessageBox.Show("Error occurred: " + ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
// New method to handle the Inject button click event
private void InjectButton_Click(object sender, EventArgs e)
{
try
{
exploit.LaunchExploit();
}
catch (Exception ex)
{
Console.WriteLine("Exception: " + ex.Message);
if (ex.InnerException != null)
{
Console.WriteLine("Inner Exception: " + ex.InnerException.Message);
}
// Add more details if needed...
// Show a message box with the exception details
MessageBox.Show("Error occurred: " + ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
}
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}
Help me get answers, thanks.
Nuxil
Replied
Nuxil that means theres an issue with the SSL/TLS negotiation between the client and the server
Cancel
Post
Replied
how do i fix it?
Cancel
Post
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post