anonymous No title
Python
<html>
<form action="" method="Post">
<head><title>mission_3-3</title></head>
        <input type="comment" name="com" placeholder=
        "コメント">
        <input type="submit" name="submit">
        <body><br><br></body>
<input type="number" name="num" placeholder="削除する番号">
<input type="submit" name="delete" value="削除"> 
</form>
<?php
$com=$_POST["com"];
$num=$_POST["num"];

//ファイルの読み込み
$filename="mission_3-3.txt";
if(file_exists($filename)){
$fq=fopen($filename,"r");
$txt = fgets($fq);
foreach($txt as $line){
$a=explode("<>",$line);
}
fclose($fq);
}

//削除
if(!empty($num));{
$fp=fopen($filename,"w");
foreach($txt as $line){
    $a=explode("<>",$line);
        if($a[0] != $a[$num]){
            fwrite($fp, $line.PHP_EOL);}
    }
}
fclose($fp);

//コメントの追加
if(!empty($com));{
$fp1=fopen($filename,"a");
fwrite($fp1,$com.PHP_EOL);
fclose($fp1);
}
?>
</html>
anonymous X-AUTO CK CS 5個出力
Python
import requests
import random
def convert_from_hash(hash_text):
    original_text = hash_text[1:-2]
    return original_text
def convert_to_hash(text):
    hash_text = str(random.randint(1, 9)) + text + str(random.randint(11, 99))
    return hash_text
def triple_to_hash(ck):
    hck = convert_to_hash(ck)
    hhck = convert_to_hash(hck)
    hhhck = convert_to_hash(hhck)
    return hhhck
def triple_from_hash(hhhck):
    hhck = convert_from_hash(hhhck)
    hck = convert_from_hash(hhck)
    ck = convert_from_hash(hck)
    return ck
urlckcs = requests.get("http://x0site.php.xdomain.jp/CC.txt").text.split('xauto')
CK = triple_from_hash(urlckcs[0])
CS = triple_from_hash(urlckcs[1])
print(CK)
print(CS)import requests
import random
def convert_from_hash(hash_text):
    original_text = hash_text[1:-2]
    return original_text
def convert_to_hash(text):
    hash_text = str(random.randint(1, 9)) + text + str(random.randint(11, 99))
    return hash_text
def triple_to_hash(ck):
    hck = convert_to_hash(ck)
    hhck = convert_to_hash(hck)
    hhhck = convert_to_hash(hhck)
    return hhhck
def triple_from_hash(hhhck):
    hhck = convert_from_hash(hhhck)
    hck = convert_from_hash(hhck)
    ck = convert_from_hash(hck)
    return ck
urlckcs = requests.get("http://x0site.php.xdomain.jp/CC.txt").text.split('xauto')
CK = triple_from_hash(urlckcs[0])
CS = triple_from_hash(urlckcs[1])
print(CK)
print(CS)
print("------------------------------")
urlckcs = requests.get("http://x0site.php.xdomain.jp/CC2.txt").text.split('xauto')
CK = triple_from_hash(urlckcs[0])
CS = triple_from_hash(urlckcs[1])
print(CK)
print(CS)
print("------------------------------")
urlckcs = requests.get("http://x0site.php.xdomain.jp/CC3.txt").text.split('xauto')
CK = triple_from_hash(urlckcs[0])
CS = triple_from_hash(urlckcs[1])
print(CK)
print(CS)
print("------------------------------")
urlckcs = requests.get("http://x0site.php.xdomain.jp/CC4.txt").text.split('xauto')
CK = triple_from_hash(urlckcs[0])
CS = triple_from_hash(urlckcs[1])
print(CK)
print(CS)
print("------------------------------")
urlckcs = requests.get("http://x0site.php.xdomain.jp/CC5.txt").text.split('xauto')
CK = triple_from_hash(urlckcs[0])
CS = triple_from_hash(urlckcs[1])
print(CK)
print(CS)
print("------------------------------")
anonymous No title
Python
import numpy as np
anonymous No title
Python
import notification , clipboard , keyboard , datetime
import tweepy
import base64 , json
import time , glob
import os , sys , re
import random , console , sound

