Post: How to disable the use of your program remotely
11-28-2014, 02:22 PM #1
jagex
Gym leader
(adsbygoogle = window.adsbygoogle || []).push({}); Probably not the best way to do this but it works lol



    
BackgroundWorker ProgramCheck = new BackgroundWorker();

private void Form1_Load(object sender, EventArgs e)
{
ProgramCheck.DoWork += CanUseProgramCheck;
ProgramCheck.RunWorkerCompleted += CanUseProgramCheckFinished;
ProgramCheck.RunWorkerAsync();
}

private void CanUseProgramCheckFinished(object sender, RunWorkerCompletedEventArgs e)
{
ProgramCheck.RunWorkerAsync();
}

private void CanUseProgramCheck(object sender, DoWorkEventArgs e)
{
try
{
var request = HttpWebRequest.Create("link to file here");
request.Timeout = 5000;
var response = request.GetResponse();

var file = response.GetResponseStream();

using (var streamReader = new StreamReader(file))
{
string canUse = streamReader.ReadToEnd();

if (!canUse.Equals("01"))
{

//Put whatever you want here
}
}
file.Dispose();
response.Dispose();
}
catch
{

//Put whatever you want here
}
}

}
}
Last edited by jagex ; 11-28-2014 at 03:54 PM.
11-28-2014, 03:54 PM #2
Boliberrys
^^ Sexy ^^
Originally posted by jagex View Post
Probably not the best way to do this but it works lol

    
BackgroundWorker ProgramCheck = new BackgroundWorker();

private void Form1_Load(object sender, EventArgs e)
{
ProgramCheck.DoWork += CanUseProgramCheck;
ProgramCheck.RunWorkerCompleted += CanUseProgramCheckFinished;
ProgramCheck.RunWorkerAsync();
}

private void CanUseProgramCheckFinished(object sender, RunWorkerCompletedEventArgs e)
{
ProgramCheck.RunWorkerAsync();
}

private void CanUseProgramCheck(object sender, DoWorkEventArgs e)
{
try
{
var request = HttpWebRequest.Create("link to file here");
request.Timeout = 5000;
var response = request.GetResponse();

var file = response.GetResponseStream();

using (var streamReader = new StreamReader(file))
{
string canUse = streamReader.ReadToEnd();

if (!canUse.Equals("01"))
{

//Put whatever you want here
}
}
file.Dispose();
response.Dispose();
}
catch
{

//Put whatever you want here
}
}

}
}


Im not that good at english, so ... Can you explain to me please?
11-28-2014, 03:56 PM #3
jagex
Gym leader
Originally posted by Boliberrys View Post
Im not that good at english, so ... Can you explain to me please?


uh lets see...Say you sold a program to a user but then the user scammed you. This would allow you to disable the program so that the user can't use it anymore
11-28-2014, 03:57 PM #4
Boliberrys
^^ Sexy ^^
Originally posted by jagex View Post
uh lets see...Say you sold a program to a user but then the user scammed you. This would allow you to disable the program so that the user can't use it anymore


this isnt c# right?
Last edited by Boliberrys ; 11-28-2014 at 05:00 PM.
11-28-2014, 05:44 PM #5
jagex
Gym leader
It is c#....
12-02-2014, 07:17 AM #6
Boliberrys
^^ Sexy ^^
Originally posted by jagex View Post
It is c#....

Can you explain me how to use it please?
12-20-2014, 05:49 PM #7
ItsAvees
Bounty hunter
Originally posted by Boliberrys View Post
Can you explain me how to use it please?


I'll make a thread with a complete tutorial on how to do this.
12-20-2014, 06:22 PM #8
Boliberrys
^^ Sexy ^^
Originally posted by ItsAvees View Post
I'll make a thread with a complete tutorial on how to do this.


Thanks!
12-20-2014, 06:40 PM #9
ItsAvees
Bounty hunter
Originally posted by Boliberrys View Post
Thanks!


You must login or register to view this content.

The following user thanked ItsAvees for this useful post:

Boliberrys
12-20-2014, 07:11 PM #10
One
At least I can fight
Originally posted by Boliberrys View Post
this isnt c# right?

are you kidding ? na man it's VB can't you tell from the syntax

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo