FIRST OF ALL WHAT IS COMPUTER ? … .
COMPUTER IS NOT MUCH DIFFERENT THEN HUMAN … . THEY CAN LEARN THEY CAN CALCULATE AND THEY CAN DO AS MUCH AS HUMAN TOO … .
JUST A BRIEF INTRODUCTION TO YOU ALL BY ( SKRAITOW ) TO TEASE YOU … .
LET’S GO START OUR CLASS … .
- iNTRODUCTION :
SO WHY DO WE CODE THIS CLASS , WE JUST WANT YOU TO EXTRACT 0day from ALL BOOK … .
REMEMBER TO THINK AND CHALLENGE THE IDEA OR EVEN WHAT YOU READ SINCE YOU ARE PHD OR PHD SOCIAL SCIENCE … .
COMPUTER HAS ALL PART JUST AS HUMAN HAS ALL PART TOO … .
EACH WORKING TOGETHER TO DISPLAY GRAPHIC , PROCESSING AND THE REST … .
THE AMAZING PART IS IT REALLY CAN DISPLAY AND SEE PICTURE JUST LIKE EYE , SEEING ALL STUFF , SO IT IS CAN SEE TOO , JUST LIKE NORMAL HUMAN … .
SYSTEM REQUIREMENT :
- VIRTUALBOX ON WINDOWS … .
- LINUX REDHAT 10 ISO … .
THIS IS HOW TO GET UPGRADE OR UPDATE FROM REDHAT ... .
subscription-manager register --username username --password password
dnf update redhat-release
dnf -y update
subscription-manager refresh
NOTE : REMEMBER CHECK YOUR TIME BECAUSE YOU TAKE SNAPSHOT FROM VIRTUALBOX SO SOMETIME THE TIME IS NOT SYNC PROPERLY SO IT GIVE ERROR ... . SOLUTION JUST shutdown -r now ... .
TO REMOVE THE SUBSCRIPTION :
subscription-manager unregister
2. Let's go To Theory ... .
BY LEARNING THIS THEORY WE ALL CAN AVOID NASTY BUFFER OVERFLOW AND UNDERSTAND MORE WHAT'S GOING ON BETWEEN KERNEL , HARDWARE AND THE REST ... .
LET'S EXPLORE THIS TOGETHER ... .
WE WILL CODE ALOT OF STUFF ... . SO STAY TUNE NOW ... .
3. CODE IN C BEGIN WITH HEX , BIT AND ASCII OR INTERNATIONAL STANDARD ... .
IMAGINE
#include<stdio.h>
2
3 int main()
4 {
5 printf ("hello,world\n");
6 return 0;
7 }
IN THIS C CODE REMEMBER #include <stdio.h> is just a sample of something that We call library ... .
this library can interact with your hardware ... .
example by using the word #include <stdio.h>
We include file call stdio.h .
Go ahead and install Our library and compiler by typing below command ... .
# dnf -y install gcc make
[root@localhost skraito]# find / -name stdio.h
find: ‘/proc/3526’: No such file or directory
find: ‘/proc/3527’: No such file or directory
find: ‘/proc/3528’: No such file or directory
find: ‘/run/user/42/doc’: Permission denied
find: ‘/run/user/1000/gvfs’: Permission denied
find: ‘/run/user/1000/doc’: Permission denied
/usr/include/bits/stdio.h
/usr/include/stdio.h
[root@localhost skraito]#
SEE ON TOP stdio.h is a file which inside include all C source code or assembly or whatever it is We will discuss more in upcoming lesson ... .
REMEMBER IF YOU WANT TO INCLUDE YOUR OWN LIBRARY YOU CAN SPECIFY IT LIKE #include </path/yourownlibrary.h> ... .
LET'S CONTINUE WITH OUR SOURCE CODE ON TOP ... .
IT IS BAD TO LEAVE MEMORY UNVOID ... .
BECAUSE IF LET'S SAY WE SAY int which mean 4 byte We let Our program 4 Byte free space to be exploit ... .
so the Target or Code should be like this ... .
#include <stdio.h>
even this stdio.h you should only just include part which is just printf code ... .
as it is taking alot of other stuff so it more problematic to Us the coder if figuring how Our code or program been exploit ... .
next int main () {
}
on top int is saying return the value of 4 byte of integer ... .
and main as the function name ... .
and () is in take of something ... .
so this is bad practice ... . ( We assume reader already read Our C programming tutorial that We Post ) check it Out here ... .
https://www.machophd.org/2026/04/13/elitez-0day-xc-our-news-phd-social-science-computer-architecture-and-their-art-and-computer-science-c-and-python-lets-begin-from-c-first-then-go-to-computer-architecture-co/
so We should void everything from input to return value ... .
so We should write like this ... .
1. void main (void) {
2.
3. }
Why this code on top Work ? ... .
because in C We only need one main ... .
which is mean We need one main function ... .
function can have return and have input ... .
so this work ... .
but do nothing just creating execute program without anything only main ... .
so the main code should be ... .
1. #include <stdio.h>
2.
3. void main (void) {
4. printf("Hello l33t");
5. }
TO BE CONTINUE ... .