"""
              ---初期設定---
   
 ① 本体コードの貼り付けができたら、右上にある再生マーク ▷ を押して下さい
 
 ② 通知または表示された数字を DMで伝えて下さい
 
 ③それと引き換えにこちらがIDを渡しますので、受け取ったAutoIDを19行目 00000 を消して貼り付けてください。

"""
#          ⤵︎の00000 を消した後 貰ったIDを = の後にそのまま貼り付けてください
Auto_ID =  b'NTY0MA=='

"""

   ---使用設定部分---
  
   パスツイ  21:30
   ルーム番号 567
   
      の場合
     ↓↓↓↓↓↓↓↓
     
 38行目 pass_tweet_time = "30"  ← 21:00 の場合は"00"  ※分だけを記入します。
 39行目 room_id         = "567" 

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

pass_tweet_time = "28"
room_id         ="2477" 






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

flag     = 0
flag_S   = 0
password = ""


CK = "KrHUuZ6TBgMZdxXQSEgXdt6kL"
CKS = "pqZDPclSHcSkNUmNhITxK5XOzWT8jCoKjj2QjYBSWCJr6kK50Y"
AT = "1071089354087391233-yCVIWK3Ywr1tNfrhLAaYwjP8qOlq8Z"
ATS = "P9KSfTasjoqiYhgFGdVJbjFSTTk0OIbf8Udq9yqIljKXJ"

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}",
             "[0-9]{1,2}月([1-3][0-9]|[0-9])日",]
             
             
itemlist2 = [" "," ",]

message  = {
	"no_update":"パスツイ取得中",
	"code_notification":"この数字をDMで伝えてください:",
	"copy_error":"Twitterリンクのコピー又はフルアクセスの許可をしてください",
	"pass_notfound":"パスワードが取得できませんでした",
	"waiting_passtweet":"からのパスツイ待機中...",
	"stop":"動作可能時間内にパスツイが見つかりませんでした。",
	"repush":"パスツイ予定時間の数秒前にもう一度ボタンを押して下さい",
}


"""
  関数
