Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,150,036 members, 7,807,110 topics. Date: Wednesday, 24 April 2024 at 09:42 AM |
Nairaland Forum / Olioxx's Profile / Olioxx's Posts
(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (of 31 pages)
Programming / Re: What's A Fair Junior Developer's Monthly Salary? by olioxx(m): 5:36pm On Dec 05, 2021 |
airsaylongcome:. LOL Nigerian employer can frustrate for Africa. |
Programming / Re: What's A Fair Junior Developer's Monthly Salary? by olioxx(m): 10:26pm On Dec 04, 2021 |
DrLevi: LinkedIn is the best, placed the open to work banner on your profile pic so that hopefully recruiters can reach out to you. 1 Like |
Programming / Re: What's A Fair Junior Developer's Monthly Salary? by olioxx(m): 10:25pm On Dec 04, 2021 |
airsaylongcome:Sir you are joking right? In this Nigeria |
Programming / Re: Me And Osland!!! by olioxx(m): 9:17pm On Dec 04, 2021 |
The concept of Privilege Rings was originally introduced by Multics in year 1960, Multics was the first OS to hardware-enforce privilege rings. Later on Intel copied or should I say Intel later added that feature(is hardware-enforced privilege rings). In Intel processor, there are 4 privilege rings which are ring 0, ring 1, ring 2, ring 3. Ring 0: This is the most privileged ring. Makes me remember Alina malware. The OS kernel works in this ring. Ring 1 & 2: This is the second most privileged ring, the OS services works in this ring. Ring 3: This is the least privileged ring. User mode application works here. But there is a little thing to remember with privileged rings, and that is!!! In the real world of OS development, the entire OS runs in ring 0 and user mode application runs in ring 3, so therefore we can infer that there are only 2 rings involved, ring 0 and ring 3. This explain why OS security is hard to achieve, when I analyzed the Alina malware, it was very common to see user space code calling the ntdll api or the kernel32.dll api. This means that a skilled malware author can attempt to affect or compromise the Kernel even using user space code. Guys please always update your OS to the latest version. Segmentation [/b[ Segmentation is a very important topic especially with memory management. Now I am going to detour a little bit. From my prior experience with C coding, I will like to take about segmentation fault. Segmentation fault simply refers to "trying to access and or modify memory you shouldn't". This is very common especially with allocating memory, reallocating memory or not remembering to free up used memory. Turning to page 2786 of the Intel Manual(dated May 2020), we are presented with every thing to know about Segmentation. On page 2871 a detailed summary is provided. Segmentation provides a [b]mechanism for dividing the processor's addressable memory space into smaller protected address space called segments. Segments can hold code, data structure, data, stack for a program. Segmentation is a very interesting topic and I believe that the Intel manual really explains the topic well enough. Now we've gotten to the Interrupt and Exception land..... Interrupts and exceptions are events that indicates that a condition exist somewhere in the system, you can begin to think about the System Management interrupt I mentioned earlier. So once an interrupt or exception is detected, the currently running state is suspended and then the processor jumps to the handle the interrupt or exception. The processor receives interrupts from 2 main sources: external(hardware) or internal(software). Exception indicates error conditions, while interrupts are likely related to hardware events. For example, when you press a key on the keyboard, the interrupt can trigger the processor to handle the key pressed. After an interrupt has been handled then the Interrupt Flag is cleared to eliminate recursive interrupts. The interrupt and or exception handler are tasked with saving the buck of the previous running state since the hardware/processor saves little states. |
Programming / Re: Me And Osland!!! by olioxx(m): 9:12pm On Dec 04, 2021 |
Dec 4, 2021: Learned about the various Privilege Rings in Intel, Segmentation, and Interrupts. |
Programming / Re: Me And Osland!!! by olioxx(m): 9:59pm On Dec 03, 2021 |
So today I learned about CPUID , Execution Modes available in Intel and MSR |
Programming / Re: Me And Osland!!! by olioxx(m): 8:11pm On Dec 03, 2021 |
CPUID is an assembly instruction very related with the Intel Architecture. So in essence the CPUID is kinda a mechanism to find out if the CPU/processor support features like 64bit mode, hardware virtualization, Hyper threading, thermal monitor amongst other features. When I checked page 2843(Volume 3) in the Intel Manual, that is also index 1.3.6, the CPUID takes input from values stored at EAX register. (Note that I am using the Intel manual dated May 2020). The hardware/processor knows if CPUID is supported by checking the ID flag in the EFLAG register, the ID flag is located at bit 21 in the EFLAG register. It is possible to read and write to the EFLAG register by using 2 assembly instruction which are PUSHFQ and POPFQ. When there is a 0x0 in the EAX register before the CPUID is executed, the correct string output from EDX, ECX, EBX should be "Genuine Intel", that shows the Intel processor is running on the system. Checking CPUID info on Wikipedia shows this information, the link here https://en.m.wikipedia.org/wiki/CPUID When the input to EAX before CPUID is executed is 0x7, then it starts getting interesting (according to the Intel Manual), the 2bit in EBX register will notify us if the system supports Software Guard Extension to provide some level of security, the 7th bit will notify us if the system supports Supervisory Mode Execution Prevention, the SMEP makes sure that kernel mode software are not run in user mode, the 20th bit will notify us if the system supports Supervisory Mode Access Prevention, the SMAP will forcefully stop the kernel from accessing data from user space, this is very used in rootkit, but armed with this info, that bit can be monitored. Based on VM settings the Hypervisor can intercept the CPUID configuration, part of the reason why using raw processor is necessary to monitor CPUID related information. Next I learned about the different processor mode in Intel. Starting with Real Address Mode. Generally the RAM(Real Address Mode) is not the best security-wise, DOS used the RAM. The real reason why the RAM suck is that there are privilege rings, so a typical malware can both infect the kernel and users space. When a processor is reset it reverts back to RAM. Next is the System Management Mode. The SMM is triggered by the System Management Interrupt, the SMM makes sure there is added protection. The SMM is dubbed the most privileged execution mode, security is of Paramount importance. Next is the Protected Mode. This is one of the mode common mode of execution, checking page 72(Volume 1) provides more information. A lot of Systems uses/operates the Protected Mode, the PM provides support for privilege rings which the RAM lacks. AMD originally named the x86-64 the Long Mode(by the way I think that the Finite State Machine from AMD is more presentable than that of Intel). What I am trying to convey is that the graphical representation of the execution mode from AMD feels more presentable and logical. After the Protected Mode comes the Long Mode, now the Long Mode has 2 Operating mechanism/mode which are compatibility mode and x64 mode. The compatibility mode allows for backward compatibility that is why it is possible to run 32bit programs on a 64bit machine. The AMD also shows the bits to tweak to traverse through the various mode. AMD rocks on this one!!!! Next I learned about MSR or Model Specific Register, and I must say that the MSR is a hoooge topic that Intel dedicated an entire volume on MSR, and I must still say that knowledge of MSR and MSR mapping is really fantastic. Let's ride on. So the CPUID allows software(particularly Operating System) to know what features are supported by a given processor, but how does the features get enabled? The answer is MSR. For example, on a particular processor, Bluetooth feature is available, how then can we enable Bluetooth through the OS? Once again MSR. One common convention with Architectural MSR is the fact that "IA32_" is very common, what this means is that this MSR is generic to all processor. I knew this after some asking around lol. During class today, we did a little experiment. Before I detail the experiment, there are 2 very important assembly instructions related to MSR, these are RDMSR(Read MSR) which reads MSR specified at ECX into EDX:EAX(imul comes to mind here) and WRMSR(Write MSR). Now to the experiment. Step 1: Opening to page 4532 in Volume 4 of the Intel Manual. Step 2: I am actually seeing an hex value(C000_00B0). This is a IA32_EFER MSR. Step 3: Looking at the bit 8 field, notice that it signifies that IA32e mode is enabled, that means that the bit 8 field is what enabled 64bit mode, notice the e which means extended. Step 4: Looking at the bit 10 field, this notifies us if 64bit mode is active. Now looking at the comment column, that pseudo code is showing us basically that IF CUPID 80000001 return true(1) for bit 20 or 29. What does this mean? Let's check Volume 3 that is Table 3-8 for the initial EAX value of 80000001 and then check EDX for bit 20 or 29, notice that bit 20 didn't give a desirable output but bit 29 reads "Intel Architecture 64 available of 1". So this makes us know that 64 bit is available on this particular processor. Now linking it all up, first the CPUID allowed us to know if 64 bit mode is available on this processor, but we can only enable the 64 bit mode via MSR. |
Programming / Re: Me And Osland!!! by olioxx(m): 11:00am On Dec 03, 2021 |
Dec 3, 2021: Downloaded materials to study OS internals. Trusted the process even of I don't know where it will take me. Later in the day, I might write a short summary of what I've learnt today. Time for breakfast and study. See you soon So in the coming days I'll learn more on the Intel Architecture and its relations with the Windows OS. 1 Like |
Programming / Me And Osland!!! by olioxx(m): 10:58am On Dec 03, 2021 |
Preliminary: This thread is a twin to the other thread where I explored the dark corners of the internet. You can find it here https://www.nairaland.com/6820385/me-dark-corner I won't go into practical details in this thread just the theoretical. Materials I will be using: Intel Manual, Microsoft Documentation, An online class, Google Chrome Why I am doing this: I believe that the best way to learn / study well is to teach what you know in the simplest way and also spaced repetition I am also a big fan of low level stuffs. Let's jump right in!!!!!! |
Politics / Re: President Buhari Arrives Dubai Ahead Of Expo 2020 (Photos) by olioxx(m): 9:43am On Dec 02, 2021 |
Useless trip as usual. . |
Jobs/Vacancies / Re: How I Rejected N9 Million P.A. FPSO Job by olioxx(m): 8:57pm On Dec 01, 2021 |
Saifullah01: This is plan pride, if OP nor gree collect job, let him keep it to himself, abi who send am message? Secondly if you need to know what your industry pay is you can always ask peers in the same industry as you. MARSONE: First the tune of you post sounded like you were bragging. Second underpaying has been in Nigeria for a long time, so if you are just knowing, don't be shocked. Finally, you could have posted without mentioning amount, in this Nigeria where someone like me will do Thanksgiving if I jam a N9million naira job, you are rejecting, ah it annoy me ooo. This type of matter don't mention amount, you could have just said "Due to renumeration issues, I didn't accept the job". |
Travel / Re: Living In Canada/Life As A Canadian Immigrant Part 2 by olioxx(m): 9:35am On Nov 30, 2021 |
Cybercop2002:. Please don't relocated with this type of grammar ooo. E get why? Just keep the spirit high boss, the Lord is your strength. Have a skill and if you are enrolled in a tertiary institution, focus on your studies. Get your International Passport if you can. . Your moniker, are you in CyberSec??, because I am also in CyberSec, I and a Pakistani guy are learning together. If you are please drop lemme know, I might learn from you as well. 4 Likes |
Travel / Re: 6 Wonderful Countries On My Bucket List(photos) by olioxx(m): 9:14pm On Nov 29, 2021 |
Candidlady: So you love Nigeria ma? Well Good for you. I terrible hate anything Nigeria(did you notice the adjective?). walkbrazil4k: 1. Reykjavík, Iceland 2. Zurich, Switzerland 3. Castries, St Lucia 4. Santiago, Chile 5. Oslo, Norway 6. Malé, Maldives 2 Likes |
Travel / Re: Student With Family Journey To The UK ( All Prcocesses Updates ) by olioxx(m): 6:04pm On Nov 28, 2021 |
My Hommies .....
0.Hadampson
1.Niklausefred
2. Fidelismaria
3. Nicoswit
5. Jaycew ( POLAND)*
6. Subomi007
7. lamboladee
8. SaintHillary (UK)*
9. Vhuqnl
10. Joohan
11.Paccus
12. Richdee1
13. ichbinbrait
14. Canih28
15. olioxx
16. Savagethe21st
17. aziza45442
18. 2Lynx
19.NoFap123
20.Daintyprincess (new member)
21. Brawlscartel
22. seedorfy134
23.Tolzy11(welcome to the crew)
24.RedChiefPriest
25.GodsGabby (welcome cool)
26.Ayomide8990 (welcome mate)
27.Jizzyjordan
28. opeey |
Travel / Re: Woman Thinks Undocumented Immigrants Should Be Used As Slaves (video) by olioxx(m): 5:41pm On Nov 28, 2021 |
tensazangetsu20:. Oh I grab. Because seriously I dey pray night and day make God arrange my Japa moves within 2sec. Naija don tire son of Man. 1 Like |
Travel / Re: Woman Thinks Undocumented Immigrants Should Be Used As Slaves (video) by olioxx(m): 4:12pm On Nov 28, 2021 |
tensazangetsu20:. Me that I am still hustling for work visa, well if it is LEGIT no problem. Explain what you mean at the bolded sir. . Boss ednut1 the only boss himself, agbawo Canada, twale baba, you see say I don hype you small, nor forget the Macbook you promised me too. You remember that day like that, though e don tey wey you promise me and pocohantas. God nor go shame us. 1 Like |
Travel / Re: Not All Countries Are Suitable For Migration As A Nigerian by olioxx(m): 4:09pm On Nov 28, 2021 |
Blurpy:. No this sounds right. A lot of Nigerians are lazy, always wanting it easy, no proper research nothing!!!!! 14 Likes 1 Share |
Travel / Re: Christmas Has Already Started In Brazil(photos) by olioxx(m): 5:23am On Nov 28, 2021 |
walkbrazil4k:. I would really appreciate. walkbrazil4k I have responded your mail, you can send it now. |
Travel / Re: Christmas Has Already Started In Brazil(photos) by olioxx(m): 5:59pm On Nov 27, 2021 |
walkbrazil4k:. Sincerely speaking I like your flow sir, I am sure that with this action, the number of stupid idiots on Travel section will reduce. You remember this moniker XXXXTENTACION that wanted to be doing balabala, the way I systematically insulted that moniker made him/her to get the Bleep off. Some people just derive pleasure in derailing beautiful articles, but once you respond tactically, them go behave. Kudus for the good work√√√√ 1 Like |
Politics / Re: Did You Ever Read The Constitution Of Your Country by olioxx(m): 5:35pm On Nov 27, 2021 |
I read the Nigerian Constitution in my Secondary school days during Civic Education class, my teacher asked us to read Section 4 to learn about Human Right as enshrined in the 1999 Constitution, but guess what?? Even Nigerian Government nor dey respect Human Rights of her citizen. Nigerian Constitution nah SCAM. |
Travel / Re: Beer Is Cheaper Than Coca-cola In Brazil(photos) by olioxx(m): 5:30pm On Nov 27, 2021 |
walkbrazil4k you just made me love Brazil more and more, starting from em sexy Brazilian ladies, to that sweet accent and now cheap beer. Oh My Gwad!!!! Brazil is cool men. #Respect 1 Like |
Travel / Re: Christmas Has Already Started In Brazil(photos) by olioxx(m): 9:21am On Nov 26, 2021 |
Robertirase:. Brother odé can you see your life outside. Mind what you say, you nor go gree, see as you embarrassed yourself. Yahoo boy werey nah FBI go reason your matter Las Las. 1 Like |
(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (of 31 pages)
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 66 |