URL is also a shell script that executes some malicious(?) code
1–10 of 74 posts
Re: URL is also a shell script that executes some malicious(?) code
#2Re: URL is also a shell script that executes some malicious(?) code
#3Shows that "right click, copy link, type wget ', paste, type ', enter" is a receipe to get pwned.
Same is probably true even when you do not paste it into a terminal but into a script. Like "Ok, I'm gonna automate downloading this ..."
Re: URL is also a shell script that executes some malicious(?) code
#4Re: URL is also a shell script that executes some malicious(?) code
#5That is pretty bad. Shows that "right click, copy link, type wget ', paste, type ', enter" is a receipe to get pwned. Same is probably true even when you do not paste it into a terminal but into a script. Like "Ok, I'm gonna automate downloading this ..."
Re: URL is also a shell script that executes some malicious(?) code
#6That is pretty bad. Shows that "right click, copy link, type wget ', paste, type ', enter" is a receipe to get pwned. Same is probably true even when you do not paste it into a terminal but into a script. Like "Ok, I'm gonna automate downloading this ..."
If you’re lucky it works. If you’re somewhat less lucky but still on the positive side, it doesn’t work with some syntax error that doesn’t corrupt anything.
There’s no excuse for not reviewing what is being executed before actually running it.
Re: URL is also a shell script that executes some malicious(?) code
#7That is pretty bad. Shows that "right click, copy link, type wget ', paste, type ', enter" is a receipe to get pwned. Same is probably true even when you do not paste it into a terminal but into a script. Like "Ok, I'm gonna automate downloading this ..."
Re: URL is also a shell script that executes some malicious(?) code
#8Re: URL is also a shell script that executes some malicious(?) code
#9Yes, $() inside of double quotes is expanded. This is a documented and standardized feature of all shells derived from the bourne shell.
i noticed the single quote. know how it gets escaped from the quote. the point is : we that work on command line use single quote to enclose urls as parameter to curl/wget. and that's not safe if you don't char-by-char escape the url.