OVERTHEWIRE NATAS SERIES: 19 – 20 LEVEL Walkthrough

OVERTHEWIRE NATAS level 19-20 is similar to 18-19 level. We have to manipulate session in order to login as admin. In the last level, we just have to change the PHPSESSIONID number in order to gain the access to the admin account. We have to do the same in this […]

OVERTHEWIRE NATAS SERIES: 18 – 19 LEVEL Walkthrough

OVERTHEWIRE NATAS level 18-19 is based on session bypass. We have to login as admin without any credentials, in such cases we can look for the session value and try to change it because that’s the only way in after there is no credentials. So let’s do this. The code […]

OVERTHEWIRE NATAS SERIES: 17 – 18 LEVEL Walkthrough

OVERTHEWIRE NATAS level 17-18 is about blind sql injection. To make the level more complicated, the output hasn’t been displayed. Let’s dive in the level: If you look at the code below. It is a simple code which takes the username and check for its existence in the table users. […]

OVERTHEWIRE NATAS SERIES: 16 – 17 LEVEL Walkthrough

The walkthrough for the last level is available on this link: http://www.anonhack.in/2018/09/overthewire-natas-series-15-16-level-walkthrough/ This level is little bit similar to the last level. Here we have to perform a command injection. Let’s have a look at the source code of this level: See the highlighted text in the code above. $key variable […]

OVERTHEWIRE NATAS SERIES: 15 – 16 LEVEL Walkthrough

If you want to see the level 14- 15, follow this link: http://www.anonhack.in/2018/09/overthewire-natas-series-14-15-levels/ Level 15-16 is also based on SQL injection but here we have to work on boolean based SQL injection technique. Let me how you how: This is what the screen looks like: I put “natas16” as the user […]

OVERTHEWIRE NATAS SERIES: 14 – 15 LEVELS

You can find the level before this on this http://www.anonhack.in/2018/09/overthewire-natas-series-level-12-14/ The 14th level of overthewire natas is a typical SQL injection based level. In this level, we have to use SQL injection tactics in order to get the password for the 15th level. Let’s dive in: This screen will appear:  2. […]

OVERTHEWIRE NATAS SERIES: LEVEL 12 – 14

This write-up is the walkthrough for OVERTHEWIRE NATAS level 12 to level 14. Both these levels contain upload the image kind of challenges where we have to upload a shell bypassing the code. LEVEL 12 – 13: The above image is the screen for overthewore natas challenge 12, When you […]

Java Program to left rotate the Array

The following Java program rotates the array to d rotational integer. A left rotation operation on an array shifts each of the array’s elements  unit to the left. For example, if left rotations are performed on array [1,2,3,4,5], then the array would become [3,4,5,1,2]. The Code makes use of swapping using temp variable for circular […]

Finding Kth Maximum Number from an Array in Java

The following program is used to find the Kth Maximum number from a given unsorted array. The approach on which this code is written uses sorting and then gives out the Kth  maximum number. This can be done without sorting too. At the end of the code, you will get a […]

Swapping every two bits in byte Java Solution

In the Swapping of two bits in byte in java, the output should look like something below: Swap all the pair of bits in a byte. Before swapping: 11-10-11-01 After swapping: 11-01-11-10 The code is written and tested in Netbeans. Code: import java.util.Arrays; import java.util.Scanner; public class bitbyte { public […]