Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assignment 2 Submission Mridul_220672_Software #29

Open
wants to merge 3 commits into
base: Submission
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
219 changes: 219 additions & 0 deletions Mridul Gupta_220672/Submission.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,219 @@
# Bandit Game

This is my solution to the first 15 levels of the bandit game by over the wire .

## Level 0

**Password:** bandit0

Connected to bandit using command
```
ssh [email protected] -p 2220
```

 
## Level 0 -> 1

**Password:** boJ9jbbUNNfktd78OOpsqOltutMc3MY1

Get password using
```
cat readme
```

 
## Level 1 -> 2

**Password:** CV1DtqXWVFXTvM2F0k09SHz0YwRINYA9

Got password using
```
cat -- -
```

 
## Level 2 -> 3

**Password:** UmHadQclWmgdLOKQ3YNgjWxGoRMb5luK

Got password using
```
cat spaces\ in\ this\ filename
```

 
## Level 3 -> 4

**Password:** pIwrPrtPN36QITSp3EQaw936yaFoFgAB
Got password using
```
ls
cd inhere
ls -a
cat .hidden
```

 
## Level 4 -> 5

**Password:** koReBOKuIDDepwhWk7jZC0RTdopnAYKh


Identity the required file using these commands
```
ls
cd inhere
ls -a
file -- -*
```

Now the file07 has ASCII text format which is human readable. So, this must contain the password
```
cat -- -file07
```

 
## Level 5 -> 6

**Password:** DXjZPULLxYr17uwoI01bNLQbtFemEgo7

Get password using
```
ls
cd inhere
ls -a
find -type f -size 1033c ! -executable
cat ./maybehere07/.file2
```



 
## Level 6 -> 7

**Password:** HKBPTKQnIay4Fw76bEy8PVxKEDQRKTzs

Got password using
```
find / -user bandit7 -group bandit6 -size 33c
cat /var/lib/dpkg/info/bandit7.password
```

 
## Level 7 -> 8

**Password:** cvX2JJa4CFALtqS87jk27qwqGhBM9plV

Got password using
```
ls -a
strings data.txt | grep millionth
```

 
## Level 8 -> 9

**Password:** UsvVyFSfZZWbi6wgC7dAFyFuR6jQQUhR

Got password using
```
ls -a
cat data.txt | sort | uniq -u
```



 
## Level 9 -> 10

**Password:** truKLdjsbJ5g7yyJ2X2R0o3a5HQJFuLk

Got password using
```
ls -a
strings data.txt | grep "="
```

 
## Level 10 -> 11

**Password:** IFukwKGsFW8MOq3IRFqrxE1hxTNEbUPR

Got password using
```
ls -a
base64 -d data.txt
```

 
## Level 11 -> 12

**Password:** 5Te8Y4drgCRfCx8ugdwuEX8KFC6k2EUu

Got password using
```
ls -a
cat data.txt | tr '[A-Za-z]' '[N-ZA-Mn-za-m]'
```

 
## Level 12 -> 13

**Password:** 5Te8Y4drgCRfCx8ugdwuEX8KFC6k2EUu

Got password using
```
ls -a
mkdir hello
cp data.txt > hello
cd hello
xxd -r data.txt > data1
file data1
mv data1 data1.gz
gzip -d data1.gz > data2
ls
file data2
mv data2 > data2.bz2
bzip2 -d data2.bz2
file data2
```

Repeat the above steps to get the ASCII text file which contains the password

 
## Level 13 -> 14

**Password:** 4wcYUJFw0k0XLShlDzztnTBHiqxU3b3e

To login into bandit user 14, run the following command.
```
ls
ssh -i sshkey.private bandit14@localhost
```

Once logged into bandit14, get password from /etc/bandit_pass/bandit14 using cat command.

 
## Level 14 -> 15

**Password:** BfMYroe26WYalil77FoDi9qh59eK5xNr

Being logged in as user bandit14 on localhost, run the command
```
telnet localhost 30000
```

