Categories > Coding > C# >

[Help] How to make a raw text checker?

OwlGuru

Gaming LV

Posts: 25

Threads: 15

Joined: Sep, 2021

Reputation: 0

Posted

Hello, so I am currently developing an exploit and would like to know how do I make a version checker. What I mean by that is the exploit should check for a specific text in a github raw text file and if it is correct then continue. - Mark

  • 0

I play minecraft and sometimes roblox with cheats

Posts: 1316

Threads: 54

Joined: Jul, 2021

Reputation: 64

Replied

you'd do that with a webclient, then you can get the raw text of a github raw or a pastebin link using a downloadstring

  • 1

Mail me at sirweebdev@protonmail.com if you have any questions or you want to say anything to me, I'll reply (maybe).

OwlGuru

Gaming LV

Posts: 25

Threads: 15

Joined: Sep, 2021

Reputation: 0

Replied

@SirWeeb 
Do you mean like this?

    WebClient webClient = new WebClient();
    string mainUrl= myWebClient.DownloadString("https://pastebin.com/raw/vgnAskpa");
     
    if (mainUrl.Contains("1.2"))
    {
    // continue 
    }
    else
    {
    // give update message
    }
  • 0

I play minecraft and sometimes roblox with cheats

Posts: 1316

Threads: 54

Joined: Jul, 2021

Reputation: 64

Replied

@OwlGuru that would work but a better way of doing it would be like this, using makes it so the WC auto disposes

using (var wc = new WebClient())
{
   if(wc.DownloadString("https://pastebin.com/raw/vgnAskpa") != "1.2")
   {
        // code here idk
   }
}
  • 0

Mail me at sirweebdev@protonmail.com if you have any questions or you want to say anything to me, I'll reply (maybe).

Users viewing this thread:

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