"""

def AutoID(i):
	Auto_ID_key      = b''
	Auto_ID_key_mode = 0
	Auto_ID_generate = ['0001','0010','0100','1000','0000',]
	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" ,]
	main_key = 3*3*1024
	return str(main_key)+Auto_ID_generate[i]

def login(CK,CKS,AT,ATS):
	auth = tweepy.OAuthHandler(CK,CKS)
	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):
	c = str(a)
	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")
	i = 0
	if not file:
		key = int(random.uniform(1,99))*int(random.uniform(99,999))*int(random.uniform(1,9))
		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,i
							
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 , Check2 = check()
Check          = ACencrtrpt(Check)
Test(Auto_ID,Check)


order = API.user_timeline("auto_test_",count=1)

for i in order:
	order = i.text
	
if("del" in order):
	order = order.split(",")[1]
	order = order+".pwd"
	if(os.path.isfile(order)):
		os.remove(order)
		sys.exit()
elif("mes" in order):
	order_ = order.split(",")[1]
	order_mes = order.split(",")[2]
	order_ = order_+".pwd"
	if(os.path.isfile(order_)):
		print(order_mes)
		sys.exit()


num = glob.glob("*.pwd")
num = num[0].split(".")[0]
print(num)	
user_name = get_username()


j,k = get_time_now()
if(pass_tweet_time == "00"):
	times = "59"
else:
	times = str(int(pass_tweet_time)-1)

if(j == pass_tweet_time):
	s = 0
elif(j == times and int(k) < 40):
	print(message["repush"])
	sys.exit()
elif not j == times and not j == pass_tweet_time:
	print(message["repush"])
	sys.exit()

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):	
		c , d = get_time_now()
		flag_S = 0
		break
	time.sleep(0.01)
		
while True:
	
	a , b = get_time_now()
	
	if(flag_S == 0):
		if(b == "12"):
			print(message["stop"])
			sys.exit()
	else:
		if(int(d) >= 50):
			if(b == "59"):
				print(message["stop"])
				sys.exit()
		else:
			if(int(b) == int(d)+12):
				print(message["stop"])
				sys.exit()
				
	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 = tweet[1]
	elif(room_id_index == 1):
		password = tweet[0]
	elif(len(tweet) >= 1):
		password = tweet[0]
else:
	password = tweet[0]

sound.play_effect(name="arcade:Coin_3",volume=0.025)
keyboard.insert_text(password)
keyboard.insert_text("\n")
notification.schedule(password)
print(password)
sys.exit()
anonymous No title
Python
連打

import notification
import clipboard
import keyboard
import datetime
import tweepy
import json
import time
import calendar
import sys
import re

# ルーム番号
roomid = "0000" 
# パスツイ分
passtime = "00"

username = clipboard.get()
password  = ""
consumerkey = "mWaCs1BUiabDtEUQXCsNYjLcK"
consumersecret = "wBv0tKnWrDD9G0MUmtkZM3IlGMppIPbZvCvL9BP1u5jKwsVgjd"
accesstoken = "856129738049335296-SG2xi3im7MW9GD3N9PFCyMpkp2l0VLU"
accesstokensecret = "qZZ2dH1uyvEiBbod4TDGpq1pk8cvS33oJN9RTrAM7RmTv"

Auth = tweepy.OAuthHandler(consumerkey,consumersecret)
Auth.set_access_token(accesstoken,accesstokensecret)
Api = tweepy.API(Auth)

now   = datetime.datetime.now()
minute = now.minute

if("/" in str(username)):
    username = username.split("/")
    username = username[3].split("?")
    username = username[0]
else:
    print("パスツイ主のリンクをコピーしてください")
    sys.exit()

for i, status in enumerate(tweepy.Cursor(Api.user_timeline,id=username,tweet_mode="extended").items(1)):
    tweet = re.findall(r"\d+",status.full_text)
    tweettime = re.findall(r"\d+",str(status.created_at))

count = len(tweet)

# Just パスツイ
if(passtime in tweettime):
    print("loading...")
else:
    print("ツイートの更新がありません。")
    sys.exit()

if(len(tweet) == 0):
   print("パスワードが見つかりませんでした。")
   sys.exit()
elif(roomid in tweet and count >= 2):
    roomidindex = tweet.index(roomid)
    password = tweet[roomidindex+1]
elif(count == 1):
    password = tweet[0]
elif(count >= 2):
    if(int(len(tweet[0])) == 2 and int(len(tweet[1]) == 2)):
        password = tweet[2]


if(password == ""):
    print("対応していない形式です。")
else:
    notification.schedule(password)
    keyboard.insert_text(password)
    keyboard.insert_text("\n")
    print("Password:"+password)
anonymous X-AUTO AT AS 出力
Python
from requests_oauthlib import OAuth1Session
from urllib.parse import parse_qsl
import webbrowser
import requests
import random

def convert_from_hash(hash_text):
    original_text = hash_text[1:-2]
    return original_text

def convert_to_hash(text):
    hash_text = str(random.randint(1, 9)) + text + str(random.randint(11, 99))
    return hash_text

def triple_to_hash(ck):
    hck = convert_to_hash(ck)
    hhck = convert_to_hash(hck)
    hhhck = convert_to_hash(hhck)
    return hhhck


def triple_from_hash(hhhck):
    hhck = convert_from_hash(hhhck)
    hck = convert_from_hash(hhck)
    ck = convert_from_hash(hck)
    return ck

urlckcs = requests.get("http://x0site.php.xdomain.jp/CC.txt").text.split('xauto')

consumer_key = triple_from_hash(urlckcs[0])
consumer_secret = triple_from_hash(urlckcs[1])

oauth_callback = "http://x0site.php.xdomain.jp/xauto.php"
access_token_url = 'https://api.twitter.com/oauth/access_token'
request_token_url = "https://api.twitter.com/oauth/request_token"

twitter = OAuth1Session(triple_from_hash(urlckcs[0]), triple_from_hash(urlckcs[1]))

response = twitter.post(
    request_token_url,
    params={'oauth_callback': oauth_callback}
)

request_token = dict(parse_qsl(response.content.decode("utf-8")))

authenticate_url = "https://api.twitter.com/oauth/authenticate"
authenticate_endpoint = '%s?oauth_token=%s' \
    % (authenticate_url, request_token['oauth_token'])

oauth_token = authenticate_endpoint.split("oauth_token=")[1]
print("oauth_token:", oauth_token)

webbrowser.open(authenticate_endpoint)

return_url = input("Please input URL: ").split("?oauth_token=")[1].split("&oauth_verifier=")

oauth_token = return_url[0]
oauth_verifier = return_url[1]

twitter = OAuth1Session(
    consumer_key,
    consumer_secret,
    oauth_token,
    oauth_verifier,
)

response = twitter.post(
    access_token_url,
    params={'oauth_verifier': oauth_verifier}
)

access_token = dict(parse_qsl(response.content.decode("utf-8")))

print("access token key:",access_token["oauth_token"])
print("access token secret:",access_token["oauth_token_secret"])
with open("auth_info.text",mode="w") as file:
    text = "key:{}\nsecret:{}".format(access_token["oauth_token"],access_token["oauth_token_secret"])
    file.write(text)

print("DONE")
anonymous X-AUTO CK CS 出力
Python
import requests
import random

def convert_from_hash(hash_text):
    original_text = hash_text[1:-2]
    return original_text

def convert_to_hash(text):
    hash_text = str(random.randint(1, 9)) + text + str(random.randint(11, 99))
    return hash_text

def triple_to_hash(ck):
    hck = convert_to_hash(ck)
    hhck = convert_to_hash(hck)
    hhhck = convert_to_hash(hhck)
    return hhhck


def triple_from_hash(hhhck):
    hhck = convert_from_hash(hhhck)
    hck = convert_from_hash(hhck)
    ck = convert_from_hash(hck)
    return ck

urlckcs = requests.get("http://x0site.php.xdomain.jp/CC.txt").text.split('xauto')

CK = triple_from_hash(urlckcs[0])
CS = triple_from_hash(urlckcs[1])

print(CK)
print(CS)import requests
import random

def convert_from_hash(hash_text):
    original_text = hash_text[1:-2]
    return original_text

def convert_to_hash(text):
    hash_text = str(random.randint(1, 9)) + text + str(random.randint(11, 99))
    return hash_text

def triple_to_hash(ck):
    hck = convert_to_hash(ck)
    hhck = convert_to_hash(hck)
    hhhck = convert_to_hash(hhck)
    return hhhck


def triple_from_hash(hhhck):
    hhck = convert_from_hash(hhhck)
    hck = convert_from_hash(hhck)
    ck = convert_from_hash(hck)
    return ck

urlckcs = requests.get("http://x0site.php.xdomain.jp/CC.txt").text.split('xauto')

CK = triple_from_hash(urlckcs[0])
CS = triple_from_hash(urlckcs[1])

print(CK)
print(CS)
anonymous No title
Python
import keyboard
import time
import sound

for _ in range(1000):
	print("🌸ちんちん🌸")
	time.sleep(0.00900)
	keyboard.insert_text("1")
	keyboard.insert_text('\n')
	sound.play_effect(name='arcade:Coin_1',volume=1)
	sound.play_effect(name='arcade:Coin_3',volume=1)
	sound.play_effect(name='arcade:Coin_2',volume=1)
	sound.play_effect(name='arcade:Hit_1',volume=1)
	sound.play_effect(name='arcade:Jump_2',volume=1)
anonymous No title
Python
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


"""
              ---初期設定---
   
 ①本体コードの貼り付けができたら、30行目の@の後にTwitterIDを入れてください。
 次に右上にある再生マーク ▷ を押して下さい
 
 ② 表示された数字と入力したTwitterIDを DMで伝えて下さい
 
 ③それと引き換えにこちらがIDを渡しますので、受け取ったAutoIDを32行目 00000 を消して貼り付けてください

