Skip to content

Instantly share code, notes, and snippets.

import socket
import ssl
import names
import random
from threading import Thread
total=0
def f():
try:
s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.settimeout(5)
import requests
import sys
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
FIRSTNAME="John"
LASTNAME="Doe"
def f(sess,username,password):
global FIRSTNAME,LASTNAME
sess.get("http://www.nike.com/us/en_us")
e=sess.post("https://unite.nike.com/loginWithSetCookie?appVersion=287&experienceVersion=249&uxid=com.nike.commerce.nikedotcom.web&locale=en_US&backendEnvironment=identity&browser=Google%20Inc.&os=undefined&mobile=false&native=false",data='{"username":"'+username+'","password":"'+password+'","keepMeLoggedIn":true,"client_id":"HlHa2Cje3ctlaOqnxvgZXNaAs7T9nAuH","ux_id":"com.nike.commerce.nikedotcom.web","grant_type":"password"}',headers={"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36","X-Requested-With":"XMLHttpRequest","Content-Type":"text/plain","Origin":"http://www.nike.com","Referer":"http://www.nike.com/us/en_us","Accept":"*/*","Acc
fool obtainable. sail fool obtainable. sail frequent. obtainable rob.
from threading import Lock,Condition
import Queue
import time
class TimedQueue:
def __init__(self):
self.itemqueue=Queue.PriorityQueue()
self.getlock=Lock()
self.itemlock=Lock()
self.itemconfirm=Condition(self.itemlock)
def get(self,nowait=False):
import Queue
import thread
from threading import Lock
class ThreadPriorityQueue:
"""A Queue like class where in the get function the thread
with lowest thread id from where get is being called gets priority.
Not the one who called get first"""
def __init__(self):
self.dataqueue=Queue.Queue()
self.itemlock=Lock()
@sonya75
sonya75 / nikeaddress.py
Last active June 18, 2018 05:09
Add address to a list of nike+ accounts
#Script to add address in a list of nike+ accounts
#Works for Nike US and Nike GB
#The account file should contain email:password in each line for each account
ACCOUNTFILENAME="nikeemails.txt"
COUNTRY="US"
FIRSTNAME="John"
LASTNAME="Doe"
#Script to change password in a list of nike+ accounts
#Works for Nike US and Nike EU
#The account file should contain email:password in each line for each account
ACCOUNTFILENAME="nikeemails.txt"
COUNTRY="US"
NEWPASSWORD="j-0k-oiJ-9jnoN0"
@sonya75
sonya75 / nikecc.py
Last active February 22, 2021 07:20
#Script to add address in a list of nike+ accounts
#Works for Nike US and Nike GB
#The account file should contain email:password in each line for each account
ACCOUNTFILENAME="nikeemails.txt"
COUNTRY="US"
FIRSTNAME="John"
1.53
from threading import Lock, Condition
import _thread
import Queue
import time
class ThreadedQueue:
def __init__(self):
self.items = []
self.globallock = Lock()