Comments (8)
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.
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.
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.
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.
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.
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from writing.