paste_senden.sh hinzugefügt
This commit is contained in:
12
paste_senden.sh
Normal file
12
paste_senden.sh
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
FILE="$1" # Pfad als erstes Argument beim Aufruf: ./script.sh datei.txt
|
||||||
|
|
||||||
|
curl -X POST \
|
||||||
|
-d 'api_dev_key=RdWPnCdyvMdV1YNr_Un-aw0zfbWnspff' \
|
||||||
|
-d 'api_paste_name=tmp.txt' \
|
||||||
|
--data-urlencode "api_paste_code@$FILE" \
|
||||||
|
-d 'api_option=paste' \
|
||||||
|
"https://pastebin.com/api/api_post.php"
|
||||||
|
|
||||||
|
echo
|
||||||
Reference in New Issue
Block a user