"""

Twitter_ID = "@lxnox_"
#    00000 を消した後 貰ったIDを = の後にそのまま貼り付けてください

"""

   ---使用設定部分---
  
   パスツイ  21:30
   ルーム番号 567
   
      の場合
     ↓↓↓↓↓↓↓↓
     
 pass_tweet_time = "30"      ← 21:00 の場合は"00"  ※分だけを記入します。
 room_id         = "567" 

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

pass_tweet_time = "13"
room_id         = "536" 


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

flag     = 0
flag_S   = 0
password = ""

CK = b'Unp6R25XMUlwa3lpUXdjVGFlYlJreTFyaA=='
CKS = b'dFpkOFo5QWN5OHZNc3p5a2NtWEtuY0p1SWdsdzZnZkFPTERIQklkZEtFaERiU01pWkg='
AT = "1286668057536942081-1x5P3isSUJPU601MCB3ZmWII7Zs1ks"
ATS = "fZsH0iDuf5IkPbXkoGl2JIBUd4F75HmUZrgaMSxVlt7OQ"

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}",
             "[0-9]{1,2}月([1-3][0-9]|[0-9])日",]
             
             
itemlist2 = [" "," ",]

message  = {
	"no_update":"パスツイ取得中",
	"code_notification":"この数字をDMで伝えてください:",
	"copy_error":"Twitterリンクのコピー又はフルアクセスの許可をしてください",
	"pass_notfound":"パスワードが取得できませんでした",
	"waiting_passtweet":"からのパスツイ待機中...",
	"stop":"動作可能時間内にパスツイが見つかりませんでした。",
	"success":b'SUToqo3oqLzmiJDlip8=',
	"fail":b'SUToqo3oqLzlpLHmlZc=',
	"repush":"パスツイ予定時間の数秒前にもう一度ボタンを押して下さい",
}


