Skip to main content

Posts

During startup program exited with code 127 - GDB TOOL [FIXED]

  Cannot exec During startup program exited with code 127 - GDB TOOL [FIXED] root@kali:~/Desktop# gdb main GNU gdb (Debian 7.12-6+b1) 7.12.0.20161007-git Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.  Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from main...done. (gdb) r Starti...

C++ : Program to find simple Interest and compound Interest

Program to find simple Interest and compound Interest #include<iostream> using namespace std; int main() {     int p, r, t;     float si, ci;     cout << "Enter value for P R T" << endl;     cin >> p >>r >> t;     si = p*r*t/100;     ci = p*(1+r/100)^t;     cout << "SIMPLE INTREST = " <<si <<"\n" << "COMPOUND INTERESRT= " << ci;     return 0; }

C++ : Program to check whether the entered number is odd or even

Program to check whether the entered number is odd or even  #include <iostream> using namespace std; int main() {     int num;     cout << "Enter any number: ";     cin >> num;     if (num%2 == 0)         cout << "Number is even";     else         cout << "Number is odd";     return 0;    }

C++: program to input three numbers and print the largest of three

    Program to input three numbers and print the largest of three #include <iostream> using namespace std; int main() {     int x,y,z;     cout << "Enter three NUMBER: "<< "\n";     cin >> x >> y >> z;     if(x>y && x>z)     cout << "\n" << x << " is greater";     if (y > x && y > z)     cout << "\n" << y << " is greater";     if (z > x && z > y)     cout << "\n" << z << " is greater";     return 0;     }

C++ :Program that reads temperature in Celsius and displays it in Fahrenheit

Program that reads temperature in Celsius and displays it in Fahrenheit #include <iostream> using namespace std; int main() {         int celsius, fahrenheit;     cout << "Enter temperature in dgree Celcius ";     cin >> celsius;     fahrenheit = 9* celsius/5 +32;     cout << "Temperature in dgrese FAHRENHET: " << fahrenheit << endl;     return 0; }

C++: Program to check wether a number is greater than or less than other number

Program to check wether a number is greater than or less than other number #include <iostream> using namespace std; int main() {     int num1, num2;     cout << "Enter value for num1:"; cin >> num1;     cout << "Enter value for num2: "; cin >> num2;     if (num1 > num2)         cout << "Num1 is greater than num 2\n";     else         cout <<"num1 is smaller than num 2\n";     return 0; }

C++: Program To find Sum of Two numbers

C++: Program To find Sum of Two numbers #include <iostream> using namespace std; int main() {     int num1, num2, sum;     cout << "Enter Number 1: ";     cin >> num1;     cout << "Enter number 2: ";     cin >> num2;     sum = num1 + num2;     cout << "sum of number: " << sum << "\n";     return 0; } Output -

OverTheWire Bandit Wargame Solutions 1-5

 OverTheWire Bandit Wargame Solutions 1-5 How to login OverTheWire first time (2018) lvl 0 login with  ssh bandit0@bandit.labs.overthewire.org -p 2220  password bandit0 lvl - 0 bandit0@bandit:~$ ls readme bandit0@bandit:~$ cat readme boJ9jbbUNNfktd78OOpsqOltutMc3MY1 bandit0@bandit:~$ exit lvl - 1 ssh bandit1@bandit.labs.overthewire.org -p 2220 boJ9jbbUNNfktd78OOpsqOltutMc3MY1 bandit1@bandit:~$ file ./-* ./-: ASCII text bandit1@bandit:~$ cat ./- CV1DtqXWVFXTvM2F0k09SHz0YwRINYA9 bandit1@bandit:~$ quit lvl - 2 ssh bandit2@bandit.labs.overthewire.org -p 2220 CV1DtqXWVFXTvM2F0k09SHz0YwRINYA9 bandit2@bandit:~$ cat "spaces in this filename" UmHadQclWmgdLOKQ3YNgjWxGoRMb5luK lvl - 3  ssh bandit3@bandit.labs.overthewire.org -p 2220  UmHadQclWmgdLOKQ3YNgjWxGoRMb5luK  bandit3@bandit:~$ cd inhere bandit3@bandit:~/inhere$ ls bandit3@bandit:~/inhere$ ls -l total 0 bandit3@bandit:~/inhere$ ls -a .  ..  .hidden...

How to login OverTheWire first time (2018)

HOW TO LOGIN OverTheWire Steps 1 : fire up terminal steps 2: copy this command and past them at terminal ssh bandit0@bandit.labs.overthewire.org -p 2220 steps 3: now give permission by entering yes (if it ask) steps 4: now Enter this password bandit0   TO complete first level use cat readme command     second lvl password is boJ9jbbUNNfktd78OOpsqOltutMc3MY1 now lets login for second level -- get exit from ssh terminal with exit command  steps 5: login for second account with this command ssh bandit1@bandit.labs.overthewire.org -p 2220 here we change value from 0 to 1  steps 6: use passqword which we extracted from level 0 boJ9jbbUNNfktd78OOpsqOltutMc3MY1 done we will do same for every level by change value 0 ,1,2,3,4,etc...... ssh bandit1@bandit.labs.overthewire.org -p 2220   ----- lvl 1 ssh bandit2@bandit.labs.overthewire.o...

C++: Write a program to print the largest of 3 number using conditional operator

Write a program to print the largest of 3 number using conditional operator #include<iostream> using namespace std; int main() {     int a, b, c;     cout << "Enter 3 no\n";     cin>>a>>b>>c;     int big =  ( a>b && a>c )?a:(b>c?b:c);     cout<<"\nAmong "<<a<<" , "<<b<<" , "<<c<<" Biggest is "<<big<<endl;     return 0; }

C++: Write a Program to Find the S.I given Principal = 100 , take rate and time from the User

Write a Program to find the S.I given Principal = 100 , take rate and time from the User #include<iostream> using namespace std; int main() {     int principle = 100;     int rate, time, intrest;     cout << "Enter rate= ";     cin>>rate;     cout<<"Enter time= ";     cin>>time;     intrest=(principle*time*rate)/100;     cout <<"The intrest rate is = "<<intrest<<endl; }

C++: Program to calculate and display area of a circle

C++: Program to calculate and display area of a circle #include <iostream> using namespace std; int main() {     float radius;     float area;     cout << "enter radius:";     cin >> radius;     area = radius * radius * 3.14;     cout << "area of the circle of is:" << area;     return 0; } Result -

C++ : squaring number in C++ script

C++ : squaring number in C++ script #include <iostream> #include <stdlib.h> using namespace std; int main() {   ("cls");    //For clearscreen funtion for Turbo C++ version clscr() also work     int var, sqrs;     cout << "enter varible:";     cin >> var;     sqrs = var * var;     cout << "\n" << "The square is :" << sqrs; return 0; } Result - https://code.sololearn.com/c45mw9pXGOUs/#cpp Use this script from here

C++ : Cascading of I/O Operators

C++ : Cascading of I/O Operators  Successive occurrence of operators (">>" or "<<" respectively) can be concatenated    example 1 - cout << "The sum of 2 + 5 = " << 2 +5 \n"; example 2 - cout >> "The result of 8 - 2 is" << 8 -2; example 3 - cout << "the sum of" <<  value1 << "and" << "is" << value 1 + value2 << "\n"; example 4 - Similarly successive occurrences of input operator (>>) can also be concatenated as follows :  cout << " Enter two numbers :"; cin >> value1 >> value2; Demo - ( squaring numbers) #include <iostream> using namespace std; int main() {     int var, sqrs; cout << "enter number:\n"; cin >> var; sqrs = var * var; cout << "\nanswers\n" << sqrs << endl; } Result - Without Cascading - ...

How To Setup Instabot

How To Setup Instabot 1> Fire up terminal apt-get update apt-get dist-upgrade apt-get install apt apt install git 2> git clone https://github.com/instagrambot/instabot.git  copy downloaded (instabot) folder in new folder on Desktop (my folder name is Instagram) Now Go To Desktop>Instagram>instabot>instabo>api Method 1> Fire up terminal from this folder (click right mouse button & choose Open In Terminal ) Method 2> use this terminal command cd Desktop/instagram/instabot/instabot/api steps 3> now run this command   git clone https://github.com/instagrambot/api.git step 4> c opy all the file of the api which is downloaded from (git clone https://github.com/instagrambot/api.git) from this command and paste this outside the box(Desktop>Instagram>instabot>instabot>api)  and delete downloaded api folder.......... example :-   steps 5> Go T o Desktop>insta...

How To Install Adobe Flash Player In firefox quantum/firefox on Kali Linux

I n this article we are going to install and plugin adobe - Flash player on Firefox Quantum /firefox so first you should must download firefox quantum in kali linux here is the steps to install firefox quantum in kali linux 2017.2 - How To Install Firefox Quantum in Kali linux /other Linux    Method -1: Automatic Install Open a Terminal in Kali Linux and type this command: apt-get install flashplugin-nonfree When it finishes installing and you are presented with the root@kali prefix again, type this command and press Enter: update-flashplugin-nonfree –install You can go here in firefox to test Flash Player. If you see the little animation , then you’re good to go!   Method #2: Manual Install   First of all go to this site and download tar.gz for other linux . https://get.adobe.com/flashplayer/ Now hit the download button Extract the tar.gz File once you have downloaded the file extract them. Installing Fla...