Posted
So for this you'd need a tab system for your exploit(ability to add and remove tabs)
I have 2 versions for this, regular textbox like fastcoloredtextbox or richtextbox or something like that and then a web text editor like monaco or in my case ace. Make sure to add this to the button clicked code
Regular Textbox Code:
try
{
if (YourTabControlName.TabPages.Count > 0)
{
TabControl.TabPageCollection pages = YourTabControlName.TabPages;
for (int i = 0; i < pages.Count; i++)
{
RichTextBox textBox = pages[i].Controls.Find("YourTextBoxName", true).FirstOrDefault<Control>() as RichTextBox;
YourDllApiName.SendLuaScript(textBox.Text);
}
}
}
catch { }
FastColoreTextbox Code:
try
{
if (YourTabControlName.TabPages.Count > 0)
{
TabControl.TabPageCollection pages = YourTabControlName.TabPages;
for (int i = 0; i < pages.Count; i++)
{
FastColoredTextBoxNS.FastColoredTextBox textBox = pages[i].Controls.Find("YourTextBoxName", true).FirstOrDefault<Control>() as FastColoredTextBoxNS.FastColoredTextBox;
YourDllApiName.SendLuaScript(textBox.Text);
}
}
}
catch { }
Ace And Monaco Editor Code:
try
{
if (YourTabControlName.TabPages.Count > 0)
{
TabControl.TabPageCollection pages = YourTabControlName.TabPages;
for (int i = 0; i < pages.Count; i++)
{
WebBrowser AceWeb = pages[i].Controls.Find("AceWeb", true).FirstOrDefault<Control>() as WebBrowser;
HtmlDocument AceDocument = AceWeb.Document;
string scriptName = "GetText";
object[] args = new string[0];
object obj = AceDocument.InvokeScript(scriptName, args);
string script = obj.ToString();
YourDllApiName.SendLuaScript(textBox.Text);
}
}
}
catch { }
If you have any questions then i'm willing to answer any questions because this can be kinda confusing!
https://i.imgur.com/aEcB6i1.gif
https://cdn.discordapp.com/attachments/915611545965310005/1037814100568330320/h92wrdkqzi171.jpeg
penis
"Questionable intellegence, but I like the mystery" - CubeFaces
https://cdn.discordapp.com/attachments/1136067487847415848/1138948596679589898/sig.png
Replied
@SeizureSalad Ok if i'm not wrong your method just changes the current opened tab's textbox text.
Cancel
Post
Added
@87922 yes but my implemenation will allow to all the tab's scripts to be executed at once.
Cancel
Post
https://i.imgur.com/aEcB6i1.gif
https://cdn.discordapp.com/attachments/915611545965310005/1037814100568330320/h92wrdkqzi171.jpeg
penis
Replied
@http0x22 i literally didn't provide a method of my own besides yours is just bad
Cancel
Post
"Questionable intellegence, but I like the mystery" - CubeFaces
https://cdn.discordapp.com/attachments/1136067487847415848/1138948596679589898/sig.png
Added
@59690what i tried in a kind of rush might be the rush i didin't make it correct but what i tested only one of the textboxes(currently open tab textbox to be exact) is only executed, not every but it can be just be my setup for it
Cancel
Post
https://i.imgur.com/aEcB6i1.gif
https://cdn.discordapp.com/attachments/915611545965310005/1037814100568330320/h92wrdkqzi171.jpeg
penis
Replied
Sad to say, I don't see any need for this, as I don't think anyone needs executing all the tabs at once.
Cancel
Post
Random quote here...
Replied
ah yes winform
Cancel
Post
https://cdn.discordapp.com/attachments/1023423265160560745/1132948683747500092/Frame_12x.png
Users viewing this thread:
( Members: 0, Guests: 0, Total: 0 )
Cancel
Post