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

Namespace declaration statement has to be the very first statement or after any declare call in the script #4

Open
shukla-rohit opened this issue Oct 1, 2019 · 18 comments

Comments

@shukla-rohit
Copy link

Hello,

I am facing one issue, in my file I have namespace, and after encryption with bolt, having line on top.
bolt_decrypt( FILE , PHP_BOLT_KEY); return 0;

and later have encrypted code.

so when I am running file, getting compile error.

Description:Namespace declaration statement has to be the very first statement or after any declare call in the script
Backtrace-------------------

So problem is that after encryption we are adding bolt_decrypt, and that is creating problem, if having namespace in file. Can you please suggest anything or any solution for this.

Regards,

@shukla-rohit
Copy link
Author

I am looking any solution for it. Do you have any solution for it?

@allanvb
Copy link

allanvb commented Oct 26, 2019

I have the same issue. Any solution on that ?

@arshidkv12
Copy link
Owner

Please download new version.
Or please feel free to contact me.
Skype : arshidkv12

@abhayvishwakarma
Copy link

@arshidkv12 Can you add the link of the latest version?

@arshidkv12
Copy link
Owner

arshidkv12 commented Nov 7, 2019 via email

@burakvural93
Copy link

burakvural93 commented Jan 16, 2020

We have also same issue.Could anyone share latest version of bolt.so and encryptor php file

Edit:Author deleted our all comments related with not finding solution to this problem. @allanvb

Repository owner deleted a comment from allanvb Jan 17, 2020
Repository owner deleted a comment from burakvural93 Jan 17, 2020
@arshidkv12
Copy link
Owner

Encrypt controller folder only.

@joseques
Copy link

I'm facing the same issue with Codeigniter. Encrypting any file with the namespace at the top seems to break the scripts.
I already sent a message on the webpage but I did not have an answer there.

@allanvb
Copy link

allanvb commented Jul 29, 2020

@joseques the author don't care about this issue. I contacted him and he told me that he will help me only if I pay for that, so I decided to pay for ionCube despite it's more expensive, because If I pay, I want to get a finished and tested product.

@sir-reynolds
Copy link

@joseques the author don't care about this issue. I contacted him and he told me that he will help me only if I pay for that, so I decided to pay for ionCube despite it's more expensive, because If I pay, I want to get a finished and tested product.

ioncube is a fool, because I suspect someone working on ioncube created a decode service https://easytoyou.eu/

This service is always up to date about 5-7 months after Ioncube releases the latest version, where all the code that we have encrypted will be able to decrypt using the service.

Then a few months after https://easytoyou.eu/ released the latest version, then 3-5 months later ioncube released the latest version again.

We have to pay again to get the latest version of ioncube so that the code that we encrypt cannot be decrypted.

However, as I mentioned, that after 5-7 months ioncube releases the latest version, then https://easytoyou.eu/ will follow it to release the latest version too.

Then again as I mentioned that after https://easytoyou.eu/ releases the latest version, ioncube will release the latest version after 3-5 months of decoded, and we have to pay again to get the latest version.

f * ck ioncube.

@brunoromeo001
Copy link

Does anyone have the solution?

@dipakkolhe
Copy link

Dose anyone have the solution for this issue?

@mrmuminov
Copy link

does have solution?

@brunoromeo001
Copy link

Hey guys, the solution for me was to download directly from this repository and not from the website.
Hope this helps.

@andreescocard
Copy link

Downloaded the encryption script from this repo, now the problem is another:
"Parse error: syntax error, unexpected ':', expecting end of file"

Downloading from the website, using php 7.4 TS dll, i got the same error (namespace declaration...)

@leehong0115
Copy link

Hello,

I am facing one issue, in my file I have namespace, and after encryption with bolt, having line on top. bolt_decrypt( FILE , PHP_BOLT_KEY); return 0;

and later have encrypted code.

so when I am running file, getting compile error.

Description:Namespace declaration statement has to be the very first statement or after any declare call in the script Backtrace-------------------

So problem is that after encryption we are adding bolt_decrypt, and that is creating problem, if having namespace in file. Can you please suggest anything or any solution for this.

Regards,

hi have you found the solution for this?

@shjy
Copy link

shjy commented Dec 28, 2023

delete string "<?php" ,the bolt_encrypt will add "<?php auto"

$fileContents = File::get(base_path($filePath));
$prepend = "<?php
bolt_decrypt( FILE , '$key'); return 0;
##!!!##";
$pattern = '/<?php/m';
preg_match($pattern, $fileContents, $matches);
if (!empty($matches[0])) {
$fileContents = preg_replace($pattern, '', $fileContents);
}
$cipher = bolt_encrypt($fileContents, $key);

@alesf
Copy link

alesf commented Jan 25, 2024

The problem is actually this line:

$cipher = bolt_encrypt( "?> ".$contents, $php_blot_key );

The space after ?> is the culprit.

Change the line to:

$cipher = bolt_encrypt( "?>".$contents, $php_blot_key );

and everything should work.

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