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

Remove new line symbols #64

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Remove new line symbols #64

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Feb 18, 2021

Using "\n" produces the following error on my side:

Traceback (most recent call last):
  File "C:\Users\Enrique\Desktop\A\script.py", line 99, in <module>
    script = session.create_script(js)
  File "C:\Program Files (x86)\Python39-32\lib\site-packages\frida\core.py", line 26, in wrapper
    return f(*args, **kwargs)
  File "C:\Program Files (x86)\Python39-32\lib\site-packages\frida\core.py", line 204, in create_script
    return Script(self._impl.create_script(*args, **kwargs))
frida.InvalidArgumentError: script(line 44): SyntaxError: unexpected end of string

I'm using Frida v14.2.12. This pull request fixes the issue.

Using "\n" throws SyntaxError: Unexpected end of string
@Nerixyz
Copy link
Owner

Nerixyz commented Feb 18, 2021

Are you sure you've escaped the script correctly when loading it from python? It's supposed to be run through the frida cli.

@ghost
Copy link
Author

ghost commented Feb 18, 2021

Probably not, as it does run fine on the Frida CLI. However, this pull allows the script to be loaded from Python without having to worry about escaping chars (makes life easier).

@Nerixyz
Copy link
Owner

Nerixyz commented Feb 18, 2021

this pull allows the script to be loaded from Python without having to worry about escaping chars

At least in JetBrains IDEs this is done for you so you don't need to worry about escaping. Also, there should be a way of loading a file and executing the script this way.

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[](

url


)

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

Successfully merging this pull request may close these issues.

1 participant