Advertisement
EXTREMEXPLOIT

UPF Login

May 29th, 2022
862
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.65 KB | None | 0 0
  1. import requests, time
  2.  
  3. def SendPacket(displayCode=True):
  4.     userName = ['A' for _ in range(int(7575/2))]
  5.     userName = "".join(userName)
  6.     Password = ['A' for _ in range(int(7575/2))]
  7.     Password = "".join(userName)
  8.     URL = "https://www.upf.edu/c/portal/login?p_l_id=1209435&redirect=%2Fintranet%2Fcampus-global"
  9.     DATA = {"adAS_i18n_theme": "ca", "adAS_mode": "authn", "adAS_username": userName, "adAS_password": Password}
  10.  
  11.     t0 = time.time()
  12.     x = requests.get(URL, DATA)
  13.     tt = time.time() - t0
  14.  
  15.     if displayCode: print(f"Server Response: {x.status_code} | {round(tt, 3)} Seconds")
  16.     return x.status_code, tt
  17.  
  18. SendPacket()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement