Тёмный

Hide your source code and prevent future modifications to your shell scripts in  

The Lazy SysAdmin
Подписаться 4,3 тыс.
Просмотров 4,9 тыс.
50% 1

In this video, we'll be discussing the process of turning a shell script, which is a text-based program, into a standalone executable binary file that can be easily run on any system. This is a valuable skill for those who want to distribute their shell scripts or improve the performance and security of their programs. So, let's get started!"
If you've written a shell script and want to hide the source code and prevent future modifications, the shell script compiler or shc command might be your best bet.
Here's an example of using shc to compile a shell script:
To keep things simple, let's write a shell script that prints the phrase "Hello Lazy".
#!/bin/sh
echo "Hello Lazy"
Compile the script using shc:
shc -v -f hello.sh
This will create two extra files.
hello.sh is the original unconverted shell script
hello.sh.x is the converted shell script in binary format
and hello.sh.x.c is the C source code of the hello.sh file. This C source code is compiled to create the above converted hello.sh.x file.
Now, let us execute the converted shell script. You can run the binary file without the need for a shell interpreter:
./hello.sh.x
"shc" is a shell script compiler for Linux. It converts a shell script into a standalone binary executable. This can be useful for distributing scripts or making them more secure by hiding their source code.
PLEASE SUBSCRIBE :)
PLEASE HIT LIKE IF IT HELPED :)
GIVE SUPPORT - / lazysysad
BUY ME A COFFEE - www.buymeacoff...
PAYPAL - www.paypal.com...
Drop me your feedback and comments.
That's all for now.
If this video helped you in any way, please like share and subscribe!
Thank you!!!

Опубликовано:

 

15 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 10   
@lazysysad
@lazysysad 8 месяцев назад
check out my channel for LINUX TUTORIALS 😎💯 LIKE and SUBSCRIBE!!!
@ironfistyt8082
@ironfistyt8082 Год назад
Can we decompile it ...?...and how to do it?
@lazysysad
@lazysysad Год назад
It is not easy to decode a script that has been compiled with the "shc" function. The "shc" algorithm is not made available.
@PejcicStefan
@PejcicStefan 8 месяцев назад
Not true. Just start the script and in another terminal do: pa aux | grep SCRIPT-NAME you will be able to view the original bash code..
@SaphirosDragonthera
@SaphirosDragonthera Год назад
I thought that was going to be funny and in the end say "hello shit"!
@lazysysad
@lazysysad Год назад
:)
@MELAYU_MALAS_BODOH_HARAM
@MELAYU_MALAS_BODOH_HARAM Год назад
easy to decrypt shc
@lazysysad
@lazysysad Год назад
it's not encrypted.
@emjizone
@emjizone Год назад
What is the point of the pswd_z variable in the generated C program?
@WarFoxThunder
@WarFoxThunder 8 месяцев назад
Me, who doesnt need to code anything because windows does everything for me but poorly :D
Далее
Become a shell wizard in ~12 mins
12:25
Просмотров 253 тыс.
Bash vs ZSH vs Fish: What's the Difference?
13:32
Просмотров 185 тыс.
ROBLOX TRAND AGAIN. Part 7☠️🗿🙋🏻‍♀️
00:16
The Unreasonable Effectiveness of Linux Workstations
12:47
How To Protect Your Linux Server From Hackers!
20:38
Просмотров 302 тыс.
Windows & macOS can't do this, but Linux can!
15:55
Просмотров 894 тыс.
This Website has No Code, or Does it?
10:08
Просмотров 1,1 млн
Hide Information in JPEG Files
16:19
Просмотров 181 тыс.
Compilers, How They Work, And Writing Them From Scratch
23:53
BASH Environment | Aliases, Functions and Scripts
49:26
BASH scripting will change your life
14:18
Просмотров 1 млн
Linux Command-Line Tips & Tricks: Over 15 Examples!
31:37