Coding an operating system from zero - 1 (Begin)

TheFlow

Üye
19 Şub 2021
200
2


Hello everyone! Today, we will going to code an operation system. Lets begin! In this series, we will develop a DOS operating system.

The programming language that we will use for program the OS:

C#

The programs and add-ons we need:

- Visual Studio 2019 // Program that we are gonna write our code.
- Cosmos // The visual studio plug-in to make an OS
- VMWare Workstation Player


Lets begin!
First, download the VS 2019 and VmWare. (You can find it on the web.)

Then, install the cosmon plug-in from here:
https://github.com/CosmosOS/Cosmos/...it_20200708/CosmosUserKit-20200708-vs2019.exe

VT:
https://www.virustotal.com/gui/file...ea1f16652a934596cb914772631b56f550f/detection

Now, create a Cosmos kernel project and begin the coding process.

guz11u.jpg


Now a code page will appear on your screen like this:

Kod:
using System;
using System.Collections.Generic;
using System.Text;
using Sys = Cosmos.System;

namespace CosmosKernel1
{
    public class Kernel : Sys.Kernel
    {
        protected override **** BeforeRun()
        {
            Console.WriteLine("hi");
        }

        protected override **** Run()
        {
          // We gonna write our codes Here.

        }
    }
}

Change the text -hi- to something that you want to append in the begin of opening

Under the // We gonna write our codes here section, paste this:

Kod:
Console.ForegroundColor = ConsoleColor.Green; // Changed our text colour to green
Console.WriteLine("System is opened, What do you want to do?");
Console.WriteLine("Help command: help");
string input;
input = Console.ReadLine();

Lets add this lines and create a help / info command:

Kod:
if (input == ("help"))
{

Console.WriteLine("help >> This menu");
Console.WriteLine("info >> Get info about [[Your OS name]] ");
}

else
{
if (input == ("info"))
{
Console.ForegroundColor = ConsoleColor.Blue;
Console.WriteLine("OS name: [[Your os name]]  | Version: v1.0  |  Credits: [[Credits]] | Web site: [[Web site of your OS]] ");

}
}



Kaynak: https://www.turkhackteam.org/genel-...istiriyoruz-1-baslangic-xale.html#post9349240

 
Moderatör tarafında düzenlendi:

Sheldon

Katılımcı Üye
13 Ocak 2018
940
133
-
Cevap: Coding an operating system from zero - 1 (Begin) - Translated by TheFlow

Nice article and perfect color selection. Keep writing =)
 

"Xale

Katılımcı Üye
16 Eki 2020
442
20
Cevap: Coding an operating system from zero - 1 (Begin) - Translated by TheFlow

Nice, thank you for translate.
 
Üst

Turkhackteam.org internet sitesi 5651 sayılı kanun’un 2. maddesinin 1. fıkrasının m) bendi ile aynı kanunun 5. maddesi kapsamında "Yer Sağlayıcı" konumundadır. İçerikler ön onay olmaksızın tamamen kullanıcılar tarafından oluşturulmaktadır. Turkhackteam.org; Yer sağlayıcı olarak, kullanıcılar tarafından oluşturulan içeriği ya da hukuka aykırı paylaşımı kontrol etmekle ya da araştırmakla yükümlü değildir. Türkhackteam saldırı timleri Türk sitelerine hiçbir zararlı faaliyette bulunmaz. Türkhackteam üyelerinin yaptığı bireysel hack faaliyetlerinden Türkhackteam sorumlu değildir. Sitelerinize Türkhackteam ismi kullanılarak hack faaliyetinde bulunulursa, site-sunucu erişim loglarından bu faaliyeti gerçekleştiren ip adresini tespit edip diğer kanıtlarla birlikte savcılığa suç duyurusunda bulununuz.