This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fool obtainable. sail fool obtainable. sail frequent. obtainable rob. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.53 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from threading import Lock, Condition | |
import _thread | |
import Queue | |
import time | |
class ThreadedQueue: | |
def __init__(self): | |
self.items = [] | |
self.globallock = Lock() |
OlderNewer