Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. import requests
  2. import time
  3. from bs4 import BeautifulSoup
  4.  
  5. global s
  6. acc = int(input("Enter the bankacc number: "))
  7. PHPSESS = input("Enter the PHPSESSID: ")
  8. s = requests.Session()
  9. s.cookies.update ({
  10. "PHPSESSID" : PHPSESS,
  11. })
  12.  
  13.  
  14. def buyExternalHD(amount,acc):
  15. print("Buying ",amount," new externalHDD")
  16. print(acc)
  17. while amount > 0:
  18. hfix3 = "https://legacy.hackerexperience.com/hardware?opt=xhd&acc="+str(acc) #he likes to be odd
  19. s.get(hfix3)
  20. payload = {
  21. 'acc':str(acc),
  22. 'price':'250000',
  23. 'act':'BUY-XHD'
  24. }
  25. s.post(hfix3,payload)
  26. print("Bought a new external")
  27. amount = amount - 1
  28.  
  29.  
  30. amount = int(input("Enter the amount of money you wish to spend on external HD's: "))
  31. NoS = amount / 250000
  32. NoS = int(NoS)
  33. if NoS <= 0:
  34. print("You do not have enough money!")
  35. else:
  36. buyExternalHD(NoS,acc)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement