Wget, Curl and POST (refs): Difference between revisions
From WikiMLT
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
Download a script from '''PasteBin''' by <code>curl</code>: | |||
<syntaxhighlight lang="bash"> | |||
curl https://pastebin.com/raw/wvV9B1nf | sed -e 's/\r$//' | sudo tee /var/www-security/security-assistant.bash | curl https://pastebin.com/raw/wvV9B1nf | sed -e 's/\r$//' | sudo tee /var/www-security/security-assistant.bash | ||
sudo chmod +x /var/www-security/security-assistant.bash | sudo chmod +x /var/www-security/security-assistant.bash | ||
</syntaxhighlight> | </syntaxhighlight> | ||
:* [[ | References: | ||
* [https://askubuntu.com/q/968652/566421 GET and POST requests by Wget and/or CURL] | |||
* [https://askubuntu.com/a/1031908/566421 Auto login on page via CLI by the POST command.] | |||
[[ | * [[Text_Processing:_Remove_Carriage_Return]] | ||
Revision as of 13:23, 5 August 2022
Download a script from PasteBin by curl
:
curl https://pastebin.com/raw/wvV9B1nf | sed -e 's/\r$//' | sudo tee /var/www-security/security-assistant.bash
sudo chmod +x /var/www-security/security-assistant.bash
References: