repl.it
@hjvijchhgjvyjnv/

Postin https://www.prasad.org/donate/

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
import requests
headers = {
'Accept': '*/*',
'Accept-Encoding': 'gzip, deflate, br',
'Accept-Language': 'pt-BR,pt;q=0.8,en-US;q=0.6,en;q=0.4',
'Connection': 'keep-alive',
'Content-Length':'4318',
'Content-Type': 'application/x-www-form-urlencoded',
'Host':'bbox.blackbaudhosting.com',
'Origin': 'https://bbox.blackbaudhosting.com',
'Referer':'https://bbox.blackbaudhosting.com/webforms/custom/mongo/scripts/MongoServer.html?xdm_e=https%3A%2F%2Fwww.prasad.org&xdm_c=default925&xdm_p=1',
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.91 Safari/537.36',
'X-Requested-With': 'XMLHttpRequest',
'Cookie':'NSC_QH-PMY=ffffffff090c188e45525d5f4f58455e445a4a42378b; ASP.NET_SessionId=43p52vz1icn0xkvxakftzyqv'
}

cookies = {
'NET_SessionId': 'chljnz3b10obegzxc4hsha2a',
'NSC_QH-PMY': 'ffffffff090c1bc345525d5f4f58455e445a4a42378b'
}

payloads = {

'bboxdonation$gift$GivingLevel':'rdGivingLevel7',
'bboxdonation$gift$txtOtherAmountButtons': '$4.00',
'bboxdonation$gift$txtAmountPledge':'',
'bboxdonation$gift$hdnGivingLevelButtonsEnabled':'true',
'bboxdonation$gift$hdnPledgeDuration':'',
'bboxdonation$gift$hdnPledgePayment':'',
'bboxdonation$gift$hdnGiftButtonsStyle':'',
'bboxdonation$designation$ddDesignations':'1',
'bboxdonation$designation$txtOtherDesignation':'',
'bboxdonation$recurrence$ddFrequency':'2',
'bboxdonation$recurrence$ddFrequencyDate':'5',
'bboxdonation$recurrence$hdnRecurringOnly':'',
'bboxdonation$recurrence$hdnDateOptions':'[{"frequency":2,"values":"5;20","paymentDates":"05/06/2019;20/05/2019"}]',
'bboxdonation$recurrence$hdnRecurringOptionValue':'5',
'bboxdonation$tribute$ddTributeTypes':'2412',
'bboxdonation$tribute$txtTributeRecordName':'',
'bboxdonation$tribute$hdnAllowTributeNotification':'0',
'bboxdonation$tribute$txtFirstName':'',
'bboxdonation$tribute$txtLastName':'',
'bboxdonation$tribute$tributeAddress$ddCountry':'UNITED STATES',
'bboxdonation$tribute$tributeAddress$txtAddress':'',
'bboxdonation$tribute$tributeAddress$txtCity':'',
'bboxdonation$tribute$tributeAddress$ddState':'',
'bboxdonation$tribute$tributeAddress$txtZip':'',
'bboxdonation$tribute$tributeAddress$txtUKCity':'',
'bboxdonation$tribute$tributeAddress$ddUKCounty':'',
'bboxdonation$tribute$tributeAddress$txtUKPostCode':'',
'bboxdonation$tribute$tributeAddress$txtCACity':'',
'bboxdonation$tribute$tributeAddress$ddCAProvince':'',
'bboxdonation$tribute$tributeAddress$txtCAPostCode':'',
'bboxdonation$tribute$tributeAddress$txtAUCity':'',
'bboxdonation$tribute$tributeAddress$ddAUState':'',
'bboxdonation$tribute$tributeAddress$txtAUPostCode':'',
'bboxdonation$tribute$tributeAddress$ddNZSuburb':'',
'bboxdonation$tribute$tributeAddress$ddNZCity':'',
'bboxdonation$tribute$tributeAddress$txtNZPostCode':'',
'bboxdonation$comment$txtComments':'',
'bboxdonation$billing$txtOrgName':'',
'bboxdonation$billing$txtFirstName':'dfdfdfdfdf',
'bboxdonation$billing$txtLastName':'ddfdfdf',
'bboxdonation$billing$txtEmail':'[email protected]',
'bboxdonation$billing$billingAddress$ddCountry':'UNITED STATES',
'bboxdonation$billing$billingAddress$txtAddress':'scsdsdsd',
'bboxdonation$billing$billingAddress$txtCity':'sdsdsdsd',
'bboxdonation$billing$billingAddress$ddState':'AA',
'bboxdonation$billing$billingAddress$txtZip':'5555555',
'bboxdonation$billing$billingAddress$txtUKCity':'sdsdsdsd',
'bboxdonation$billing$billingAddress$ddUKCounty':'',
'bboxdonation$billing$billingAddress$txtUKPostCode':'5555555',
'bboxdonation$billing$billingAddress$txtCACity':'sdsdsdsd',
'bboxdonation$billing$billingAddress$ddCAProvince':'AA',
'bboxdonation$billing$billingAddress$txtCAPostCode':'5555555',
'bboxdonation$billing$billingAddress$txtAUCity':'sdsdsdsd',
'bboxdonation$billing$billingAddress$ddAUState':'AA',
'bboxdonation$billing$billingAddress$txtAUPostCode':'5555555',
'bboxdonation$billing$billingAddress$ddNZSuburb':'',
'bboxdonation$billing$billingAddress$ddNZCity':'',
'bboxdonation$billing$billingAddress$txtNZPostCode':'5555555',
'bboxdonation$payment$BBFormPaymentChoice':'0',
'bboxdonation$payment$txtCardholder':'dfdfdfdf dfdfdfdfdfdfdfdf',
'bboxdonation$payment$txtCardNumber':'4578546347956470',
'bboxdonation$payment$cboCardType':'5963a708-fc7f-48af-952f-16d574c4b833',
'bboxdonation$payment$cboMonth':'9',
'bboxdonation$payment$cboYear':'2023',
'bboxdonation$payment$txtCSC':'444',
'bboxdonation$payment$txtBankName':'',
'bboxdonation$payment$txtRoutingNumber':'',
'bboxdonation$payment$ddAccountType':'Checking',
'bboxdonation$payment$txtAccountNumber':'',
'bboxdonation$payment$txtAccountHolder':'',
'bboxdonation$payment$hdnDirectDebitLookupCount':'0',
'bboxdonation$payment$hdnDirectDebitShouldLookup':'0',
'bboxdonation$hdnJsonFieldProps':'',
'bboxdonation$hdnMongoInstanceID':'',
'bboxdonation$hdnMetaTag':'1',
'bboxdonation$hdnEmailInfo':'{}',
'bboxdonation$hdnHideDirectDebitForOneTimeGift':'',
'bboxdonation$hdnReCAPTCHASettings':'{"isEnabled":false}',
'srcUrl': 'https://www.prasad.org/donate/',
'bboxdonation$btnSubmit': 'Donate',
}

with requests.Session() as s:
  url = 'https://www.prasad.org/donate/'
  post = s.post(url, data=payloads, headers=headers, cookies=cookies)
  print(post.status_code)
  print('has been blacklisted'in post.text)
?