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

Windows newline support #183

Closed
andrew-stclair opened this issue Apr 13, 2017 · 1 comment
Closed

Windows newline support #183

andrew-stclair opened this issue Apr 13, 2017 · 1 comment

Comments

@andrew-stclair
Copy link

andrew-stclair commented Apr 13, 2017

More of a suggestion really but may i suggest running payload.txt through either of the following before execution?

cat $payloadfile | dos2unix -U > /tmp/payload.sh && chmod +x /tmp/payload/sh && /tmp/payload.sh

cat $payloadfile | sed 's/\r$//' > /tmp/payload.sh && chmod +x /tmp/payload/sh && /tmp/payload.sh

tr -d '\r' < $payloadfile > /tmp/payload.sh && chmod +x /tmp/payload.sh && /tmp/payload.sh

@sebkinne
Copy link
Contributor

Hi,

This actually already happen in the bunny_framework. I assume you are talking about the issues Darren was having?

If so, this was for a bunny extension which should always be written without carriage returns. We might extend the framework to automatically fix other included files, but for now escaping the bunny payloads should be fine.

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