-
OVERTHEWIRE:BANDIT WALKTHROUGH SERIES LEVEL 26
Login as bandit25 with the password we obtained in the http://www.anonhack.in/?p=1347 The hint for this level says: Logging in to bandit26 from bandit25 should be fairly easy… The shell for user bandit26 is not /bin/bash, but something else. Find out what it is, how it works and how to break out of it. This is a…
-
OVERTHEWIRE:BANDIT WALKTHROUGH SERIES 23-25 LEVELS
This is overthewire series with bandit walkthrough from level 23 – 26. If you haven’t gone through the previous articles on OVERTHEWIRE Bandit then follow the links below! http://www.anonhack.in/2018/04/overthewire-bandit-walkthrough-series/ http://www.anonhack.in/2018/04/overthewirebandit-walkthrough-series-6-10-levels/ http://www.anonhack.in/2018/04/overthewirebandit-walkthrough-series-12-15-levels/ http://www.anonhack.in/2018/04/overthewirebandit-walkthrough-series-15-18-levels/ Level 22 – 23 Login into bandit22 with the password we obtained in the article above. The hint for this level says: A…
-
Program to find Sum of two matrix in C Language
Below is the program to find the sum of two matrics in C language. You can edit it to your needs if you want to. I have taken two matrix with 3 X 2. You can change it. The following code has been executed in Dev C++ and will also work with Ubuntu gcc. Code:…
-
OVERTHEWIRE:BANDIT WALKTHROUGH SERIES 19-22 LEVELS
This article will guide you through the OVERTHEWIRE Bandit level 19-23. The OVERTHEWIRE BANDIT levels make you understand the basic functionalities of linux operating systems and how you can work in that environment. If you didn’t see my past posts of overthewire series, Here are the links to those posts: http://www.anonhack.in/2018/04/overthewire-bandit-walkthrough-series/ http://www.anonhack.in/2018/04/overthewirebandit-walkthrough-series-6-10-levels/ http://www.anonhack.in/2018/04/overthewirebandit-walkthrough-series-12-15-levels/ http://www.anonhack.in/2018/04/overthewirebandit-walkthrough-series-15-18-levels/ …
-
Program to print Transpose of a matrix in C language
The following program print the transpose of the matrix in C. The transpose of a matrix makes the row to column and column to row. If the matrix is in the form a[3][2] then the transpose of such a matrix will be a[2][3]. About the Code: The code is written in two dimensional array taking…
-
Program to display sum of series 1+1/2+1/3+…+1/n in C language
The following C program is to find the sum of the series 1+1/2+1/3+…+1/n. The following code have been compiled and executed in Dev C++. Information about the code: > The variable is taken as double here. Int datatype will not be used here or else the generated output will be wrong. > %.3lf prints 3…
-
SkyTower CTF Walkthrough
The following article is a walkthrough for Skytower Vulnerable machine. This machine is a web application Capture the flag machine. This machine is filtered and an appropriate methodology is required here. Objectives: Obtain the flag.txt file from /root/ So let’s dive: Tools: Virtual Machine or VMware Kali OS I located the skytower vulnhub’s IP address…
-
Program to Reverse a number in C language
The following program will show how you can reverse a particular number in C language. The code has been written and compiled in Dev C++. code: #include void main(){ int n,a,r=0; printf(“Enter any number: “); scanf(“%d”,&n); while(n>=1) { a=n%10; r=r*10+a; n=n/10; } printf(“Reverse = %d”,r); } OUTPUT:
-
Program to Calculate Simple Interest in C language
This is the C program to calculate Simple Interest. We calculate simple interest to calculate interest charge on the loan. The following C program has been written and compiled on Dev C++. Code: #include<stdio.h> void main(){ int t; float p,r,si; printf(“Enter the Principle:”); scanf(“%f”,&p); printf(“Enter the Rate Of Interest:”); scanf(“%f”,&r); printf(“Enter the Time:”); scanf(“%d”,&t); si=(p*r*t)/100;…
-
Finding Area and Circumference of Circle in C Language
C program for calculating Area and Circumference of the Circle in C language. In this program, we are taking the input for the Radius. The value for pi, area and ci [circumference] is float. So I have defined it with Float datatype. Area of the Circle : Pie * (r)^2 Circumference : 2 * Pie…
-
Program to Find Fibonacci Series using Shell Script
This is the bash code for Fibonacci Series upto a number n which will be inserted by user. Code: clear echo “Program to Find Fibonacci Series” echo “How many number of terms to be generated ?” read n x=0 y=1 i=2 echo “Fibonacci Series up to $n terms :” echo “$x” echo “$y” while […