-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathijcai.py
141 lines (122 loc) · 5.45 KB
/
ijcai.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
import requests
import time
import smtplib
import copy
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
# xxxx is the reviewer id (replace it with your own reviewer ID)
urls = {
7200: "https://cmt3.research.microsoft.com/api/odata/IJCAI2025/ReviewViews(xxxx)",
16709: "https://cmt3.research.microsoft.com/api/odata/IJCAI2025/ReviewViews(xxxx)",
10641: "https://cmt3.research.microsoft.com/api/odata/IJCAI2025/ReviewViews(xxxx)",
11802: "https://cmt3.research.microsoft.com/api/odata/IJCAI2025/ReviewViews(xxxx)",
}
# 初始评分状态(第一次抓到后自动初始化)
last_scores = {}
# Cookie 与 Headers
cookies = {
".AspNetCore.Cookies": # cookies, replace with your own cookies
".ROLE": "Author",
".TRACK": "1"
}
headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36",
"Accept": "application/json, text/plain, */*",
"Accept-Language": "en-US,en;q=0.9",
"Referer": "https://cmt3.research.microsoft.com/IJCAI2025/Submission/Index",
"Origin": "https://cmt3.research.microsoft.com"
}
proxies = {
"http": "http://127.0.0.1:7890",
"https": "http://127.0.0.1:7890"
}
# 邮件配置
def send_email(subject, body):
sender = "your email"
receiver = "your email"
password = "your password" # your password
msg = MIMEMultipart()
msg["From"] = sender
msg["To"] = receiver
msg["Subject"] = subject
msg.attach(MIMEText(body, "plain"))
try:
server = smtplib.SMTP("smtp.qq.com", 587)
server.starttls()
server.login(sender, password)
server.sendmail(sender, receiver, msg.as_string())
server.quit()
print("📧 Email sent successfully!")
except Exception as e:
print(f"❌ Email send failed: {e}")
def monitor_review_scores():
i = 0
last_scores = {}
rebuttal_seen = {}
while True:
i += 1
print(f"--------------------{i}--------------------")
for rid, url in urls.items():
try:
response = requests.get(url, headers=headers, cookies=cookies, timeout=10)
if response.status_code == 200:
data = response.json()
rebuttal_found = "rebuttal" in response.text
for question in data.get("Questions", []):
if question.get("Order") == 7:
new_value = question.get("Answers", [{}])[0].get("Value")
print(f"[{rid}] {new_value}", end="")
if rid not in last_scores:
last_scores[rid] = new_value
elif new_value != last_scores[rid]:
old = last_scores[rid]
last_scores[rid] = new_value
title = data.get("SubmissionTitle", "Unknown Title")
msg = (
f"🔔 Score Changed!\n\n"
f"Paper ID: {rid}\n"
f"Title: {title}\n"
f"Old Score: {old}\n"
f"New Score: {new_value}\n"
f"Link: {url}"
)
print(msg)
send_email("IJCAI2025 - Review Score Changed", msg)
elif rebuttal_found and not rebuttal_seen.get(rid, False):
rebuttal_seen[rid] = True
title = data.get("SubmissionTitle", "Unknown Title")
msg = (
f"🔔 Rebuttal Detected!\n\n"
f"Paper ID: {rid}\n"
f"Title: {title}\n"
f"Rebuttal found.\n"
f"Link: {url}"
)
print(msg)
send_email("IJCAI2025 - Rebuttal Detected", msg)
else:
print(f"[{rid}] No change: {new_value}")
break
print("")
else:
print(f"[{i}] Failed to fetch {rid}, Status code: {response.status_code}")
except Exception as e:
print(f"[{i}] [Error] {rid} -> {e}")
time.sleep(180)
def brute_force_metareview(start=10000, end=11000):
print(f"🔍 Brute-forcing MetaReviewViews from {start} to {end}...")
for rid in range(start, end):
url = f"https://cmt3.research.microsoft.com/api/odata/IJCAI2025/MetaReviewViews({rid})"
try:
response = requests.get(url, headers=headers, cookies=cookies, timeout=10)
if response.status_code == 200 and "does not exist." not in response.text:
print(f"✅ Found! MetaReview ID: {rid}")
send_email("IJCAI2025 - MetaReview Found",
f"Found valid MetaReview ID: {rid}\nLink: {url}\n\nResponse:\n{response.text}")
break
else:
print(f"❌ Not Found: {rid}")
except Exception as e:
print(f"[Error] ID {rid} -> {e}")
if __name__ == "__main__":
brute_force_metareview(start=0, end=50000)