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

Compiling #12

Closed
SlenderSolo opened this issue May 30, 2021 · 2 comments
Closed

Compiling #12

SlenderSolo opened this issue May 30, 2021 · 2 comments
Assignees

Comments

@SlenderSolo
Copy link

Hi, I am having trouble compiling SandboxEvasion, every time I get the error

MSB3073 The command "python gen_default_data.py def_data.conf
:VCEnd" exited with code 1.	SandboxEvasion C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 123

I opened gen_default_data.py and VS Code showed me that there are 5 problems with brackets in print function, I added them, tried to compile again but I got the same error. I ran python gen_default_data.py def_data.conf with a terminal and got output

Traceback (most recent call last):
  File "C:\InviZzzible\SandboxEvasion\gen_default_data.py", line 97, in <module>
    main()
  File "C:\InviZzzible\SandboxEvasion\gen_default_data.py", line 92, in main
    If not create_includes(conf):
  File "C:\InviZzzible\SandboxEvasion\gen_default_data.py", line 61, in create_includes
    cuckoo_file = "static const char *cuckoo_conf = \"%s\";" % escape_file_data(cuckoo_d)
  File "C:\InviZzzible\SandboxEvasion\gen_default_data.py", line 18, in escape_file_data
    data = data.replace("\\\", "\\\\")
TypeError: a bytes-like object is required, not 'str'

I am using Python 3.9.5(added Path), VS Comunity 2019 16.10.0 with Universal Windows Platform development and Desktop Development with C++

Can you help me compile SandboxEvasion?

@chkp-alexanderc
Copy link
Collaborator

Hi,

Our Python code in this repo is still Python 2 code, so this is most probably the issue here. The migration to Python 3 is planned, however it is pretty trivial to fix yourself. Pull requests are welcome!

chkp-alexanderc added a commit that referenced this issue Apr 5, 2022
Added flexible build configurations to enable running without command line. Fixed issues #12 and #14.
@chkp-alexanderc
Copy link
Collaborator

Fixed in #15.

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

3 participants