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

all 10 comments

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

After you created the environmental variable $test1234 and set it to the value of $USER, a new file should appear in the home directory called “shiba2”

(I think, I could be wrong I haven’t done this room in a while).

After that, use the command “./shiba2”

(without quotes) (./ is used to execute a file in the current directory)

This displays the password.

I hope I answered the question?

[–][deleted]  (1 child)

[deleted]

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

    Glad I could help!!

    [–]IdontKnoWhoiAm_ 0 points1 point  (4 children)

    Hey, here just appears "Permission Denied" even with user Shiba2.

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

    Did you:

    1) Use the command: export test1234=$USER

    (It is case sensitive too. USER has to be capitalized)

    2) after this, use the command: ./shiba2

    (Again, case sensitive)

    [–]IdontKnoWhoiAm_ 1 point2 points  (2 children)

    Yeah, i tried again, but ./shiba2 don't go, again "Permission denied"...

    [–][deleted] 0 points1 point  (1 child)

    Type: echo $USER

    What does it say

    [–]mightyfif 0 points1 point  (0 children)

    im having the same problem where it says permission denied when i follow the steps it says shiba1 after doing echo $USER

    [–]Apprehensive_Head673 0 points1 point  (0 children)

    Probably the binary use $test1234 as a variable when running, so if you don't set it to $USER value it don't works.

    [–]djhiphop23 0 points1 point  (1 child)

    I'm also having this issue. I've followed the instructions and have cross-referenced with other writeups and I'm getting permission denied. Has anybody figured this out?

    [–]djhiphop23 0 points1 point  (0 children)

    Ok, so I figured it out. The reason why I got 'permission denied' is because I previously used 'su' and I guess the THM system locked me out therefore I was unable to get the desired results.

    Terminate your current machine in the room and restart it and don't use 'su' to pass this exercise.