Experimental: pass first stage parameters in argv #1243
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Before (line continuations added manually)
The context label (
alex@kintha:<pid>) and preamble length (18191) are encoded inside the base64ssh -o LogLevel ERROR -o Compression yes -o ServerAliveInterval 15 -o ServerAliveCountMax 3 -o BatchMode yes -o StrictHostKeyChecking yes foo \ python -c \ 'import sys;sys.path=[p for p in sys.path if p];import binascii,os,zlib;exec(zlib.decompress(binascii.a2b_base64("eNqVkl1PwjAUhu/5Fd61i8toh0pYXCIBFBP5yIIuBheyj04aRtt0GwN/vR0zuGGM8W5P3/ec93Q9ju7aPDUEFQRqLakXNaLxhYKYyw3UrFb5HeXChEjHCGnf7Oh1kkrFFYcJTwl06iDr4NahUFAF5szfqvgl8mwbDH1ZUAZ8FtUl01tapncLcO+opIfUIHsS5pkfJERVtfNUtgPK2uKQrTkD1pnj3GAaXfDveHVuIhOfJtgRmVLOllanrCxbWqqGsB2V6hTMXxfj2XT11H+eDsaj4eremU1WrtOfz0cO8GyAwfFvnPx95+EFKaE5euVRmMCmoDfxEsAtzfg7YZafkP3dhrJs7VtX3ZvOtQa0lupSSJoRiHUweVzMEEJvDKj0kEfqilorFuUmxBEXhKknBzJQVQP7I6GBEZGQb4UkaQpjYUjiRxB3e2bvWPb1nmcdXB0UASg3RTmq5MHv7uIv98/xcXP8016Z2icQlOoP")))'After (line continuations added manually)
The base64 blob (first stage), context label, and preamble length are seperate argv items.
ssh -o LogLevel ERROR -o Compression yes -o ServerAliveInterval 15 -o ServerAliveCountMax 3 -o BatchMode yes -o StrictHostKeyChecking yes foo \ python -c \ 'import sys;sys.path=[p for p in sys.path if p];import binascii,os,zlib;exec(zlib.decompress(binascii.a2b_base64(sys.argv[1]),-15))' \ pZJdS8MwGIXv+yu8GW/CSpd2F2KhF2ObTnAflGmRWUY/0hnckpK0q/PXm7IxW0URvcvDOXlP3nB8M/CEsnKWU4QNaVYNYtmFhkzIF4Rdoz6nZe4gYtqE4A/2zSZJrdpHTrZCUeQ3QTYhaEKl4RhY8min41ck7DbICVeuE3bVQVn0lSZlEcVb6nkwimTFuH3VK5XsxYz38kPxLDi4bWfXA8e6hF9n7KlUTPCV2w/PIQ6pR7j6AuV7JrUKi8flZD5b3w3uZ8PJeLS+9ufTdeAPFouxD6EH9j8T7T8lNv0D/+aBaKH9HUePxi1qC+anbwO0Y4XYUO52FIZOrUZys9cPx4YeUUlWUGSbML1dzgkhTxx0dCJSvRw2srpMWSpyynVrQMaAjaH3tmWxldJE7HJJlUKZJWmUIsYLdB7fD3F9/9SN9qTAhCqGunTZKX/4nbX62fp1Abu9wLmdDn4H \ alex@kintha:58688 \ 18191