Skip to content

Instantly share code, notes, and snippets.

@Scrxtchy
Last active June 22, 2018 07:41
Show Gist options
  • Save Scrxtchy/6c661ed2dcb8f25f731b40c6bd1572c8 to your computer and use it in GitHub Desktop.
Save Scrxtchy/6c661ed2dcb8f25f731b40c6bd1572c8 to your computer and use it in GitHub Desktop.
#Credit to xPaw/SteamDB for the PHP spaghetti
#If you're going to use this, please use it for SteamDB, thank you
#Not that I'm expected to update it at all, make your own code
import requests
from sys import argv, exit
from time import sleep
if len(argv) <= 1:
print("Usage salien_cheat.py [Token]\nGet token from https://steamcommunity.com/saliengame/gettoken")
exit(1)
token = argv[1]
score = 2280
r = requests.session()
r.headers.update({
'User-Agent': 'Mozilla/5.0 (Windows; U; Windows NT 10.0; en-US; Valve Steam Client/default/1529009056; ) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36',
'Referer': 'https://steamcommunity.com/saliengame/play/',
'Origin': 'https://steamcommunity.com',
'Accept': '*/*'
})
def SendPOST(method, data):
ret = r.post('https://community.steam-api.com/{}/v0001/'.format(method), data=data, timeout=10)
if ret == {'response': {}}:
print('Send Failed')
print(ret.text)
ret = SendPOST(method, data)
return ret
while (True):
print('Joining Zone: {}'.format(SendPOST( 'ITerritoryControlMinigameService/JoinZone', {'zone_position':'68','access_token':token}).json()['response']['zone_info']['zone_position']))
sleep( 60 )
print( '1 minute passed' )
sleep( 60 )
print(SendPOST( 'ITerritoryControlMinigameService/ReportScore', {'access_token':token, 'score': score, 'language':'english'}).json()['response'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment