Getting Started - Nibbles Box Walkthrough

Hey everyone,

Sorry if this is a dumb question but I’ve been trying to figure out why something isn’t working in the Nibbles walkthrough that’s part of the Getting Started module.

I’m at the part of the module where I’ve successfully gained a netcat connection with the nibbles server which is great, so the next part directs you to upgrade the TTY. The instructions given in the walkthrough is to use:

python3 -c 'import pty; pty.spawn("bin/bash")'

But this doesn’t work for me and I cant find anything on google about what the issue might be. The output I’m getting is an error message about a file not found. I’ll recreate the issue in a little bit to get the exact file that’s not being found but was hoping maybe someone knows off the top of their head what the problem might be.

I ended using another method to upgrade the shell so it’s not a huge deal, but I like to know why somethings work and other things dont.


Hey! Just a quick catch on the line you posted, not sure if that was a copy paste typo into the forum, but you are missing a / in the shell path:

python3 -c 'import pty; pty.spawn("bin/bash")'

Should be:

python3 -c 'import pty; pty.spawn("/bin/bash")'

That would probably be essential in upgrading your shell because the machine will have no idea what or where bin/bash is because the absolute path from root is not specified.

1 Like

That was it, it works now!

Thank you! I’m such an idiot sometimes. You have no idea how many times stupid things like this happen and hours later I realize it’s because I had one thing wrong in the command.

I even have the correct command in my notes which I looked at about 20 times while trying to figure out what I was doing wrong, oh well lesson learned I guess! Thanks again

1 Like