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

How to use it in Windows machine? #48

Open
Nirvanatin opened this issue Jul 8, 2017 · 4 comments
Open

How to use it in Windows machine? #48

Nirvanatin opened this issue Jul 8, 2017 · 4 comments

Comments

@Nirvanatin
Copy link

I have tried different ways to address the path in Windows CMD.

./bin/obfuscate obfuscate C:/xampp/htdocs/phptest/before C:/xampp/htdocs/phptest/after
bin/obfuscate obfuscate C:/xampp/htdocs/phptest/before C:/xampp/htdocs/phptest/after
./bin/obfuscate obfuscate C:\xampp\htdocs\phptest\before C:\xampp\htdocs\phptest\after
bin/obfuscate obfuscate C:\xampp\htdocs\phptest\before C:\xampp\htdocs\phptest\after
obfuscate C:/xampp/htdocs/phptest/before C:/xampp/htdocs/phptest/after
obfuscate C:\xampp\htdocs\phptest\before C:\xampp\htdocs\phptest\after
obfuscate /before /after

Whatever path I use it gives me the below error:

  [Symfony\Component\Console\Exception\CommandNotFoundException]
  There are no commands defined in the "C" namespace.
@ivanramosnet
Copy link

You must run obfuscate through PHP like this:

php ./bin/obfuscate obfuscate C:/xampp/htdocs/phptest/before C:/xampp/htdocs/phptest/after

@Brain8torm
Copy link

For Windows servers works:

cd bin
php ./obfuscate obfuscate D:\SRV\WPTMP\OSPanel\domains\domain.vv\input D:\SRV\WPTMP\OSPanel\domains\domain.vv\output

@Mr-Lion
Copy link

Mr-Lion commented Oct 26, 2020

None of this works anyway ... I keep getting error messages

[Symfony\Component\Console\Exception\CommandNotFoundException] There are no commands defined in the "D" namespace.

I have already tested all the variations. This is just one variation
PS D:\projects\phpencode\obfuscator\bin> php ./obfuscate D:\projects\phpencode\obfuscator\bin\input D:\projects\phpencode\obfuscator\bin\output

Could anyone help me, please?

@andycrulez
Copy link

you are missing obfuscate option in your command (after ./obfuscate)
command should look like:
php ./obfuscate obfuscate D:\projects\phpencode\obfuscator\bin\input D:\projects\phpencode\obfuscator\bin\output

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

5 participants