Code Monkey home page Code Monkey logo

Comments (8)

cuscat avatar cuscat commented on May 28, 2024 3

You can copy the /bin/bash from the machine you are attacking to the mounted directory and then use chmod +s bash to provide suid permission and then execute ./bash -p from the victim machine.

from writing.

nigrastormo avatar nigrastormo commented on May 28, 2024 1

i had a similar issue. when running the bash file i would get a token error in the first line of the bash file. i was able to see the contents of the file, but no changes I made resolved the error.

I tried to copy /bin/bash from target described above but that did not work for me either, but I was able to guess root's password...

Debes asegurarte de que tanto el propietario como el grupo del archivo bash son "root".

from writing.

ph3n0m79 avatar ph3n0m79 commented on May 28, 2024

I had the same exact issue. I tried to open the actual bash file but the contents were all just gibberish. I could be wrong, but if it's just a bash script for a shell shouldn't we be able to see the contents of the file? I've moved on to other parts of the courses, but this is obviously a major bummer for THM to say use this script and it doesn't work

from writing.

Watrex1902 avatar Watrex1902 commented on May 28, 2024

You can copy the /bin/bash from the machine you are attacking to the mounted directory and then use chmod +s bash to provide suid permission and then execute ./bash -p from the victim machine.

It works
Thank you!

from writing.

dillonwfletcher avatar dillonwfletcher commented on May 28, 2024

i had a similar issue. when running the bash file i would get a token error in the first line of the bash file. i was able to see the contents of the file, but no changes I made resolved the error.

I tried to copy /bin/bash from target described above but that did not work for me either, but I was able to guess root's password...

from writing.

spik3ykat avatar spik3ykat commented on May 28, 2024

i had a similar issue. when running the bash file i would get a token error in the first line of the bash file. i was able to see the contents of the file, but no changes I made resolved the error.
I tried to copy /bin/bash from target described above but that did not work for me either, but I was able to guess root's password...

Debes asegurarte de que tanto el propietario como el grupo del archivo bash son "root".

As above you need to change the ownership of the file and the group to root. My issue was they were both kali.
a quick "sudo chown root:root bash" sorted this for me thankyou nigrastormo :)

from writing.

polo-sec avatar polo-sec commented on May 28, 2024

As outlined in the task, you need to use the binary provided, and then change the permissions as said both in the task and by @spik3ykat . Please direct any problems to me directly through TryHackMe.

from writing.

daniming29 avatar daniming29 commented on May 28, 2024

I was able to guess the root password on the target machine (password) and cd into the root directory to read the text.

from writing.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.