diff --git a/mission_1/attacks/chintan/compiler and interpreter.docx b/mission_1/attacks/chintan/compiler and interpreter.docx new file mode 100644 index 0000000..bdf7ec1 Binary files /dev/null and b/mission_1/attacks/chintan/compiler and interpreter.docx differ diff --git a/mission_1/attacks/chintan/compiler and interpreter.md b/mission_1/attacks/chintan/compiler and interpreter.md new file mode 100644 index 0000000..4a26643 --- /dev/null +++ b/mission_1/attacks/chintan/compiler and interpreter.md @@ -0,0 +1,11 @@ + #COMPILER: + A compiler is a program that translates a source program written in some high-level programming language into machine code (binary code) . The generated machine code can be later executed many times against different data each time. + + #INTERPRETER: + 1) Parse the source code and perform its behavior directly. + 2) Translate source code into some efficient intermediate representation and immediately execute this. + 3) Explicitly execute stored precompiled code made by compiler which is part of the interpreter system. + + #Diffrence between COMPILER and INTERPRETER: + 1) COMPILER is a piece of code that translate the whole high level language in to the machine language. INTERPRETER makes a part of the high level language and Convert them into Machine language. + 2) If the Error is there than after converting whole Code the Compiler detects. But the INTERPRETER is detect error when the part of high level language is converting into the diff --git a/mission_1/attacks/chintan/executable_file.md b/mission_1/attacks/chintan/executable_file.md new file mode 100644 index 0000000..4772eb9 --- /dev/null +++ b/mission_1/attacks/chintan/executable_file.md @@ -0,0 +1,17 @@ +# how to make a executable file in ruby?? + first we have to write the environment path of the file from where the file is execute. + #!/usr/bin/env ruby + in this line the env is run a program in modified environment. + + most of the file have read and write acess.but we have to give a executable acess to the file. + to give the acess of executable run the command ls -l hello.rb + + to execute the permisson the command is chmod 755 hello.rb + + rename the file and remove the extention .rb. + mv hello.rb hello_rb + + now find the path using the command echo $PATH + now create a softlink within the /usr/local/bin/ folder. + + diff --git a/mission_1/attacks/chintan/hello.CPP b/mission_1/attacks/chintan/hello.CPP new file mode 100644 index 0000000..60bb041 --- /dev/null +++ b/mission_1/attacks/chintan/hello.CPP @@ -0,0 +1,12 @@ +#include +int main() +{ + int a,b,c; + cout<<"enter the number a:"; + cin>>a; + cout<<"enter the number b:"; + cin<