Skip to content

pythonast error when calling pythonast.from_phpast(node) #55

@Rishi8991

Description

@Rishi8991

When I try pythonast.from_phpast(node) where the node is "Assignment(Variable('$tainted'), FunctionCall('shell_exec', [Parameter('cat /tmp/tainted.txt', False)]), False)" I get the following error:

  File "C:\Users\Anaconda3\envs\fyp\lib\site-packages\phply\pythonast.py", line 455, in from_phpast
    return py.Call(name, args, kwargs, None, None, **pos(node))
TypeError: Call constructor takes at most 3 positional arguments

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions