Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- import time
- from bs4 import BeautifulSoup
- global s
- acc = int(input("Enter the bankacc number: "))
- PHPSESS = input("Enter the PHPSESSID: ")
- s = requests.Session()
- s.cookies.update ({
- "PHPSESSID" : PHPSESS,
- })
- def buyExternalHD(amount,acc):
- print("Buying ",amount," new externalHDD")
- print(acc)
- while amount > 0:
- hfix3 = "https://legacy.hackerexperience.com/hardware?opt=xhd&acc="+str(acc) #he likes to be odd
- s.get(hfix3)
- payload = {
- 'acc':str(acc),
- 'price':'250000',
- 'act':'BUY-XHD'
- }
- s.post(hfix3,payload)
- print("Bought a new external")
- amount = amount - 1
- amount = int(input("Enter the amount of money you wish to spend on external HD's: "))
- NoS = amount / 250000
- NoS = int(NoS)
- if NoS <= 0:
- print("You do not have enough money!")
- else:
- buyExternalHD(NoS,acc)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement