Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run the compiled script on CheckPoint GAIA which is Red Had based #150

Open
Blason opened this issue Mar 26, 2023 · 0 comments
Open

Comments

@Blason
Copy link

Blason commented Mar 26, 2023

Hi Team,

I wrote a bash script on my ubuntu server and I then compiled with shc which is later transferred to my checkpoint machine and trying to execute those codes and its not happening. I understand there will be binary and ldd compatible issues but wondering if anything such can be possible?

This is from my Ubuntu Machine
shc -rUHf test-script test-script

And this is from my firewall
[Expert@-MGMT-FW:0]# sh ./test-script
./test-script: ./test-script: cannot execute binary file
[Expert@-MGMT-FW:0]# bash ./test-script
./test-script: ./test-script: cannot execute binary file
[Expert@-MGMT-FW:0]# bash -x ./Operation not permitted
bash: ./Operation: No such file or directory
[Expert@-MGMT-FW:0]# Killed
-bash: Killed: command not found
[Expert@-MGMT-FW:0]# bash -x ./test-script
./test-script: ./test-script: cannot execute binary file
[Expert@-MGMT-FW:0]#

[Expert@MUM-MGMT-FW:0]# uname -a
Linux MUM-MGMT-FW 3.10.0-957.21.3cpx86_64 #1 SMP Sat Oct 17 13:32:58 IDT 2020 x86_64 x86_64 x86_64 GNU/Linux

ldd test-script
linux-vdso.so.1 => (0x00007ffd6efd3000)
libc.so.6 => /lib64/libc.so.6 (0x00007f09cb4ba000)
/lib64/ld-linux-x86-64.so.2 (0x00007f09cb88e000)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant