Date: 2025-06-17 16:21:24
Score: 1
Natty:
Solutions without .pem
Base64 (small files) (safe)
- Open a bash on your local machine (on Linux or Git Bash)
- Encode into Base64:
cat myFile.zip | base64 -w 0
- Copy the output
- On the browser, open the console of the EC2 instance
- Execute the command pasting the content of the file:
echo QWxhZGRpbjpvcGVuIHNlc2FtZQ== | base64 --decode > myFile.zip
wget (100% unsafe)
- Upload your not confidential local file or zip elsewhere on the internet (for instance, GitHub or StackOverflow)
- Copy the URL of the file
- On the browser, open the console of the EC2 instance
- Execute the command pasting the URL of the file:
wget http://stackoverflow.com/xxx/thefiles.zip
- Optionally, remove the link of the file
Reasons:
- Blacklisted phrase (1): StackOverflow
- Blacklisted phrase (1): stackoverflow
- Long answer (-0.5):
- Has code block (-0.5):
Posted by: Fabrice TIERCELIN