CabConModding
Facebook
Twitter
youtube
Discord
Contact us
RSS
Menu
CabConModding
Home
New
Top
Premium
Rules
FAQ - Frequently Asked Questions
Games
Fornite
Call of Duty: Black Ops 3
Clash of Clans
Grand Theft Auto 5
Apex Legends
Assassin’s Creed Origins
Forums
Premium
Latest posts
What's new
Latest posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Log in
Register
What's new
Premium
Latest posts
Menu
Log in
Register
Navigation
Install the app
Install
More options
Dark Theme
Contact us
Close Menu
Forums
Tech Boards
Computer Programming
Source Code & Tutorial
'Free Mode' your programs
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Harry" data-source="post: 17493" data-attributes="member: 35"><p>This is a 'part 2' to this thread:</p><p><a href="https://cabconmodding.com/threads/c-key-login-selling-tutorial.2009/" target="_blank">C# Key Login + Selling Tutorial | CabConModding</a></p><p></p><p>This won't be needed for free programs, and this method is very un-secure, however, for small tools that have < 50 users (like private tools)</p><p></p><p>Before it starts, huge shout out to [USER=1392]@thahitcrew[/USER] for giving me the PHP writing code <img src="/styles/default/xenforo/smilies.emoji/people/stuck_out_tongue_winking_eye.emoji.svg" class="smilie" loading="lazy" alt=":tonguewink:" title="Tongue Wink :tonguewink:" data-shortname=":tonguewink:" /></p><p></p><p>Requirements - </p><ul> <li data-xf-list-type="ul">Visual Studio</li> <li data-xf-list-type="ul">Atleast 1 webserver/webhosting (can be free, as long as FTP is accessible)</li> <li data-xf-list-type="ul">Somewhat knowledge of my previous thread</li> <li data-xf-list-type="ul">Some memes (optional)</li> </ul><p></p><p><strong>Step #1 - Setting up your webserver</strong></p><p>Download the files attached (<strong><em>Server Files for CCM</em></strong>) and upload them to your webserver.</p><p>You can configure these if you know how, but its unnecessary for now.</p><p>Upload these to your webserver.</p><p></p><p><strong>Step #2 - Reading and Writing</strong></p><p>Now we need to make a program to read and write to this file. This is simple, create a form and 1 checkBox and 1 label.</p><p></p><p>Double click your form and paste this (please, <strong>try</strong> and understand it somewhat):</p><p>[CODE]WebClient web = new WebClient(); System.IO.Stream stream = web.OpenRead("http://yourwebsite.com/FreeMode.txt");</p><p> using (System.IO.StreamReader reader = new System.IO.StreamReader(stream))</p><p> {</p><p> label1.Text = (reader.ReadToEnd());</p><p> }</p><p> System.Threading.Thread.Sleep(2500);</p><p> if(label1.Text == "False")</p><p> {</p><p> checkBox1.Checked = false;</p><p> }</p><p> else if(label1.Text == "True")</p><p> {</p><p> checkBox1.Checked = true;</p><p> }[/CODE]</p><p></p><p></p><p>Now double click on your checkBox and paste this:</p><p>[CODE]if(checkBox1.Checked == false)</p><p> {</p><p> webBrowser1.Navigate("http://yourwebsite.com/FreeMode.php?FreeMode=False");</p><p> }</p><p> else</p><p> {</p><p> webBrowser1.Navigate("http://yourwebsite.com/FreeMode.php?FreeMode=True");</p><p> }[/CODE]</p><p></p><p>Simple as that!</p><p></p><p><strong>Step 3 - Integrating this</strong></p><p>Now to put this into your login, simply use the same system as my last tutorial (linked above) or:</p><p>Make a new label on your form.</p><p>Double click your login button, and go to the top of the code.</p><p>Paste this:</p><p>[CODE]if (label.Text == "True")</p><p> {</p><p> MessageBox.Show("Logged In to Free Mode", "Logged In");</p><p> //What you want here</p><p> }</p><p> else</p><p> {</p><p> //your login code goes here</p><p> }[/CODE]</p><p></p><p>Now double click on the form and paste this:</p><p>[CODE]WebClient web = new WebClient(); System.IO.Stream stream1 = web.OpenRead("http://whysomoddingteam.xyz/ServerLogin/FreeMode.txt");</p><p> using (System.IO.StreamReader reader1 = new System.IO.StreamReader(stream1))</p><p> {</p><p> label.Text = (reader1.ReadToEnd());</p><p> }[/CODE]</p><p></p><p></p><p>Simple as that</p><p></p><p>Any question, leave em below!</p><p></p><p>- This is <strong>NOT </strong>incredibly secure! There are better ways of making this, but, if you want to remove the .PHP after updating, or making a program to allow for FTP of the PHP when changing this, and removing when exiting the program can make it much more secure <img src="/styles/default/xenforo/smilies.emoji/people/stuck_out_tongue_winking_eye.emoji.svg" class="smilie" loading="lazy" alt=":tonguewink:" title="Tongue Wink :tonguewink:" data-shortname=":tonguewink:" /></p><p></p><p>Have a good day</p></blockquote><p></p>
[QUOTE="Harry, post: 17493, member: 35"] This is a 'part 2' to this thread: [url="https://cabconmodding.com/threads/c-key-login-selling-tutorial.2009/"]C# Key Login + Selling Tutorial | CabConModding[/url] This won't be needed for free programs, and this method is very un-secure, however, for small tools that have < 50 users (like private tools) Before it starts, huge shout out to [USER=1392]@thahitcrew[/USER] for giving me the PHP writing code :P Requirements - [LIST] [*]Visual Studio [*]Atleast 1 webserver/webhosting (can be free, as long as FTP is accessible) [*]Somewhat knowledge of my previous thread [*]Some memes (optional) [/LIST] [B]Step #1 - Setting up your webserver[/B] Download the files attached ([B][I]Server Files for CCM[/I][/B]) and upload them to your webserver. You can configure these if you know how, but its unnecessary for now. Upload these to your webserver. [B]Step #2 - Reading and Writing[/B] Now we need to make a program to read and write to this file. This is simple, create a form and 1 checkBox and 1 label. Double click your form and paste this (please, [B]try[/B] and understand it somewhat): [CODE]WebClient web = new WebClient(); System.IO.Stream stream = web.OpenRead("http://yourwebsite.com/FreeMode.txt"); using (System.IO.StreamReader reader = new System.IO.StreamReader(stream)) { label1.Text = (reader.ReadToEnd()); } System.Threading.Thread.Sleep(2500); if(label1.Text == "False") { checkBox1.Checked = false; } else if(label1.Text == "True") { checkBox1.Checked = true; }[/CODE] Now double click on your checkBox and paste this: [CODE]if(checkBox1.Checked == false) { webBrowser1.Navigate("http://yourwebsite.com/FreeMode.php?FreeMode=False"); } else { webBrowser1.Navigate("http://yourwebsite.com/FreeMode.php?FreeMode=True"); }[/CODE] Simple as that! [B]Step 3 - Integrating this[/B] Now to put this into your login, simply use the same system as my last tutorial (linked above) or: Make a new label on your form. Double click your login button, and go to the top of the code. Paste this: [CODE]if (label.Text == "True") { MessageBox.Show("Logged In to Free Mode", "Logged In"); //What you want here } else { //your login code goes here }[/CODE] Now double click on the form and paste this: [CODE]WebClient web = new WebClient(); System.IO.Stream stream1 = web.OpenRead("http://whysomoddingteam.xyz/ServerLogin/FreeMode.txt"); using (System.IO.StreamReader reader1 = new System.IO.StreamReader(stream1)) { label.Text = (reader1.ReadToEnd()); }[/CODE] Simple as that Any question, leave em below! - This is [B]NOT [/B]incredibly secure! There are better ways of making this, but, if you want to remove the .PHP after updating, or making a program to allow for FTP of the PHP when changing this, and removing when exiting the program can make it much more secure :P Have a good day [/QUOTE]
Verification
Post reply
Forums
Tech Boards
Computer Programming
Source Code & Tutorial
'Free Mode' your programs
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top