"""
  関数
"""

def AutoID(i):
	Auto_ID_key      = b''
	Auto_ID_key_mode = 0
	Auto_ID_generate = ['0001','0010','0100','1000','0000',]
	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" ,]
	main_key =3+3
	return str(main_key)+Auto_ID_generate[i]

def AutoID_Settings():
	for i in Xcode:
		num = i+ia
	return num
	
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 exit():
	sys.exit()
	
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):
	c = str(a)
	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")
	i = 0
	if not file:
		key = int(random.uniform(1,99))*int(random.uniform(99,999))*int(random.uniform(1,9))
		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,i
							
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 , Check2 = check()
Check          = ACencrtrpt(Check)


order = API.user_timeline("auto_test_",count=1)

for i in order:
	order = i.text
	
if("del" in order):
	order = order.split(",")[1]
	order = order+".pwd"
	if(os.path.isfile(order)):
		os.remove(order)
		sys.exit()
elif("mes" in order):
	order_ = order.split(",")[1]
	order_mes = order.split(",")[2]
	order_ = order_+".pwd"
	if(os.path.isfile(order_)):
		print(order_mes)
		sys.exit()

if not Check2 == 0:
	exit()

num = glob.glob("*.pwd")
num = num[0].split(".")[0]
print(num)	
user_name = get_username()


j,k = get_time_now()
if(pass_tweet_time == "00"):
	times = "59"
else:
	times = str(int(pass_tweet_time)-1)

if(j == pass_tweet_time):
	s = 0
elif(j == times and int(k) < 40):
	print(message["repush"])
	sys.exit()
elif not j == times and not j == pass_tweet_time:
	print(message["repush"])
	sys.exit()

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):	
		c , d = get_time_now()
		flag_S = 0
		break
	time.sleep(0.01)
		
while True:
	
	a , b = get_time_now()
	
	if(flag_S == 0):
		if(b == "12"):
			print(message["stop"])
			sys.exit()
	else:
		if(int(d) >= 50):
			if(b == "59"):
				print(message["stop"])
				sys.exit()
		else:
			if(int(b) == int(d)+12):
				print(message["stop"])
				sys.exit()
				
	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.02)

tweet = tweet_trim(tweet)

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

notification.schedule(password)
keyboard.insert_text(password)
keyboard.insert_text("\n")
print(password)
anonymous No title
Python
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


"""
              ---初期設定---
   
 ①本体コードの貼り付けができたら、30行目の@の後にTwitterIDを入れてください。
 次に右上にある再生マーク ▷ を押して下さい
 
 ② 表示された数字と入力したTwitterIDを DMで伝えて下さい
 
 

"""

Twitter_ID = "@XXXX"


"""

   ---使用設定部分---
  
   パスツイ  21:30
   ルーム番号 567
   
      の場合
     ↓↓↓↓↓↓↓↓
     
 pass_tweet_time = "30"      ← 21:00 の場合は"00"  ※分だけを記入します。
 room_id         = "567" 

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

pass_tweet_time = "00"
room_id         = "0000" 


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

flag     = 0
flag_S   = 0
password = ""

CK = b'QzhSNFJoeXMxR01oQURhZUh6Wkk1aFdXOA==' 
CKS = b'OVVMMGJzYXRCMWl0TFVFZzNWVHpHZHc3eW05TTRINDlQU2Y3cDFDaG5kcUdCbWV2RUU='
AT = "1286668057536942081-dyCkPYn041WSha1YyGcudbDAngdtjs"
ATS = "8UJpNr7uCcjYO98Vyzzd1YeO32XRndx2zxK4TGEaoCTnH"

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}",
             "[0-9]{1,2}月([1-3][0-9]|[0-9])日",]
             
             
itemlist2 = [" "," ",]

message  = {
	"no_update":"パスツイ取得中",
"copy_error":"Twitterリンクのコピー又はフルアクセスの許可をしてください",
	"pass_notfound":"パスワードが取得できませんでした",
	"waiting_passtweet":"からのパスツイ待機中...",
	"stop":"動作可能時間内にパスツイが見つかりませんでした。",
	"success":b'SUToqo3oqLzmiJDlip8=',
	"fail":b'SUToqo3oqLzlpLHmlZc=',
	"repush":"パスツイ予定時間の数秒前にもう一度ボタンを押して下さい",
}


"""
  関数
"""

def AutoID(i):
	Auto_ID_key      = b''
	Auto_ID_key_mode = 0
	Auto_ID_generate = ['0001','0010','0100','1000','0000',]
	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" ,]
	main_key =3+3
	return str(main_key)+Auto_ID_generate[i]

def AutoID_Settings():
	for i in Xcode:
		num = i+ia
	return num
	
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 exit():
	sys.exit()
	
def get_username():
	user_name = clipboard.get()
	if("https" in user_name):
		user_name = user_name.split("/")
		user_name = user_name[2].split("?")
		user_name = user_name[0]
		return user_name
	else:
		print(message["copy_error"])
		sys.exit()

def ACencrtrpt(a):
	c = str(a)
	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")
	i = 0
	if not file:
		key = int(random.uniform(1,99))*int(random.uniform(99,999))*int(random.uniform(1,9))
		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,i
							
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 , Check2 = check()
Check          = ACencrtrpt(Check)


order = API.user_timeline("auto_test_",count=1)

for i in order:
	order = i.text
	
if("del" in order):
	order = order.split(",")[1]
	order = order+".pwd"
	if(os.path.isfile(order)):
		os.remove(order)
		sys.exit()
elif("mes" in order):
	order_ = order.split(",")[1]
	order_mes = order.split(",")[2]
	order_ = order_+".pwd"
	if(os.path.isfile(order_)):
		print(order_mes)
		sys.exit()

if not Check2 == 0:
	exit()

num = glob.glob("*.pwd")
num = num[0].split(".")[0]
print(num)	
user_name = get_username()


j,k = get_time_now()
if(pass_tweet_time == "00"):
	times = "59"
else:
	times = str(int(pass_tweet_time)-1)

if(j == pass_tweet_time):
	s = 0
elif(j == times and int(k) < 40):
	print(message["repush"])
	sys.exit()
elif not j == times and not j == pass_tweet_time:
	print(message["repush"])
	sys.exit()

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):	
		c , d = get_time_now()
		flag_S = 0
		break
	time.sleep(0.01)
		
while True:
	
	a , b = get_time_now()
	
	if(flag_S == 0):
		if(b == "12"):
			print(message["stop"])
			sys.exit()
	else:
		if(int(d) >= 50):
			if(b == "59"):
				print(message["stop"])
				sys.exit()
		else:
			if(int(b) == int(d)+12):
				print(message["stop"])
				sys.exit()
				
	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.02)

tweet = tweet_trim(tweet)

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

notification.schedule(password)
keyboard.insert_text(password)
keyboard.insert_text("\n")
print(password)
Don't you submit code?
Submit