I've recently tried to use the following code to send paste to pastebin.com:
https://github.com/mefuckin/pastebin-shell/blob/master/pbin
What I've noticed with that script is that it doesn't appear to send api_user_key. Line 183 has it listed:
--data "api_user_key=$api_user_key" \ so I though it would just be a matter of specifying its value, as:
api_user_key="VALUE HERE" and that would send it to the API. However, I'm unsure of what that part of the code does (part of code that starts at 174):
[ $logintopastebin -ne 0 ] && auth_user api_paste_code=$( cat - ) curl -0 --show-error \ --data "api_dev_key=$api_dev_key" \ --data "api_option=paste" \ --data "api_paste_code=$api_paste_code" \ --data "api_paste_format=$api_paste_format" \ --data "api_paste_private=$api_paste_private" \ --data "api_paste_expire_date=$api_paste_expire_date" \ --data "api_user_key=$api_user_key" \ --data-urlencode "api_paste_name=$api_paste_name" \ --data-urlencode "api_paste_code=$api_paste_code" \ "$api_url/api_post.php" Does this portion of the code mean that all these arguments will be sent to the API?