-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
bonfire.py
179 lines (133 loc) · 6 KB
/
bonfire.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.chrome.service import Service
import os
import pyfiglet
from capmonster_python import RecaptchaV2Task #Must top up balance
#from Recap import RecaptchaV2Selenium #Library maintenance by Ananda Rauf Maududi
#import requests
#import time
print("---------------------------------------------------------------------\n")
text= "BonFire"
art_text = pyfiglet.figlet_format(text)
version= "Version 1.0.0\n"
print(art_text)
print(version)
devby= "Developed by Ananda Rauf Maududi"
devdate= "Developed date 25 March 2022"
print(devby)
print(devdate)
print("---------------------------------------------------------------------\n")
class MenuBonFire():
def menu():
print("Menu BonFire:")
print
print("1.Bot Auto Claim ClaimSol.xyz")
print("2.Bot Auto Claim FaucetCrypto.com")
print("3.Bot Auto Claim AutoFaucet.org")
print("4.Exit")
class AutoClaimSolana():
def autoclaimsolana(self):
opendriver = webdriver.Chrome(executable_path=r'webdriver/chromedriver.exe')
openbrowser = opendriver
print("You're choose bot Auto Claim ClaimSol")
target = "https://claimsol.xyz/login"
openbrowser.get(target)
user_account= open("AccountClaimSol.txt")
check_user = user_account.readlines()
login_user_username = check_user[0]
login_user_pw = check_user[1]
elementID = openbrowser.find_element_by_id('password')
elementID.send_keys(login_user_pw)
elementID = openbrowser.find_element_by_id('email')
elementID.send_keys(login_user_username)
elementID = openbrowser.find_element_by_id('password')
elementID.send_keys(login_user_pw)
elementID = openbrowser.find_element_by_id('email')
elementID.send_keys(login_user_username)
#Bug Library Recap TypeError: __init__() missing 2 required positional arguments: '_client_key' and 'executable_path'
#BotRecap = RecaptchaV2Selenium()
#BotRecap._get_site_key()
#BotRecap._solve_recaptcha()
#BotRecap.submit_form()
#Sitekey Recaptcha from website ClaimSol
sitekey_recaptchaV2= "6LfyhQofAAAAAPM-CHSPHupt-TB8kP9Ztuajwt2_"
#with open(r"apikey2Captcha.txt", "r") as f:
#api_key_two_captcha = f.read()
#form = {"method": "userrecaptcha",
# "googlekey": sitekey_recaptchaV2,
#"key": api_key_two_captcha,
#"pageurl": target,
#"json": 1}
#response_bot_bypass_recaptchaV2 = requests.post('http://2captcha.com/in.php', data=form)
#request_id = response_bot_bypass_recaptchaV2.json()['request']
#url_bot_bypass_recaptchaV2 = f"http://2captcha.com/res.php?key={api_key_two_captcha}&action=get&id={request_id}&json=1"
#status = 0
#while not status:
#res = requests.get(target)
#if res.json()['status']==0:
#time.sleep(3)
#else:
#requ = res.json()['request']
#js = f'document.getElementById("g-recaptcha-response").innerHTML="{requ}";'
#openbrowser.execute_script(js)
#elementID.find_element_by_class('btn btn-pill text-white btn-block btn-primary').click()
#openbrowser.find_element_by_tag('p')
#openbrowser.get_attribute('innerHTML')
#status = 1
apikey_CapMonsta= "6972cc6613c49aa71b391100dc801ee0"
captcha = RecaptchaV2Task(apikey_CapMonsta) #apikey_CapMosnta
task_start = captcha.create_task(target,sitekey_recaptchaV2,no_cache=True)
captcha.join_task_result(task_starts=task_start, maximum_time=180)
elementID.submit()
#elementID.find_element_by_class('btn btn-pill text-white btn-block btn-primary').click()
sleep(10)
elementID.find_element_by_tag('p')
element.get_attribute('innerHTML')
class FaucetCryptoClaim():
def faucetcryptoclaim(self):
s= Service("webdriver/chromedriver.exe")
opendriver = webdriver.Chrome('service=s')
openbrowser = opendriver
print("You're choose bot Auto Claim FaucetCrypto.com\n")
openbrowser.get("https://faucetcrypto.com/login")
user_account= open("AccountFaucetCrypto.txt")
check_user = user_account.readlines()
login_user = check_user[0]
login = openbrowser.get(login_user)
print(login,"(FaucetCrypto):","[INFO][USERNAME]","anandarauf02\n")
print("(FaucetCrypto):","HAS BEEN LOGIN\n")
print("(FaucetCrypto):[USERINFO]","Test\n")
class AutoFaucetClaim():
def autofaucetclaim(self):
s= Service("webdriver/chromedriver.exe")
opendriver = webdriver.Chrome('service=s')
openbrowser = opendriver
print("You're choose bot Auto Claim AutoFaucet.org\n")
openbrowser.get("https://www.autofaucet.org/login")
user_account= open("AccountFaucetCrypto.txt")
check_user = user_account.readlines()
login_user = check_user[0]
login = openbrowser.get(login_user)
print(login,"(AutoFaucet):","[INFO][USERNAME]","anandarauf02\n")
print("(AutoFaucet):","HAS BEEN LOGIN\n")
print("(AutoFaucet):[USERINFO]","Test\n")
MenuBonFire.menu()
choose= int(input("Choose menu:"))
ACSolana = AutoClaimSolana()
FC = FaucetCryptoClaim()
AF = AutoFaucetClaim()
if choose==1:
ACSolana.autoclaimsolana()
elif choose==2:
FC.faucetcryptoclaim()
elif choose==3:
AF.autofaucetclaim()
elif choose==4:
print("Thank you for using BonFire")
exit
else:
print("Sorry,not found")
print("Please try again")
MenuBonFire.menu()
choose= int(input("Choose menu:"))