-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0c91155
commit 4e846f7
Showing
21 changed files
with
1,594 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 16 | ||
VisualStudioVersion = 16.0.31321.278 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hyuga", "Hyuga\Hyuga.csproj", "{77BADB1C-99CD-4F66-BBCF-079074510B8C}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{77BADB1C-99CD-4F66-BBCF-079074510B8C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{77BADB1C-99CD-4F66-BBCF-079074510B8C}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{77BADB1C-99CD-4F66-BBCF-079074510B8C}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{77BADB1C-99CD-4F66-BBCF-079074510B8C}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {0EB6DDA5-1D56-4615-B29C-86D6B26E7CD1} | ||
EndGlobalSection | ||
EndGlobal |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,178 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Data; | ||
using System.Drawing; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows.Forms; | ||
using System.IO; | ||
using System.Threading; | ||
using Newtonsoft.Json; | ||
using System.Net; | ||
using System.Net.Http; | ||
using System.Collections.Specialized; | ||
|
||
namespace Hyuga | ||
{ | ||
public partial class Window : Form | ||
{ | ||
// Defs | ||
bool spam_state = false; | ||
string name = "Hyuga"; | ||
string avatar = "https://static.wikia.nocookie.net/naruto-ultimate-fannonfanfiction/images/a/ad/Unnamed_%2825%29.png/revision/latest?cb=20180201003624"; | ||
|
||
public Window() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
private void groupBox2_Enter(object sender, EventArgs e) | ||
{ | ||
|
||
} | ||
|
||
private void label2_Click(object sender, EventArgs e) | ||
{ | ||
|
||
} | ||
|
||
private void label9_Click(object sender, EventArgs e) | ||
{ | ||
|
||
} | ||
|
||
private void textBox3_TextChanged(object sender, EventArgs e) | ||
{ | ||
|
||
} | ||
|
||
private void groupBox5_Enter(object sender, EventArgs e) | ||
{ | ||
|
||
} | ||
|
||
private void button1_Click(object sender, EventArgs e) | ||
{ | ||
if(avatar.Length == 0) | ||
{ | ||
MessageBox.Show("Invalid avatar URL"); | ||
} | ||
|
||
else | ||
{ | ||
avatar = avinput.Text; | ||
output.Text += $"[Hyuga] Sucefully saved avatar \n"; | ||
} | ||
} | ||
|
||
private void start_spam_Click(object sender, EventArgs e) | ||
{ | ||
try | ||
{ | ||
spam_state = true; | ||
|
||
if (spam_state == true) | ||
{ | ||
string webhook = whspaminput.Text; | ||
|
||
// Deleting Webhook | ||
var httpRequest = (HttpWebRequest)WebRequest.Create(webhook); | ||
|
||
spam_state = true; | ||
|
||
void sWh(string URL, string msg, string nn) | ||
{ | ||
Http.Post(URL, new NameValueCollection() | ||
{ | ||
{ "username", name }, | ||
{ "avatar", avatar }, | ||
{ "content", msg } | ||
}); | ||
} | ||
|
||
while (spam_state == true) | ||
{ | ||
sWh(webhook, string.Concat(new string[] { msge.Text }), name); | ||
// To many requests, idk why | ||
} | ||
} | ||
// spam_state = false; | ||
} | ||
|
||
// Unknown Webhook | ||
catch | ||
{ | ||
output.Text += "[Hyuga] Invalid Webhook Code \n"; | ||
} | ||
} | ||
|
||
private void delete_Click(object sender, EventArgs e) | ||
{ | ||
try | ||
{ | ||
// Deleting Webhook | ||
var httpRequest = (HttpWebRequest)WebRequest.Create(whinput.Text); | ||
httpRequest.Method = "DELETE"; | ||
httpRequest.Accept = "*/*"; | ||
|
||
// Sucefully deleted | ||
var httpResponse = (HttpWebResponse)httpRequest.GetResponse(); | ||
output.Text += "[Hyuga] Sucefully deleted Webhook \n"; | ||
} | ||
|
||
catch | ||
{ | ||
output.Text += "[Hyuga] Unknown Webhook Code \n"; | ||
} | ||
} | ||
|
||
private void close_Click(object sender, EventArgs e) | ||
{ | ||
Application.Exit(); | ||
} | ||
|
||
private void button1_Click_1(object sender, EventArgs e) | ||
{ | ||
WindowState = FormWindowState.Minimized; | ||
} | ||
|
||
private void Window_MouseUp(object sender, EventArgs e) | ||
{ | ||
WindowState = FormWindowState.Minimized; | ||
} | ||
|
||
// Move Window | ||
int m, mx, my; | ||
private void panel5_MouseUp(object sender, MouseEventArgs e) | ||
{ | ||
m = 0; | ||
} | ||
|
||
private void groupBox6_Enter(object sender, EventArgs e) | ||
{ | ||
|
||
} | ||
|
||
private void groupBox3_Enter(object sender, EventArgs e) | ||
{ | ||
|
||
} | ||
|
||
private void panel5_MouseMove(object sender, MouseEventArgs e) | ||
{ | ||
if (m == 1) | ||
{ | ||
this.SetDesktopLocation(MousePosition.X - mx, MousePosition.Y - my); | ||
} | ||
} | ||
|
||
private void panel5_MouseDown(object sender, MouseEventArgs e) | ||
{ | ||
m = 1; | ||
mx = e.X; | ||
my = e.Y; | ||
} | ||
} | ||
} |
Oops, something went wrong.