Then enter the password got at previous level and it will display the password for next level


 
## Level 15 -> 16

**Password:** pIwrPrtPN36QITSp3EQaw936yaFoFgAB

After logging into level 15, run the command
```
openssl s_client -ign_eof -connect localhost:30001
```

After that enter the password you got in the previous level to get the next password.
54 changes: 49 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,69 @@

This is the repoitory for assignment submission of Software Subsystem of Team AUV-IITK

## Assignment 1: Bandit Wargame Assignment
### Assignment 1: Bandit Wargame Assignment
----------------------------------------------------------------------
<b>Compulsory for <u>ALL</u> subsystems</b>
You are required to complete the [bandit wargame](https://overthewire.org/wargames/bandit/) till level 15. This assignment will get you accustomed with CLI interface and the usage of basic bash commands.

### Steps to follow to make the submission:
#### Steps to follow to make the submission:
- Fork this repository
- Make a folder titled "[Name]_[Roll No.]"
- Make a markdown file (Readme.md/Submission.md) and list down the steps documented by you for the levels
- Create a PR to make the submission.

### Note:
#### Note:
- You may use the internet to understand the required commands and concepts.
- Make sure to properly document your steps for each level in the README.md file.
- Be sure to give a proper **Title** to your PR. (The title of PR should be "[Assignment **#** Submission]_[Name]_[Roll Number]_[Subsystem]")
- Be sure to give a proper **Title** to your PR. (The title of PR should be "[Assignment **#** Submission]\_[Name]\_[Roll Number]\_[Subsystem]")<br>
An example submission can have the title "Assignment 1 Submission\_Tejas Gupta\_211107\_Software"
- If you encounter any issues or have questions, feel free to ask for assistance.

Please let me know if you need further clarification

Some useful resources :
- Guide to markdown file syntax - [Link](https://www.markdownguide.org/basic-syntax/)

### Deadline: 18 May 2023, 23:59:59 IST (Not extendable !!)
#### Deadline: 18 May 2023, 23:59:59 IST (Not extendable !!)


## Software Subsystem Assignments:
These assignemnts are compulsory for the junior team members in software subsystem or those who would like to shift there subsystem. Though the first assignment is recommended for all.
### Contents
- [Assignment 1](https://github.com/tejas012321011/Training-Y22/edit/main/README.md#assignment-1-ros-basics)
### Assignment 1: ROS Basics
------------------------------------------------------------------------------------------------------
#### Prerequisites:
- Basic knowledge of version control and md file syntax
- Basic knowledge of bash scripting

#### Aim:
Understanding basic concepts related to ROS: nodes, topics, publishers, subscribers, messages and packages
#### Deadline:
31st May, 2023
#### Submission Format:
- Create a Pull Request against the Submission branch
- Your submission should contain your source (src) folder from your workspace and a markdown file explaining all the procedures to code in detail

#### Tasks:
- Create a catkin workspace for doing your assignments.
- Create a package titles ***math*** in that workspace.
- Implement two ROS nodes within the "math" package:
- Node 1: input_node
- Create two ROS topics.
- Publish two numbers (preferably random) on the topics.
- Node 2: output_node
- Subscribe to the topics published by input_node.
- Calculate the sum of the two numbers.
- Publish the sum on a separate topic.
- Create a ROS service named "add_two_numbers".
- The service should accept two numbers from the topics published by input_node.
- The service should return the sum of the two numbers.

#### Resources:
Start with the official ROS tutorials [here](http://wiki.ros.org/ROS/Tutorials); Do note Intermediate ones are also compulsory.Other resources will be posted as required

--------------------------------------------------------------------------------------
#### Bonus Assignments: Coming Soon !!


Binary file added catkin_ws/.DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions catkin_ws/.catkin_workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# This file currently only serves to mark the location of a catkin workspace for tool integration
Binary file added catkin_ws/build/.DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions catkin_ws/build/.built_by
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
catkin_make
Empty file added catkin_ws/build/CATKIN_IGNORE
Empty file.
Loading