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
C# Key Login + Selling Tutorial
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: 17433" data-attributes="member: 35"><p>-------------- I'm not selling any keys, this is for educational purposes only! --------------</p><p></p><p>Requirements:</p><ul> <li data-xf-list-type="ul">Atleast 1 webserver/webhosting (can be free, as long as FTP & PHPMyAdmin is accessible)</li> <li data-xf-list-type="ul">Visual Studio</li> <li data-xf-list-type="ul">A rocketr.net account (this will come in handy at the end)</li> </ul><p></p><p><strong>Step 1 - Setup</strong></p><p>Create your Visual Studio form, and design it how you want, however, include:</p><p>1x Textbox</p><p>1x Button</p><p>1x label (mines called label2, and it is <strong>not</strong> visible)</p><p></p><p><strong>Step 2 - Server Side: Uploading/Editing</strong></p><p>Setup the PHP/Server side of things.</p><p>This can be a little tedious.</p><p>You need to follow this tutorial here. It includes the download needed:</p><p><a href="http://www.nextgenupdate.com/forums/web-development-php-html-javascript/883736-server-sided-auth-code-using-keys-elite-custom-licensing-2.html" target="_blank">Server-sided auth code using keys (Elite or custom licensing) - Page 2 - NextGenUpdate</a></p><p></p><p>Once done, go to PHPMyAdmin, and make a key (this is very simple, go to the 'SQL' tab up top, and paste this:</p><p>[CODE]INSERT INTO DATABASENAME (license) VALUES ('KEYHERE');[/CODE]</p><p></p><p>Change DATABASENAME & KEYHERE to the values you want</p><p></p><p><strong>Step 3 - Server Side: Messages</strong></p><p>Now, we can also edit the messages to be received when you are authenticating a key.</p><p>Open the auth.php</p><p>and edit these (Outlined in Red)</p><p><img src="http://i.imgur.com/OCarUDd.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>Upon first open, yours won't say the same. Just change them to say the same as mine for now.</p><p></p><p><strong>Step 4 - C# Authenticating</strong></p><p>Now we are going to write some C# scripting to allow the user to authenticate their key.</p><p>Also, if you wanted to, you can write the key to a file and read it upon opening, making it a lot easier for the user to login faster <img src="/styles/default/xenforo/smilies.emoji/people/slight_smile.emoji.svg" class="smilie" loading="lazy" alt=":smile:" title="Smile :smile:" data-shortname=":smile:" /></p><p></p><p>Double Click on your button, and paste this:</p><p>[CODE]WebClient web = new WebClient(); System.IO.Stream stream = web.OpenRead("http://192.3.195.130/~trinitys/authenticator/auth.php?key=" + textBox1.Text);</p><p> using (System.IO.StreamReader reader = new System.IO.StreamReader(stream))</p><p> {</p><p> label2.Text = (reader.ReadToEnd());</p><p> }</p><p> //Lets give it some time to authenticate the key</p><p> //This can be configured using a ping method also :P</p><p> Thread.Sleep(5000);</p><p> //</p><p> //Send message</p><p> //</p><p> if (label2.Text == "Banned")</p><p> {</p><p> MessageBox.Show("This key is banned", "Error");</p><p> //Do what you want</p><p> }</p><p> else if (label2.Text == "Authenticated")</p><p> {</p><p> MessageBox.Show("Logged In", "Logged In");</p><p> //Do what you want</p><p> }</p><p> else</p><p> {</p><p> MessageBox.Show("Invalid Key", "Error");</p><p> //Do what you want</p><p> }[/CODE]</p><p></p><p>and don't forget to add the 'using':</p><p>[CODE]using System.Net;[/CODE]</p><p></p><p><strong>Step 5 - Generating a selling your key</strong></p><p>I recommend using a separate site for this, so if its DDoSed, you still have your login server. Also, you can use multiple login servers for this, which can allow for almost constant uptime if done correctly.</p><p></p><p>Go to this site:</p><p><a href="https://rocketr.net" target="_blank">Sell your digital products online - Rocketr</a></p><p>Create an account & setup it up properly, including using a <strong>non-limited/full </strong>paypal account (or it will get limited, trust me)</p><p></p><p>Go to products>add a product</p><p>On the side, change 'File' to 'Codes/Serials' under 'Product Type'</p><p>Fill the rest out accordingly, and now lets make some serials!</p><p></p><p>I'm going to include my custom program below. You are free to decompile it and see how it works as you wish.</p><p><img src="http://i.imgur.com/mHl7L67.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p>You can generate 30 character keys using this tool (if you decompile it, you can edit this, but whatevs)</p><p>In 'database name', you want to change this to your 'database name'</p><p>Example:</p><p><img src="http://i.imgur.com/gkjdFEq.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p>I would put</p><p>'users'</p><p></p><p>Now in 'users', the column that the keys go in is called 'license', so there's the column name <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>Now we can generate as many keys as we want, and click 'Output SQL Code' (you will need a premade .txt file for this)</p><p></p><p>Now open the .txt file, and you should get code like this:</p><p>[CODE]INSERT INTO users (license) VALUES ('KEYHERE');</p><p>INSERT INTO users (license) VALUES ('KEYHERE');</p><p>INSERT INTO users (license) VALUES ('KEYHERE');</p><p>INSERT INTO users (license) VALUES ('KEYHERE');</p><p>etc</p><p>etc[/CODE]</p><p></p><p>Go to PHPMyAdmin, click the SQL Tab, <strong>delete everything </strong>thats there and paste the code from the .txt in</p><p></p><p>Finally, the code in the textBox at the top of the program, you can simply paste that into the textBox in Rocketr, easy as.</p><p></p><p>You can then implement this into your site using an iFrame tag (HTML)</p><p></p><p></p><p></p><p>Its as hard as that.</p><p></p><p>If you have any questions:</p><p>Simple: ask below</p><p>Hard: pm me <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 great day</p><p>~ Harry</p><p></p><p></p><p><strong>[] Credits []</strong></p><p><strong>- Tustin: </strong>His PHP login code + SQL backend</p><p><strong>- Me:</strong> C# login codes + this tutorial</p></blockquote><p></p>
[QUOTE="Harry, post: 17433, member: 35"] -------------- I'm not selling any keys, this is for educational purposes only! -------------- Requirements: [LIST] [*]Atleast 1 webserver/webhosting (can be free, as long as FTP & PHPMyAdmin is accessible) [*]Visual Studio [*]A rocketr.net account (this will come in handy at the end) [/LIST] [B]Step 1 - Setup[/B] Create your Visual Studio form, and design it how you want, however, include: 1x Textbox 1x Button 1x label (mines called label2, and it is [B]not[/B] visible) [B]Step 2 - Server Side: Uploading/Editing[/B] Setup the PHP/Server side of things. This can be a little tedious. You need to follow this tutorial here. It includes the download needed: [URL='http://www.nextgenupdate.com/forums/web-development-php-html-javascript/883736-server-sided-auth-code-using-keys-elite-custom-licensing-2.html']Server-sided auth code using keys (Elite or custom licensing) - Page 2 - NextGenUpdate[/URL] Once done, go to PHPMyAdmin, and make a key (this is very simple, go to the 'SQL' tab up top, and paste this: [CODE]INSERT INTO DATABASENAME (license) VALUES ('KEYHERE');[/CODE] Change DATABASENAME & KEYHERE to the values you want [B]Step 3 - Server Side: Messages[/B] Now, we can also edit the messages to be received when you are authenticating a key. Open the auth.php and edit these (Outlined in Red) [IMG]http://i.imgur.com/OCarUDd.png[/IMG] Upon first open, yours won't say the same. Just change them to say the same as mine for now. [B]Step 4 - C# Authenticating[/B] Now we are going to write some C# scripting to allow the user to authenticate their key. Also, if you wanted to, you can write the key to a file and read it upon opening, making it a lot easier for the user to login faster :smile: Double Click on your button, and paste this: [CODE]WebClient web = new WebClient(); System.IO.Stream stream = web.OpenRead("http://192.3.195.130/~trinitys/authenticator/auth.php?key=" + textBox1.Text); using (System.IO.StreamReader reader = new System.IO.StreamReader(stream)) { label2.Text = (reader.ReadToEnd()); } //Lets give it some time to authenticate the key //This can be configured using a ping method also :P Thread.Sleep(5000); // //Send message // if (label2.Text == "Banned") { MessageBox.Show("This key is banned", "Error"); //Do what you want } else if (label2.Text == "Authenticated") { MessageBox.Show("Logged In", "Logged In"); //Do what you want } else { MessageBox.Show("Invalid Key", "Error"); //Do what you want }[/CODE] and don't forget to add the 'using': [CODE]using System.Net;[/CODE] [B]Step 5 - Generating a selling your key[/B] I recommend using a separate site for this, so if its DDoSed, you still have your login server. Also, you can use multiple login servers for this, which can allow for almost constant uptime if done correctly. Go to this site: [URL='https://rocketr.net']Sell your digital products online - Rocketr[/URL] Create an account & setup it up properly, including using a [B]non-limited/full [/B]paypal account (or it will get limited, trust me) Go to products>add a product On the side, change 'File' to 'Codes/Serials' under 'Product Type' Fill the rest out accordingly, and now lets make some serials! I'm going to include my custom program below. You are free to decompile it and see how it works as you wish. [IMG]http://i.imgur.com/mHl7L67.png[/IMG] You can generate 30 character keys using this tool (if you decompile it, you can edit this, but whatevs) In 'database name', you want to change this to your 'database name' Example: [IMG]http://i.imgur.com/gkjdFEq.png[/IMG] I would put 'users' Now in 'users', the column that the keys go in is called 'license', so there's the column name :tonguewink: Now we can generate as many keys as we want, and click 'Output SQL Code' (you will need a premade .txt file for this) Now open the .txt file, and you should get code like this: [CODE]INSERT INTO users (license) VALUES ('KEYHERE'); INSERT INTO users (license) VALUES ('KEYHERE'); INSERT INTO users (license) VALUES ('KEYHERE'); INSERT INTO users (license) VALUES ('KEYHERE'); etc etc[/CODE] Go to PHPMyAdmin, click the SQL Tab, [B]delete everything [/B]thats there and paste the code from the .txt in Finally, the code in the textBox at the top of the program, you can simply paste that into the textBox in Rocketr, easy as. You can then implement this into your site using an iFrame tag (HTML) Its as hard as that. If you have any questions: Simple: ask below Hard: pm me :tonguewink: Have a great day ~ Harry [B][] Credits [] - Tustin: [/B]His PHP login code + SQL backend [B]- Me:[/B] C# login codes + this tutorial [/QUOTE]
Verification
Post reply
Forums
Tech Boards
Computer Programming
Source Code & Tutorial
C# Key Login + Selling Tutorial
CabConModding is now on facebook! Check the latest Updates, the Site Status and much more now!
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