Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolascarlino authored Jun 17, 2021
1 parent 0c91155 commit 4e846f7
Show file tree
Hide file tree
Showing 21 changed files with 1,594 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Hyuga.sln
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
545 changes: 545 additions & 0 deletions Hyuga/Form1.Designer.cs

Large diffs are not rendered by default.

178 changes: 178 additions & 0 deletions Hyuga/Form1.cs
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;
}
}
}
Loading

0 comments on commit 4e846f7

Please sign in to comment.