App - Script

Wednesday 10 March 2021, 07:48  #1
Bash - quoted expression injection
Cytov
  • 3 posts

Hi everyone,

This challenge seems alot of fun but I am having trouble passing the first if condition.

I had a trick to pass it and when I use it on the ch21.sh alone it works, but when I try using it on the wrapper it doesn’t work.

I am pretty sure I am doing something wrong but I cannot put my finger on it. any hint or suggestion would be much appreciated

Thank you

Wednesday 10 March 2021, 10:11  #2
Bash - quoted expression injection
ElTouco72
  • 283 posts

Hi,

Look at the wrappper source code and you will understand.

good luck

Thursday 11 March 2021, 07:39  #3
Bash - quoted expression injection
Cytov
  • 3 posts

Although I already did, but I will take another look, Thank you for the suggestion sir

Sunday 18 April 2021, 22:46  #4
Bash - quoted expression injection
alld0wnh1ll
  • 3 posts

I went down a lot of rabbit holes with this one and it wound up being something a little bit novel. I would study the different type of, as in the subject, "Bash expressions." These challenges really help you master string manipulation; Thanks "sbrk" for making this one.

Monday 26 April 2021, 12:58  #5
Bash - quoted expression injection
flyingpolak
  • 4 posts
Friday 30 April 2021, 22:29  #6
Bash - quoted expression injection
ElTouco72
  • 283 posts

not at all

Sunday 2 May 2021, 18:49  #7
Bash - quoted expression injection
flyingpolak
  • 4 posts

thanks for the reply @eltouco
i don’t get it about the wrapper, the source is the same as the unquoted challenged
on script side , the only difference i suspected was the first line of the line which differs (usr/bin/env bash)
but substituing the bash has no effect
i had a unexpected token trying to use subshell as parameters
 > is this the right way?
i think i m going crazy  🙄