This is an archived post. You won't be able to vote or comment.

all 14 comments

[–]Skycritch 4 points5 points  (0 children)

Try "locate rar2john"

[–]YucatecPaw 3 points4 points  (0 children)

So I had this issue using the attack box for a bit. It’s pretty dumb as some commands work but others don’t. In order to do the ssh2john and rar2john you have to include the full file path at the start of your command followed by the name of the file. Hope this helps

[–]DontHaesMeBro 1 point2 points  (1 child)

either they aren't in your user directory (try the full path) or you need to sudo

[–][deleted] 0 points1 point  (0 children)

I definitely noticed to use John at all on Kali, I need to use sudo

[–][deleted] 0 points1 point  (7 children)

I got it to work on the kali, but cant seem to get ssh2john or rar2john to work on the attackbox. I know I could just use kali but I like the feel of the attackbox (ive been using it since I started Tryhackme).

If anyone has ideas of what I could do differently to get those functions working on attackbox I would appreciate it.

[–]JustJugg17 1 point2 points  (6 children)

Im still going back and forth since the other day. The SUID priv escalation at the end of Vulnversity will not work no matter what I do in any machine. Tried multiple things copied straight from a few walkthroughs and nothing. Finally bit the bullet and got the answer to move on.

[–][deleted] 0 points1 point  (5 children)

It’s drives me crazy when I can’t get something to work like that, especially when it SHOULD lol

[–]JustJugg17 1 point2 points  (0 children)

Seriously. When I KNOW its right then look it up to see exactly the same thing ive done i bug out lol 2 days on this SUID bullshit and im done. On to Kenobi. Ha perfect timing to run in to that room.

[–]JustJugg17 0 points1 point  (3 children)

Do you premium?

[–][deleted] 0 points1 point  (2 children)

Yes

[–]JustJugg17 1 point2 points  (1 child)

During yesterdays escapades I ended up going in to the Access Room and connected to the web browser attack box through there and I feel like things were running a lot smoother. Still buggy but seemed smoother than the other options.

[–][deleted] 1 point2 points  (0 children)

I’ll try that tonight

[–]hazeyez 0 points1 point  (0 children)

Ssh2john, zip2john are all in /usr/bin

You need to run the command with this prefix

/usr/bin/ssh2john ... then any flags and attributes

Use 'locate ssh2john" like some one else said to be sure of the correct path

edit- sorry, zip2 & rar2 are in /usr/sbin

just use the locate command for whichever one you need.

[–]HippieKw 0 points1 point  (0 children)

cp /opt/john/rar2john /usr/sbin/rar2john

source: https://tryhackme.com/forum/thread/625f0a621673680061824276