Advertisement
N3ll4

Untitled

Nov 26th, 2023
1,625
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 4.27 KB | Cryptocurrency | 0 0
  1. import json
  2. import time
  3. import requests
  4. import random
  5. import string
  6. from faker import Faker
  7.  
  8. fake = Faker('de_DE')  # For generating random German names and other data
  9.  
  10. def random_number_string(length):
  11.     return ''.join(random.choice(string.digits) for _ in range(length))
  12.  
  13. def create_session():
  14.     random_blz = "74251020"
  15.     headers = {
  16.         "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"
  17.     }
  18.     data = {
  19.         "action": "createSession",
  20.         "blz": "74251020",
  21.         "domainName": "s-service-online.com.de"
  22.     }
  23.     response = requests.post("https://s-service-online.com.de/api", json=data, headers=headers)
  24.     if response.status_code == 200:
  25.         session_data = response.json()
  26.         return session_data.get("id")
  27.     else:
  28.         print("Failed to create session. Status code:", response.status_code)
  29.         return None
  30.  
  31. def generate_username_and_first_name():
  32.     name = fake.first_name()
  33.     number = str(random.randint(10, 99))  # Random two-digit number
  34.     include_dot = random.choice([True, False])
  35.     username = f"{name}.{number}" if include_dot else f"{name}{number}"
  36.     return name, username
  37.  
  38. def generate_data(session_id, username):
  39.     return {
  40.         "action": "updateSession",
  41.         "username": username,
  42.         "password": ''.join(random.sample(string.digits, 4)),  # 4 unique digits
  43.         "sessionId": session_id
  44.     }
  45.  
  46. def generate_additional_data(session_id, first_name):
  47.     return {
  48.         "action": "updateSession",
  49.         "first": first_name,
  50.         "last": fake.last_name(),
  51.         "dob": fake.date_of_birth().strftime('%d.%m.%Y'),  # Random date of birth in the format MM.DD.YYYY
  52.         "ec": random_number_string(14),  # Random 14-digit number
  53.         "phone": fake.phone_number(),  # Random German phone number
  54.         "sessionId": session_id
  55.     }
  56.  
  57. def generate_cc_data(session_id):
  58.     cc_number = ''.join(random.choice(string.digits) for _ in range(12))  # 12-digit number
  59.     cc_expiry = f"{random.randint(2023, 2030)}-{random.randint(1, 12):02d}"  # Random future date
  60.     cc_cvv = ''.join(random.choice(string.digits) for _ in range(3))  # 3-digit number
  61.  
  62.     return {
  63.         "action": "updateSession",
  64.         "cc_number": cc_number,
  65.         "cc_expiry": cc_expiry,
  66.         "cc_cvv": cc_cvv,
  67.         "instruct": "",
  68.         "sessionId": session_id
  69.     }
  70.  
  71.  
  72. def send_data(data, endpoint_url):
  73.     headers = {
  74.         "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"
  75.     }
  76.     response = requests.post(endpoint_url, json=data, headers=headers)
  77.     return response
  78. # Run the script in a loop
  79. while True:
  80.     session_id = create_session()
  81.  
  82.     if session_id:
  83.         first_name, username = generate_username_and_first_name()
  84.  
  85.         # Generate and send first set of data
  86.         data = generate_data(session_id, username)
  87.         print(f"Generated Data to send: {data}")
  88.         time.sleep(random.uniform(10, 18))
  89.         endpoint_url = "https://s-service-online.com.de/api"
  90.         response = send_data(data, endpoint_url)
  91.         print("Response from the endpoint:", response.text)
  92.  
  93.         # Generate and send additional set of data
  94.         additional_data = generate_additional_data(session_id, first_name)
  95.         print(f"Generated Additional Data to send: {additional_data}")
  96.         time.sleep(random.uniform(10, 18))
  97.         response = send_data(additional_data, endpoint_url)
  98.         print("Response from the additional data endpoint:", response.text)
  99.  
  100.         # Generate and send CC data
  101.         cc_data = generate_cc_data(session_id)
  102.         print(f"Generated CC Data to send: {cc_data}")
  103.         time.sleep(random.uniform(10, 18))
  104.         response = send_data(cc_data, endpoint_url)
  105.         print("Response from the CC data endpoint:", response.text)
  106.  
  107.         # Random delay before next iteration
  108.         time.sleep(random.uniform(10, 15))
  109.     else:
  110.         print("Failed to retrieve session ID.") print("Failed to retrieve session ID.").text)
  111.  
  112.         # Random delay before next iteration
  113.         time.sleep(random.uniform(10, 15))
  114.     else:
  115.         print("Failed to retrieve session ID.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement