Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- import time
- import winsound
- import re
- from bs4 import BeautifulSoup
- import random
- from random import choice
- from string import ascii_uppercase
- import string
- from time import sleep
- import imaplib
- import datetime
- import email
- import imaplib
- import mailbox
- global loop
- num = 0
- btcAddress = ''
- btcKey = ''
- global s
- s = requests.Session()
- loop = True
- x = 'true'
- def logClear():
- print("Clearing LOGS...")
- logUrl = "https://legacy.hackerexperience.com/logEdit"
- payload = {
- 'id':1,
- 'log':''
- }
- response = s.post(logUrl,payload)
- newURL = response.url
- Log = s.get(newURL)
- Log = s.get("https://legacy.hackerexperience.com/log")
- s.get("https://legacy.hackerexperience.com/logout")
- print("Log cleared - Alt created - Logged out\n")
- def btcLogin():
- print("Logging into BTC...")
- bitcoinURL = 'https://legacy.hackerexperience.com/internet?ip=99.232.28.232'
- url = "https://legacy.hackerexperience.com/bitcoin.php"
- payload = {
- 'func':'btcLogin',
- 'addr':'addr',
- 'key':'key'
- }
- s.post(url, payload)
- test = s.get(bitcoinURL)
- print("Successfully logged into BTC Market.")
- def randomGenerator(N):
- return ''.join(random.choice(string.ascii_uppercase + string.digits + string.ascii_lowercase) for _ in range(N))
- def getRandomUsername():
- addz = "z"
- u = BeautifulSoup(requests.post("http://names.pub/usernames", data=dict({"requestType":"newUsernameName"})).text, "html.parser").find("h2").getText()
- open("alt-names.txt", "a").write("\n"+u+addz)
- print("Random name : " + u+addz)
- r = requests.post("https://legacy.hackerexperience.com/ajax.php", data=dict({"username":u, "func":"check-user"})).text
- if r == 'true':
- name = u+addz
- return name
- else:
- return getRandomUsername()
- def link():
- f = open("links.txt","r")
- read = f.readlines(num)
- print(read)
- global num
- num += 1
- return s.get(read)
- def certificate1():
- try:
- link()
- print("link ==== :"+link)
- s.get(link)
- print("Starting on Cert 1...")
- url = 'https://legacy.hackerexperience.com/university?opt=certification&learn=1&page=3'
- html = s.get(url)
- html = html.text
- soup = BeautifulSoup(html, 'html.parser')
- href = soup.find('a', {'class': 'btn btn-success'})['href']
- completeCert = 'https://legacy.hackerexperience.com/'+href
- cert = s.get(completeCert)
- print("Cert 1 Complete!")
- except:
- print("ERROR with script... restarting")
- certificate1()
- def certificate2():
- print("Starting on Cert2...")
- certUrl = 'https://legacy.hackerexperience.com/university?opt=certification&learn=2&page=3'
- url = 'https://legacy.hackerexperience.com/university'
- payload = {
- 'act':'buy',
- 'id':2
- }
- s.post(url,payload)
- html = s.get(certUrl)
- html = html.text
- soup = BeautifulSoup(html, 'html.parser')
- href = soup.find('a', {'class': 'btn btn-success'}).get('href')
- completeCert = 'https://legacy.hackerexperience.com/'+href
- cert = s.get(completeCert)
- print("Cert 2 Completed!")
- def bankAccount():
- bankURL = 'https://legacy.hackerexperience.com/finances'
- html = s.get(bankURL)
- html = html.text
- soup = BeautifulSoup(html, 'html.parser')
- bank = soup.find('span', {'class': 'green'}).next_sibling
- bank = bank.split(' at #')[1]
- bank = bank.split('\n')
- bankAcc = bank[0]
- return bankAcc
- def sellBTC():
- global loop
- bankAcc = bankAccount()
- bitcoinURL = 'https://legacy.hackerexperience.com/internet?ip=99.232.28.232'
- html = s.get(bitcoinURL)
- html = html.text
- soup = BeautifulSoup(html, 'html.parser')
- price = soup.find('span', {'class': 'green'})
- price = price.text
- price = price.split('$')
- price = price[1]
- amountOfBtc = (200000 / int(price)) + 2
- amountOfBtc = round(amountOfBtc)
- url = 'https://legacy.hackerexperience.com/internet?ip=99.232.28.232'
- html = s.get(url)
- html = html.text
- soup = BeautifulSoup(html, 'html.parser')
- bitcoins = soup.find('div', {'style': 'overflow: hidden;'})
- bitcoins = bitcoins.text
- bitcoins = bitcoins.split("Bitcoins: ")
- bitcoins = bitcoins[1].split(" BTC")
- if(float(bitcoins[0]) < 400):
- print(" LOW ON BTC!!!! STAP!!!!")
- loop = False
- else:
- print("=========================")
- print("BTC Balance:",bitcoins[0])
- print("=========================")
- bitcoinSellURL = 'https://legacy.hackerexperience.com/bitcoin.php'
- payload = {
- 'func':'btcSell',
- 'amount':amountOfBtc,
- 'acc':bankAcc
- }
- s.post(bitcoinSellURL,payload)
- print("Sold BTC")
- def buyInternet():
- bankAcc = bankAccount()
- hardwareURL = 'https://legacy.hackerexperience.com/hardware'
- payload = {
- 'acc':bankAcc,
- 'act':'net',
- 'part-id':10,
- 'price':100000
- }
- s.post(hardwareURL, payload)
- print("Bought Internet")
- def clanCreate():
- bankAcc = bankAccount()
- url = 'https://legacy.hackerexperience.com/clan?action=create'
- clanTag = randomGenerator(3)
- clanName = getRandomUsername()
- payload = {
- 'acc':bankAcc,
- 'ctag':clanTag,
- 'cname':clanName,
- 'act':'create'
- }
- response = s.post(url,payload)
- html = response.text
- soup = BeautifulSoup(html, 'html.parser')
- find_error = soup.find_all('<div class="alert alert-error">')
- if len(find_error) > 0:
- print("Clan name/tag already in use")
- return clanCreate()
- else:
- print("Clan creation successful")
- def fetchIP():
- try:
- clanUrl = 'https://legacy.hackerexperience.com/clan'
- html = s.get(clanUrl)
- html = html.text
- soup = BeautifulSoup(html, 'html.parser')
- test = soup.find_all('li')
- ipSplit = test[22].a["href"]
- ip = ipSplit.replace('internet?ip=', '')
- return ip
- except:
- print("Clan failed to create... re-creating new one")
- clanCreate()
- fetchIP()
- def selfIP():
- homeUrl = 'https://legacy.hackerexperience.com/index'
- html = s.get(homeUrl)
- html = html.text
- soup = BeautifulSoup(html, 'html.parser')
- test = soup.find_all('script')
- calc = test[0].text
- selfIP = calc.replace("var indexdata={ip:'", "")
- selfIP = selfIP.split("',")
- print(selfIP)
- with open("accIP.txt", "a") as ip:
- prep = str(selfIP[0])+"\n"
- ip.writelines(prep)
- def clanServer():
- selfIP()
- clanIP = fetchIP()
- url = 'https://legacy.hackerexperience.com/internet?ip='+str(clanIP)
- s.get(url)
- url = 'https://legacy.hackerexperience.com/internet?action=login&user=clan&pass=clan'
- s.get(url)
- url = 'https://legacy.hackerexperience.com/internet?view=clan&action=internet'
- acc = bankAccount()
- payload = {
- 'acc':acc,
- 'act':'net',
- 'part-id':'10',
- 'price':100000,
- 'clan':1
- }
- s.post(url,payload)
- print("Clan internet bought.")
- def clearClanLog():
- url = 'https://legacy.hackerexperience.com/logEdit'
- payload = {
- 'id':0,
- 'log':''
- }
- s.post(url,payload)
- print("Clan log successfuly cleared")
- def clanIP():
- clanUrl = 'https://legacy.hackerexperience.com/clan'
- html = s.get(clanUrl)
- html = html.text
- soup = BeautifulSoup(html, 'html.parser')
- test = soup.find_all('li')
- ipSplit = test[22].a["href"]
- ip = ipSplit.replace('internet?ip=', '')
- with open("clanIP.txt", "a") as file:
- prep = str(ip)+"\n"
- file.writelines(prep)
- while loop == True:
- link()
- certificate1()
- certificate2()
- btcLogin()
- sellBTC()
- buyInternet()
- clanCreate()
- clanServer()
- clanIP()
- clearClanLog()
- logClear()
- print("Email in use!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement