SYSTEM READER IN C#

#5 SYSTEM READER IN C#

A small system reader app written in C# WinForms. The application reads the systems ram, processor and user details and displays them on the form.
On program form load the application will run DXDIAG in the background and will save the text file to the root directory of the application.
Once the program has finished the DXDIAG process you can click on the send button.
This will allow us to send the DXDIAG file to any FTP server we have defined in the program.

As default I have replaced all the necessary details with the # symbol.

replace the # symbol with your FTP server details.

SIMPLE DARK NOTEPAD IN C#

#4 SIMPLE DARK NOTEPAD IN C#

Dark Notepad.

A very simple notepad application using the windows API. The following controls are used:


menuStrip: The topbar menu with integrated drop down boxes. The DarkClass.cs class allows us to change the color of this control.

openFileDialog: Lets us search for and open a file on our windows machine.

saveFileDialog: Allows us to search for a location and save a file.

fontDialog: Shows us the font control menu allowing us to modify our typography inside the text box.

The four main controls in this app

Inside the DarkClass.cs we can change the colors of the menustrip by returning the colors we define in the RGB format Color.FromArgb(46, 204, 113). This class is then called on the application load from the MyRenderer() like so:

menuStrip1.Renderer = new DarkClass.MyRenderer();

The DarkClass.cs class allows us to change the menu strip colors.

GENERATE A GUID FOR AN API

#3 GENERATE A GUID FOR AN API

Here is a RFC4122 version 4 compliant solution. simple click on the button to generate a GUID and optional copy button. This can be used to authenticate users and as a session log. Each unique ID can be used in an API as an API key for your users.

Example use in a home made API as follows:
https://myapidomain.com/api/count.php?&API_KEY=6f6825a7-ee36-4a01-ba19-c98cbc41049c&JSESSION=c0b3c124-66ae-4873-abf9-36cde947d78f&USERNAME=testing

Result example if there is an error:

{"result":5,"message":"api key does not exist!"}

The id attribute in the HTML allows the JS to execute the logic of this example

I tested the application using XAMPP which is a great lightweight Apache distribution which lets us create a local web server effortlessly.

You can read up on GUID’s here.

KEYGEN IN ASSEMBLY

#2 KEYGEN IN ASSEMBLY

A simple keygen template. Brings back good old childhood memories.

 I would like to point out that this is nothing illegal! No generation routine for any commercial application was included. This is purely a keygen template with a chip tune.

You need a assembly compiler to create an executable from the source code.

masm32 is a good compiler I tested it on windows 10 Version 10.0.18363 Build 18363 and it works.

The source code is located in keygen.asm you can edit the credits, colors, images, music ,logic etc.

If you are using visual studio code as your editor you can install the PlatformIO IDE plugin to view the .asm code in color.

PlatformIO can be added to the visual studio editor to allow .asm code color.