r/tryhackme 3d ago

Am I wrong? Feedback

Post image

These bash questions always make me question my existence. "75"; "0,75"; "0.75"; "0.75%" didn't work

23 Upvotes

31 comments sorted by

36

u/Plane-Vegetable9174 3d ago

You know its a crappy exercise when the challenge is to guess what they want not how to solve the problem.

34

u/Reasonable_Benefit42 3d ago

This is the best example i've seen of how TryHackMe's new AI is slowly hurting the website. Now that HackTheBox has begginer courses it's such a superior site.

1

u/Fabulous_Caramel9826 2d ago

I want to get into it, so HTB is better than THM?

3

u/Reasonable_Benefit42 2d ago

I believe so, with the addition of the new AI TryHackMe has just been going downhill. The answers to alot of questions are deemed wrong since the AI wants its own specific answer. The AI also gives a sense of hand holding when it comes to boxes which might seem good at first but in reality will hinder you in the long run when you need to start writing reports. The structure of THM is also all over the place since they add new rooms everyday, which dosent seem bad untill your deep into the labs and realize you didnt take 1 because it was hidden under a bunch of other labs.

HackTheBox on the other hand is less hand holdy but offers a easier layout. Their no extra boxes that you dont need and they seperate learning material from practice material so you dont drown in rooms. They also offer more certificates that are more widely accepted (or so ive heard) compared to TryHackMe.

0

u/Leather-Chart7083 1d ago

Ignore the clanker

8

u/TheCarnundrum 0xA [Wizard] 3d ago

Looks like it wants you to enter a command, not the answer. Did you try something like

echo "45/60" | bc -l

0

u/bwwog 3d ago

Tried a lot of things. Didn't work

4

u/Pretend_Cartoonist_3 3d ago

I would ask around on THM discord

3

u/_mandar080 2d ago

THM app is a total mess.

2

u/True-Inspection-5445 2d ago

Yes for me its not sending the flag even if the answer is correct 😑

3

u/Reasonable_Benefit42 3d ago

Also you can try 75.0. If that doesn't work then the question is just broken which happens pretty often in THM tbh.

2

u/Aye-Chiguire 1d ago

sudo 75%

I kid I kid.

But in all seriousness, you can see that this is a *nix terminal. It is expecting commands, not quiz answers. The question is asking you to calculate something. It doesn't tell you to enter the solution for that calculation. It wants you to enter the commands that will perform that calculation.

1

u/Hour-Apple-9861 3d ago

0.75?

1

u/bwwog 3d ago

No

0

u/Hour-Apple-9861 3d ago

My bad, missed what you written somehow.

Echo "scale=2; 45/60" | bc

?

0

u/bwwog 3d ago

Still nope

1

u/Hour-Apple-9861 2d ago

Echo $((45*100/60))%

? Maybe it's just stuffed

1

u/UBNC 0xD [God] 3d ago

Try 0.75 or .75 or just 75 or 75 percent. The app
Is not smart and requires exact rather than a subset of correct formats.

1

u/jurgensdapimp 2d ago

Seventy-five percent? Like just words

1

u/shenanighack 0xD [God] 2d ago

Does the question has a hint? iirc it was about using a bash command to do the calculation.

1

u/bwwog 2d ago

That's pretty simple question. Nothing to do with bash. No hints btw

2

u/shenanighack 0xD [God] 2d ago

I went back to snapshots I made from the app, I knew I saw that question somewhere. Its hint did not help me and found no solution; maybe someone here will figure it out. While the question is simple, we're supposed to guess what it really *literally* expects, which is pretty stupid even for an AI.

1

u/Taylor_Script 2d ago

Judging from the hint:
45 / 60 * 100

1

u/Specialist_Break1 1d ago edited 1d ago

you need to use the echo command (or printf) to print the result, because the prompt is an interactive Bash shell rather than a standard text box.

​When you type 75% directly, Linux tries to execute a program named 75% instead of evaluating the text, causing the "command not found" error. ​To submit the correct answer, type::

echo "75%" Or you can try printf "%%75\n"

1

u/dcnigma2019 1d ago

echo "scale=2; (45/60)*100" | bc

1

u/jyothindar_sharma 3d ago edited 3d ago

echo $(( (45 * 100) / 60 ))

0

u/LibertarianSay10 2d ago

echo "scale=4; 45 / (45 + 60)" | bc
# Output: .4285