Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to determine that the shell script is safe

I downloaded this shell script from this site.

It's suspiciously large for a bash script. So I opened it with text editor and noticed that behind the code there is a lot of non-sense characters.

I'm afraid of giving the script execution right with chmod +x jd.sh. Can you advise me how to recognize if it's safe or how to set it's limited rights in the system?

thank you

like image 778
xralf Avatar asked Nov 28 '25 00:11

xralf


1 Answers

The "non-sense characters" indicate binary files that are included directly into the SH file. The script will use the file itself as a file archive and copy/extract files as needed. That's nothing unusual for an SH installer. (edit: for example, makeself)

As with other software, it's virtually impossible to decide wether or not running the script is "safe".

like image 165
user123444555621 Avatar answered Nov 30 '25 17:11

user123444555621