Results 1 to 3 of 3

Thread: Overthewire - bandit 16 --> 1

  1. #1
    Join Date
    Feb 2018
    Beans
    8

    Overthewire - bandit 16 --> 1

    Hi people,

    I'm struggling with bandit level 16. I've read from https://www.yalpski.net/bandit-warga...rough-level-16 that I've to do three steps:
    1. search for open ports in range 31000-32000 (done)
    - I found two port: 31518 and 31790

    2. search which ports speak SSL (done)
    - 31518 speaks SSL, 31790 doesn't

    3. create own private key to connect to next level (here I'm stuck)

    I have searched on Google for generating a SSH key, and I've used following command:
    Code:
    ssh-keygen
    but I following error
    Code:
    Saving key "/home/bandit16/.ssh/id_rsa" failed: No such file or directory"
    I don't know to generate the key and how to use it for connecting to next level.

    Does someone know how to proceed and can give me some hints?

    I now figured out how to create the ssh-key.

    I had to create a directory using following command:
    Code:
    mkdir /tmp/kenken/
    where I created the ssh-key and renamed the ssh-key.

    But I'm not sure this is the right way to go and I don't can figure out how to use the ssh-key to proceed

    I figured it out. I had to run this command:

    Code:
    echo cluFn7wTiGryunymYOu4RcffSxQluehd | openssl s_client -quiet -connect localhost:31790
    Then a RSA private key was printed to stdout. This private RSA key should I copy/paste to a txt.file. Then I should change right, using chmod 600 file.path

    Then I could run
    Code:
    ssh -i file.path bandit17@localhost
    and I was at level 17.

    I have a question. When I ran this command:

    Code:
    echo cluFn7wTiGryunymYOu4RcffSxQluehd | openssl s_client -quiet -connect localhost:31790
    a private RSA key was printed to stdout. Why is that key being printed to stdout and what is it?
    Last edited by howefield; December 19th, 2018 at 10:32 PM. Reason: posts merged.

  2. #2
    Join Date
    Jul 2008
    Location
    The Left Coast of the USA
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Overthewire - bandit 16 --> 1

    Hello!

    Please use the default font and color unless there is a compelling reason to draw attention to a particular part of your post.

    Also, please enclose all terminal commands and their output in code tags. This makes your posts easier to read and preserves formatting.

    To use code tags:

    1. If you are using the "Reply to Thread" button - highlight text and click the # button in the text box header. Alternatively, click the # button first, place your cursor between the code tags and type or paste your text.

    2. If using "Quick Reply" then type [code] at the beginning and [/code] at the end. The square brackets are required.
    Please read The Forum Rules and The Forum Posting Guidelines

    A thing discovered and kept to oneself must be discovered time and again by others. A thing discovered and shared with others need be discovered only the once.
    This universe is crazy. I'm going back to my own.

  3. #3
    Join Date
    Feb 2018
    Beans
    8

    Re: Overthewire - bandit 16 --> 1

    Quote Originally Posted by QIII View Post
    Hello!

    Please use the default font and color unless there is a compelling reason to draw attention to a particular part of your post.

    Also, please enclose all terminal commands and their output in code tags. This makes your posts easier to read and preserves formatting.

    To use code tags:

    1. If you are using the "Reply to Thread" button - highlight text and click the # button in the text box header. Alternatively, click the # button first, place your cursor between the code tags and type or paste your text.

    2. If using "Quick Reply" then type [code] at the beginning and [/code] at the end. The square brackets are required.
    I'll will remember it in the future - thank you

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •