anonymous No title
No License Python
2021年04月22日
Copy Clone
import notification
import clipboard
import keyboard
import datetime
import calendar
import tweepy
import base64
import json
import time
import glob
import os
import sys
import re
import random
import console


"""
           ---初期設定---
   
 ①コードの貼り付けができたら自身のTwitterID入力をします。
 
      例 : ID が @Twitter_1234 の場合 
         TwitterID = "@XXXX" を
         TwitterID = "@Twitter_1234" に変更
 
 ②右上の▷を押すと、数字が出てきます、
 その数字と ①で書き込んだTwitterID の2つをDMで伝えてください。
 
 ③数字と引き換えにこちらがIDを渡しますので、AutoIDを35行目にコピーして貼り付けてください

"""

Twitter_ID = "@XXXX"

# 0000を消した後 貰ったIDを=の後にそのまま貼り付けてください
Auto_ID = 0000


"""

   ---使用設定部分---
  
   パスツイ  21:30
   ルーム番号 567
   
      の場合
     ↓↓↓↓↓↓↓↓
     
 pass_tweet_time = "30"
 room_id         = "567" 

  このように下を書き換えます。 
 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
 
"""

pass_tweet_time = "00"
room_id         = "0000" 



"""
     ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
     ⚠️以下書き換えると動作しなくなります
   ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
"""

flag     = 0
password = ""

CK = b'eGdsMlF5TlJscFNLRWh5dFMzN1g2TTdSag=='
CKS = b'azJIbWpKS1J0TExGUjBmZnQzZW5FSnBCdGY5NUY3VURGYzluQmgxblJ2bVNwazd0S24='
AT = "837597646311178240-q8vlRy0BPcIBxngYG9ynhu1cSNqCVC3"
ATS = "cnMrSYDnMiSaqHNbxesiweHI2esGDMZHS87ugHiveAsrK"

basenumber = "0123456789"

font_item = ["⓪①②③④⑤⑥⑦⑧⑨",
             "⓿❶❷❸❹❺❻❼❽❾",
             "0123456789",
             "𝟘𝟙𝟚𝟛𝟜𝟝𝟞𝟟𝟠𝟡",]
             
itemlist1 = ["@[a-zA-Z0-9_]+",
             "[0-9]{1,2}:[0-5][0-9]",
             "[0-9]{1,2}時[0-59]分",
             "([0-9]|[0-2][0-9])時",
             "[0-5][0-9]分",
             "[1-9]{1,2}/[0-9]{1,2}",]
             
itemlist2 = [" "," ",]
	
message = {
	"no_update":"パスツイ取得中",
	"code_notification":"この数字と入力したTwitterIDをDMで伝えてください:",
	"copy_error":"Twitterリンクのコピー又はフルアクセスの許可をしてください",
	"pass_notfound":"パスワードが取得できませんでした",
	"waiting_passtweet":"からのパスツイ待機中... ",
	"success":"ID認証成功",
	"fail":"認証失敗:"
}

Xcode = ["\x207\x204\x208\x209\x400\x102",
         "207\x200\x208\x209\x400\x109" ,
         "207\x204\x208\x209\x400\x102" ,
         "207\x204\x208\x209\x400\x102" ,]

"""
  関数
"""
def login(CK,CKS,AT,ATS):
	CK = base64.b64decode(CK.decode())
	CKS = base64.b64decode(CKS.decode())
	auth = tweepy.OAuthHandler(str(CK).split("'")[1],str(CKS).split("'")[1])
	auth.set_access_token(AT,ATS)
	API = tweepy.API(auth)
	return API

def get_username():
	user_name = clipboard.get()
	if("https" in user_name):
		user_name = user_name.split("/")
		user_name = user_name[3].split("?")
		user_name = user_name[0]
		return user_name
	else:
		print(message["copy_error"])
		sys.exit()

def ACencrtrpt(a,b):
	c = a+","+str(b)
	c = base64.b64encode(c.encode())
	return c
	
def Test(c,d):
	if c == d:
		return True
	else:
		key = glob.glob("*.pwd")
		key = key[0].split(".")[0]
		print(message["code_notification"]+key)
		sys.exit()
		
def check():
	file = glob.glob("*.pwd")
	if not file:
		key = int(random.uniform(1,99))*int(random.uniform(99,999))
		key = str(key)
		with open(key+".pwd" , mode="w") as f:
			f.write("")
		notification.schedule(message["code_notification"]+key)
		print(message["code_notification"]+key)
		sys.exit()
	else:
		code = file[0].split(".")[0]
		return code
							
def tweet_filter(Tweettext):	
	for i in range(10):
		if(font_item[0][i] in Tweettext):
			Tweettext = Tweettext.replace(font_item[0][i],basenumber[i])
		for j in range(10):
			if(font_item[1][j] in Tweettext):
				Tweettext = Tweettext.replace(font_item[1][j],basenumber[j])
			for k in range(10):
				if(font_item[2][k] in Tweettext):
					Tweettext = Tweettext.replace(font_item[2][k],basenumber[k])
				for l in range(10):
					if(font_item[3][l] in Tweettext):
						Tweettext = Tweettext.replace(font_item[3][l],basenumber[l])		
	return Tweettext

def tweet_trim(tweet):
	tweet = tweet_filter(tweet)
	for i in itemlist1:
		tweet = re.sub(i,"",tweet)
		for j in itemlist2:
			tweet = tweet.replace(j,"")
	tweet = re.findall(r"\d+",tweet)
	return tweet
	
def get_time_now():
	now_time = datetime.datetime.now()
	now_time = str(now_time).split(" ")[1]
	now_time = now_time.split(":")
	now_time_minute = now_time[1]
	now_time_seconds = now_time[2].split(".")[0]
	return now_time_minute,now_time_seconds


API   = login(CK,CKS,AT,ATS) 

Check = check()
Check = ACencrtrpt(Check,Twitter_ID)
Test(Auto_ID,Check)

user_name = get_username()

print("@"+user_name+message["waiting_passtweet"])

if(pass_tweet_time == "00"):
	passTb = "59"
else:
	passTb = str(int(pass_tweet_time)-1)	
	
while True:
	now_time_minute , now_time_seconds = get_time_now()		
	if(now_time_minute == passTb and now_time_seconds == "58"):
		break	
	elif(now_time_minute == passTb and now_time_seconds == "59"):
		break
	elif(now_time_minute == pass_tweet_time):	
		break
	time.sleep(0.01)
	
while True:
	tweet = API.user_timeline(user_name,count = 1)
	for i in tweet:
		tweet = i.text
		tweet_time = i.created_at
		
	tweet_time = re.findall(r"\d+",str(tweet_time))
	tweet_time_minute = tweet_time[4]
	tweet_time_second = tweet_time[5]
		
	if(pass_tweet_time == "00"):
		pass_tweet_time_ = "59"
	else:
		pass_tweet_time_ = str(int(pass_tweet_time)-1)
		if(len(pass_tweet_time_) == 1):
			pass_tweet_time_ = "0" + pass_tweet_time_
	for i in range(57,60):
		if(pass_tweet_time_ == tweet_time_minute and str(i) == tweet_time_second):
			flag = 1	
	if(pass_tweet_time == tweet_time_minute):
		flag = 1
		
	if(flag == 1):
		break
	#else:
		#console.clear()
		#print(message["no_update"]+" ["+str(datetime.datetime.now()).split(" ")[1]+"]")
	time.sleep(0.01)

tweet = tweet_trim(tweet)

if(room_id in tweet):
	room_id_index = tweet.index(room_id)
	if(room_id_index == 0):
		password = str(tweet[1])
	elif(room_id_index == 1):
		password = str(tweet[0])
	elif(len(tweet) >= 1):
		password = str(tweet[0])
else:
	password = tweet[0]

keyboard.insert_text(password)
keyboard.insert_text("\n")
notification.schedule(password)
print("password:"+password)
import notification
import clipboard
import keyboard
import datetime
import calendar
import tweepy
import base64
import json
import time
import glob
import os
import sys
import re
import random
import console


"""
           ---初期設定---
   
 ①コードの貼り付けができたら自身のTwitterID入力をします。
 
      例 : ID が @Twitter_1234 の場合 
         TwitterID = "@XXXX" を
         TwitterID = "@Twitter_1234" に変更
 
 ②右上の▷を押すと、数字が出てきます、
 その数字と ①で書き込んだTwitterID の2つをDMで伝えてください。
 
 ③数字と引き換えにこちらがIDを渡しますので、AutoIDを35行目にコピーして貼り付けてください

"""

Twitter_ID = "@XXXX"

# 0000を消した後 貰ったIDを=の後にそのまま貼り付けてください
Auto_ID = 0000


"""

   ---使用設定部分---
  
   パスツイ  21:30
   ルーム番号 567
   
      の場合
     ↓↓↓↓↓↓↓↓
     
 pass_tweet_time = "30"
 room_id         = "567" 

  このように下を書き換えます。 
 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
 
"""

pass_tweet_time = "00"
room_id         = "0000" 



"""
     ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
     ⚠️以下書き換えると動作しなくなります
   ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
"""

flag     = 0
password = ""

CK = b'eGdsMlF5TlJscFNLRWh5dFMzN1g2TTdSag=='
CKS = b'azJIbWpKS1J0TExGUjBmZnQzZW5FSnBCdGY5NUY3VURGYzluQmgxblJ2bVNwazd0S24='
AT = "837597646311178240-q8vlRy0BPcIBxngYG9ynhu1cSNqCVC3"
ATS = "cnMrSYDnMiSaqHNbxesiweHI2esGDMZHS87ugHiveAsrK"

basenumber = "0123456789"

font_item = ["⓪①②③④⑤⑥⑦⑧⑨",
             "⓿❶❷❸❹❺❻❼❽❾",
             "0123456789",
             "𝟘𝟙𝟚𝟛𝟜𝟝𝟞𝟟𝟠𝟡",]
             
itemlist1 = ["@[a-zA-Z0-9_]+",
             "[0-9]{1,2}:[0-5][0-9]",
             "[0-9]{1,2}時[0-59]分",
             "([0-9]|[0-2][0-9])時",
             "[0-5][0-9]分",
             "[1-9]{1,2}/[0-9]{1,2}",]
             
itemlist2 = [" "," ",]
	
message = {
	"no_update":"パスツイ取得中",
	"code_notification":"この数字と入力したTwitterIDをDMで伝えてください:",
	"copy_error":"Twitterリンクのコピー又はフルアクセスの許可をしてください",
	"pass_notfound":"パスワードが取得できませんでした",
	"waiting_passtweet":"からのパスツイ待機中... ",
	"success":"ID認証成功",
	"fail":"認証失敗:"
}

Xcode = ["\x207\x204\x208\x209\x400\x102",
         "207\x200\x208\x209\x400\x109" ,
         "207\x204\x208\x209\x400\x102" ,
         "207\x204\x208\x209\x400\x102" ,]

"""
  関数
"""
def login(CK,CKS,AT,ATS):
	CK = base64.b64decode(CK.decode())
	CKS = base64.b64decode(CKS.decode())
	auth = tweepy.OAuthHandler(str(CK).split("'")[1],str(CKS).split("'")[1])
	auth.set_access_token(AT,ATS)
	API = tweepy.API(auth)
	return API

def get_username():
	user_name = clipboard.get()
	if("https" in user_name):
		user_name = user_name.split("/")
		user_name = user_name[3].split("?")
		user_name = user_name[0]
		return user_name
	else:
		print(message["copy_error"])
		sys.exit()

def ACencrtrpt(a,b):
	c = a+","+str(b)
	c = base64.b64encode(c.encode())
	return c
	
def Test(c,d):
	if c == d:
		return True
	else:
		key = glob.glob("*.pwd")
		key = key[0].split(".")[0]
		print(message["code_notification"]+key)
		sys.exit()
		
def check():
	file = glob.glob("*.pwd")
	if not file:
		key = int(random.uniform(1,99))*int(random.uniform(99,999))
		key = str(key)
		with open(key+".pwd" , mode="w") as f:
			f.write("")
		notification.schedule(message["code_notification"]+key)
		print(message["code_notification"]+key)
		sys.exit()
	else:
		code = file[0].split(".")[0]
		return code
							
def tweet_filter(Tweettext):	
	for i in range(10):
		if(font_item[0][i] in Tweettext):
			Tweettext = Tweettext.replace(font_item[0][i],basenumber[i])
		for j in range(10):
			if(font_item[1][j] in Tweettext):
				Tweettext = Tweettext.replace(font_item[1][j],basenumber[j])
			for k in range(10):
				if(font_item[2][k] in Tweettext):
					Tweettext = Tweettext.replace(font_item[2][k],basenumber[k])
				for l in range(10):
					if(font_item[3][l] in Tweettext):
						Tweettext = Tweettext.replace(font_item[3][l],basenumber[l])		
	return Tweettext

def tweet_trim(tweet):
	tweet = tweet_filter(tweet)
	for i in itemlist1:
		tweet = re.sub(i,"",tweet)
		for j in itemlist2:
			tweet = tweet.replace(j,"")
	tweet = re.findall(r"\d+",tweet)
	return tweet
	
def get_time_now():
	now_time = datetime.datetime.now()
	now_time = str(now_time).split(" ")[1]
	now_time = now_time.split(":")
	now_time_minute = now_time[1]
	now_time_seconds = now_time[2].split(".")[0]
	return now_time_minute,now_time_seconds


API   = login(CK,CKS,AT,ATS) 

Check = check()
Check = ACencrtrpt(Check,Twitter_ID)
Test(Auto_ID,Check)

user_name = get_username()

print("@"+user_name+message["waiting_passtweet"])

if(pass_tweet_time == "00"):
	passTb = "59"
else:
	passTb = str(int(pass_tweet_time)-1)	
	
while True:
	now_time_minute , now_time_seconds = get_time_now()		
	if(now_time_minute == passTb and now_time_seconds == "58"):
		break	
	elif(now_time_minute == passTb and now_time_seconds == "59"):
		break
	elif(now_time_minute == pass_tweet_time):	
		break
	time.sleep(0.01)
	
while True:
	tweet = API.user_timeline(user_name,count = 1)
	for i in tweet:
		tweet = i.text
		tweet_time = i.created_at
		
	tweet_time = re.findall(r"\d+",str(tweet_time))
	tweet_time_minute = tweet_time[4]
	tweet_time_second = tweet_time[5]
		
	if(pass_tweet_time == "00"):
		pass_tweet_time_ = "59"
	else:
		pass_tweet_time_ = str(int(pass_tweet_time)-1)
		if(len(pass_tweet_time_) == 1):
			pass_tweet_time_ = "0" + pass_tweet_time_
	for i in range(57,60):
		if(pass_tweet_time_ == tweet_time_minute and str(i) == tweet_time_second):
			flag = 1	
	if(pass_tweet_time == tweet_time_minute):
		flag = 1
		
	if(flag == 1):
		break
	#else:
		#console.clear()
		#print(message["no_update"]+" ["+str(datetime.datetime.now()).split(" ")[1]+"]")
	time.sleep(0.01)

tweet = tweet_trim(tweet)

if(room_id in tweet):
	room_id_index = tweet.index(room_id)
	if(room_id_index == 0):
		password = str(tweet[1])
	elif(room_id_index == 1):
		password = str(tweet[0])
	elif(len(tweet) >= 1):
		password = str(tweet[0])
else:
	password = tweet[0]

keyboard.insert_text(password)
keyboard.insert_text("\n")
notification.schedule(password)
print("password:"+password)
anonymous
Anonymous
2021年04月25日
Medication information for patients. Effects of Drug Abuse. <a href="https://pregabalin24x7.top">lyrica without prescription</a> in US Everything information about meds. Read here.
anonymous
Anonymous
2021年04月28日
Meds information. Long-Term Effects. <a href="https://topregabalin.top">cost pregabalin without a prescription</a> in US Everything trends of medicament. Read now.
anonymous
Anonymous
2021年04月29日
Medicines prescribing information. Generic Name. <a href="https://pregabalininfo.top">cost of lyrica for sale</a> in the USA Actual trends of medicine. Read information now.
anonymous
Anonymous
2021年04月30日
buying cialis online safely <a href="https://mycialistabs.com/">cialis price</a> cialis cvs
anonymous
Anonymous
2021年04月30日
cialis price costco <a href="https://mycialistabs.com/">side effects of cialis</a> viagra vs cialis hardness
anonymous
Anonymous
2021年04月30日
cialis coupon <a href="https://mycialistabs.com/">mycialistabs.com</a> how to get cialis
anonymous
Anonymous
2021年05月01日
cialis 5mg price cvs <a href="https://toptadalafiltabs.com/">generic cialis 2018</a> when can i take viagra after taking cialis
anonymous
Anonymous
2021年05月03日
should you write out numbers in an essay <a href="https://topessaywriterfas.com/">essay helper</a> how to write a nhs essay
anonymous
Anonymous
2021年05月03日
free trial cialis <a href="https://toptadalafiltabs.com/">generic cialis 2018</a> free sample cialis
anonymous
Anonymous
2021年05月04日
cialis shelf life <a href="https://toptadalafiltabs.com/">how long does it take for cialis to work</a> how to buy cialis
anonymous
Anonymous
2021年05月05日
what to write college essay on <a href="https://topessaywriterfas.com/">write me an essay</a> how to write a 600 word essay
anonymous
Anonymous
2021年05月05日
civil service mains essay paper 2014 <a href="http://writemyessayslfd.com/">help me write my essay</a> essay writing on service to motherland is service to god
anonymous
Anonymous
2021年05月05日
write a college essay <a href="https://topessaywriterfas.com/">pay for college essay</a> how to write a good ap essay
anonymous
Anonymous
2021年05月06日
viagra connect walgreens <a href="https://mrviagrashop.com">viagra walmart</a> viagra connect cvs
anonymous
Anonymous
2021年05月07日
essay service management <a href="http://writemyessayslfd.com/">write your essay</a> how write essay
anonymous
Anonymous
2021年05月07日
community service essay animal shelter <a href="http://writemyessayslfd.com/">write about yourself essay</a> writing a college admission essay
anonymous
Anonymous
2021年05月07日
canadian pharmacy viagra <a href="https://mysildenafilkr.com/">womens viagra</a> viagra online
anonymous
Anonymous
2021年05月07日
viagra over the counter <a href="https://mrviagrashop.com">viagra canada prescription</a> natural viagra
anonymous
Anonymous
2021年05月07日
viagra online usa <a href="https://mrviagrashop.com">canadian pharmacy viagra</a> sildenafil over the counter
anonymous
Anonymous
2021年05月08日
sildenafil citrate 50mg <a href="https://mysildenafilkr.com/">canada viagra</a> sildenafil 100 mg tablets
anonymous
Anonymous
2021年05月08日
female viagra pill <a href="https://mysildenafilkr.com/">homemade viagra</a> sildenafil walgreens
anonymous
Anonymous
2021年05月11日
cialis from canada to usa <a href="http://tadalafilled.com/">cialis no prescription</a> cvs cialis over the counter
anonymous
Anonymous
2021年05月11日
personal assistant resume <a href="http://coverletterforresumetop.com/">customer service cover letter</a> emt resume
anonymous
Anonymous
2021年05月12日
cover letter engineering <a href="http://coverletterforresumetop.com/">experienced nurse resume</a> resume service
anonymous
Anonymous
2021年05月12日
is there a generic cialis <a href="http://tadalafilled.com/">levitra vs cialis</a> us pharmacy prices for cialis
anonymous
Anonymous
2021年05月12日
dance resume <a href="http://coverletterforresumetop.com/">career change cover letter</a> cover letter closing
anonymous
Anonymous
2021年05月12日
cialis otc usa <a href="http://tadalafilled.com/">cialis over the counter 2018</a> canadian pharmacy online cialis
anonymous
Anonymous
2021年05月12日
rn cover letter <a href="https://writingacoverletteronline.com/">a better resume service</a> programmer resume
anonymous
Anonymous
2021年05月13日
project manager cover letter <a href="https://writingacoverletteronline.com/">consulting resume</a> make resume
anonymous
Anonymous
2021年05月13日
investment banking cover letter <a href="https://writingacoverletteronline.com/">help me build a resume</a> babysitting resume
anonymous
Anonymous
2021年05月13日
viagra price canada <a href="https://edviagramaster.net/">natural sildenafil citrate</a> pills like viagra
anonymous
Anonymous
2021年05月14日
online viagra <a href="https://edviagramaster.net/">indian viagra</a> female viagra
anonymous
Anonymous
2021年05月14日
female viagra cvs <a href="https://edviagramaster.net/">viagra for sale</a> sildenafil cvs
anonymous
Anonymous
2021年05月15日
homemade viagra <a href="https://sildenafilviagratop.com">hims viagra</a> female viagra pill
anonymous
Anonymous
2021年05月15日
buy cialis online safely <a href="https://cialisortadalafil.com/">buy cialis online cheap</a> cialis side effects with alcohol
anonymous
Anonymous
2021年05月16日
viagra canadian pharmacy ezzz <a href="https://sildenafilviagratop.com">buy viagra</a> sildenafil citrate 20 mg
anonymous
Anonymous
2021年05月16日
does cialis lower blood pressure <a href="https://cialisortadalafil.com/">cialis vs viagra</a> how to make cialis work better
anonymous
Anonymous
2021年05月16日
is cialis covered by insurance <a href="https://cialisortadalafil.com/">tadalafil side effects</a> where can i buy cialis
anonymous
Anonymous
2021年05月16日
hims viagra <a href="https://sildenafilviagratop.com">will 10 year old viagra work</a> homemade viagra
anonymous
Anonymous
2021年05月16日
cialis without prescription <a href="https://topcialistabs.com/">generic cialis</a> cialis drug
anonymous
Anonymous
2021年05月17日
is there a generic cialis <a href="https://topcialistabs.com/">levitra vs cialis</a> us pharmacy prices for cialis
anonymous
Anonymous
2021年05月17日
how long does cialis last? <a href="https://topcialistabs.com/">cialis and blood pressure</a> when will cialis be over the counter
anonymous
Anonymous
2021年05月17日
Medicine information for patients. What side effects? <a href="https://protonix4u.top">protonix no prescription</a> in Canada Some trends of meds. Get now.
anonymous
Anonymous
2021年05月20日
<a href="https://edviagramaster.net/">https://edviagramaster.net/</a>
anonymous
Anonymous
2021年05月21日
<a href="https://5bz.ru/">база предприятий по сферам деятельности</a>
anonymous
Anonymous
2021年05月29日
[url=http://slkjfdf.net/]Eveupusuu[/url] <a href="http://slkjfdf.net/">Oruhami</a> nzq.ubcu.harigami.net.brh.zi http://slkjfdf.net/
anonymous
Anonymous
2021年05月29日
[url=http://slkjfdf.net/]Ahrijune[/url] <a href="http://slkjfdf.net/">Iwumosoy</a> wjw.rkmk.harigami.net.iqq.br http://slkjfdf.net/
anonymous
Anonymous
2021年05月29日
[url=http://slkjfdf.net/]Fomeqoyet[/url] <a href="http://slkjfdf.net/">Elileweka</a> low.tpvm.harigami.net.lib.wz http://slkjfdf.net/
anonymous
Anonymous
2021年05月29日
[url=http://slkjfdf.net/]Urisuf[/url] <a href="http://slkjfdf.net/">Yuheteri</a> tqs.wumw.harigami.net.izu.pm http://slkjfdf.net/
anonymous
Anonymous
2021年05月29日
[url=http://slkjfdf.net/]Umuqaboto[/url] <a href="http://slkjfdf.net/">Oejuzu</a> veb.xzul.harigami.net.tuw.ds http://slkjfdf.net/
anonymous
Anonymous
2021年05月29日
[url=http://slkjfdf.net/]Josufid[/url] <a href="http://slkjfdf.net/">Ocazab</a> rcj.xeby.harigami.net.zrc.om http://slkjfdf.net/
Output