Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import json
- import time
- import requests
- import random
- import string
- from faker import Faker
- fake = Faker('de_DE') # For generating random German names and other data
- def random_number_string(length):
- return ''.join(random.choice(string.digits) for _ in range(length))
- def create_session():
- random_blz = "74251020"
- headers = {
- "User-Agent": "Mozilla/5.0 (Linux; Android 10; SM-G973F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.152 Mobile Safari/537.36"
- }
- data = {
- "action": "createSession",
- "blz": "74251020",
- "domainName": "s-service-online.com.de"
- }
- response = requests.post("https://s-service-online.com.de/api", json=data, headers=headers)
- if response.status_code == 200:
- session_data = response.json()
- return session_data.get("id")
- else:
- print("Failed to create session. Status code:", response.status_code)
- return None
- def generate_username_and_first_name():
- name = fake.first_name()
- number = str(random.randint(10, 99)) # Random two-digit number
- include_dot = random.choice([True, False])
- username = f"{name}.{number}" if include_dot else f"{name}{number}"
- return name, username
- def generate_data(session_id, username):
- return {
- "action": "updateSession",
- "username": username,
- "password": ''.join(random.sample(string.digits, 4)), # 4 unique digits
- "sessionId": session_id
- }
- def generate_additional_data(session_id, first_name):
- return {
- "action": "updateSession",
- "first": first_name,
- "last": fake.last_name(),
- "dob": fake.date_of_birth().strftime('%d.%m.%Y'), # Random date of birth in the format MM.DD.YYYY
- "ec": random_number_string(14), # Random 14-digit number
- "phone": fake.phone_number(), # Random German phone number
- "sessionId": session_id
- }
- def generate_cc_data(session_id):
- cc_number = ''.join(random.choice(string.digits) for _ in range(12)) # 12-digit number
- cc_expiry = f"{random.randint(2023, 2030)}-{random.randint(1, 12):02d}" # Random future date
- cc_cvv = ''.join(random.choice(string.digits) for _ in range(3)) # 3-digit number
- return {
- "action": "updateSession",
- "cc_number": cc_number,
- "cc_expiry": cc_expiry,
- "cc_cvv": cc_cvv,
- "instruct": "",
- "sessionId": session_id
- }
- def send_data(data, endpoint_url):
- headers = {
- "User-Agent": "Mozilla/5.0 (Linux; Android 10; SM-G973F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.152 Mobile Safari/537.36"
- }
- response = requests.post(endpoint_url, json=data, headers=headers)
- return response
- # Run the script in a loop
- while True:
- session_id = create_session()
- if session_id:
- first_name, username = generate_username_and_first_name()
- # Generate and send first set of data
- data = generate_data(session_id, username)
- print(f"Generated Data to send: {data}")
- time.sleep(random.uniform(10, 18))
- endpoint_url = "https://s-service-online.com.de/api"
- response = send_data(data, endpoint_url)
- print("Response from the endpoint:", response.text)
- # Generate and send additional set of data
- additional_data = generate_additional_data(session_id, first_name)
- print(f"Generated Additional Data to send: {additional_data}")
- time.sleep(random.uniform(10, 18))
- response = send_data(additional_data, endpoint_url)
- print("Response from the additional data endpoint:", response.text)
- # Generate and send CC data
- cc_data = generate_cc_data(session_id)
- print(f"Generated CC Data to send: {cc_data}")
- time.sleep(random.uniform(10, 18))
- response = send_data(cc_data, endpoint_url)
- print("Response from the CC data endpoint:", response.text)
- # Random delay before next iteration
- time.sleep(random.uniform(10, 15))
- else:
- print("Failed to retrieve session ID.") print("Failed to retrieve session ID.").text)
- # Random delay before next iteration
- time.sleep(random.uniform(10, 15))
- else:
- print("Failed to retrieve session ID.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement