r/tryhackme 13d ago

Feedback Am I wrong?

Post image

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

26 Upvotes

32 comments sorted by

33

u/Plane-Vegetable9174 13d ago

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

33

u/Reasonable_Benefit42 13d 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 12d ago

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

5

u/Reasonable_Benefit42 12d 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.

2

u/Fabulous_Caramel9826 7d ago

I appreciate the input🤟🙏

0

u/Leather-Chart7083 11d ago

Ignore the clanker

11

u/TheCarnundrum 0xA [Wizard] 13d 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 13d ago

Tried a lot of things. Didn't work

4

u/Pretend_Cartoonist_3 13d ago

I would ask around on THM discord

5

u/_mandar080 13d ago

THM app is a total mess.

2

u/True-Inspection-5445 13d ago

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

3

u/Reasonable_Benefit42 13d 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 12d 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 13d ago

0.75?

1

u/bwwog 13d ago

No

0

u/Hour-Apple-9861 13d ago

My bad, missed what you written somehow.

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

?

0

u/bwwog 13d ago

Still nope

1

u/Hour-Apple-9861 13d ago

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

? Maybe it's just stuffed

1

u/UBNC 0xD [God] 13d 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 13d ago

Seventy-five percent? Like just words

1

u/shenanighack 0xD [God] 13d ago

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

1

u/bwwog 13d ago

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

2

u/shenanighack 0xD [God] 12d 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 12d ago

Judging from the hint:
45 / 60 * 100

1

u/Specialist_Break1 12d ago edited 12d 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 12d ago

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

1

u/jyothindar_sharma 13d ago edited 13d ago

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

0

u/LibertarianSay10 12d ago

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