1

我想使用 pastebin API 进行公开粘贴,但我总是将我的粘贴设为未列出

这是我的代码:

from socket import *


skt=socket(AF_INET, SOCK_STREAM)
skt.connect(("pastebin.com", 80))


req="api_dev_key=MyAPIKey&api_option=paste&api_paste_code=TEST&api_paste_private=0&api_paste_name=TEST\
&api_paste_expire_date=N&api_paste_format=python"
request="POST /api/api_post.php HTTP/1.1\r\n\
Host: pastebin.com\r\n\
Content-Type: application/x-www-form-urlencoded\r\n\
Content-Length: "+str(len(req))+"\r\n\r\n"

skt.send(request+req);
try:
    print(skt.recv(2024));
except:
    print("[-] Timeout")

skt.close()

api_paste_private=0 用于公共粘贴

4

1 回答 1

2

重复的内容会自动不列出。某些关键字也将强制自动不列出。

于 2014-02-16T13:15:50.833 回答