Bash 스크립트를 바이너리 파일로 만들기

1 개요[ | ]

Bash 스크립트를 바이너리로 변환하기
Bash 스크립트를 바이너리 파일로 만들기
Bash 스크립트를 실행 바이너리로 변환하기

2 사전작업[ | ]

3 실습[ | ]

testuser@localhost:~$ cat greet.sh
#!/bin/bash
echo Hello, $1!
testuser@localhost:~$ bash greet.sh World
Hello, World!
testuser@localhost:~$ shc -f greet.sh
testuser@localhost:~$ ./greet.sh.x World
Hello, World!
testuser@localhost:~$ file greet.sh
greet.sh: Bourne-Again shell script, ASCII text executable
testuser@localhost:~$ file greet.sh.x
greet.sh.x: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=5aeea2b6cf92c1b158d3622968c4ec2b2feb082a, stripped

4 같이 보기[ | ]

5 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}