Skip to content

Commit

Permalink
Feature | 更新部分功能,详情见CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
Cl0udG0d committed Mar 15, 2023
1 parent a05ffb6 commit 1c9c558
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 24 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,15 @@ optional arguments:
<br />
<sub><b>Wans</b></sub>
</a>
</td></tr>
</td>
<td align="center">
<a href="https://github.com/tastypear">
<img src="https://avatars.githubusercontent.com/u/1382667?v=4" width="100;" alt="wanswu"/>
<br />
<sub><b>tastypear</b></sub>
</a>
</td>
</tr>
</table>

### END
Expand Down
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# @Github: https://github.com/Cl0udG0d

# Fofa-hack 版本号
VERSION_NUM="2.0.4"
VERSION_NUM="2.0.5"
# 登录最大重试次数
MAX_LOGIN_RETRY_NUM=3
# 页面URL获取最大重试次数
Expand Down
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG 代码变更记录

### 2.0.5
+ 新增贡献者 tastypear
+ 尝试优化时间戳逻辑

### 2.0.4
+ 删除.github文件夹
+ 新增TODO List
Expand Down
6 changes: 5 additions & 1 deletion fofa.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,17 +202,21 @@ def modify_search_time_url(self, search_key):
"""
timestamp_list=list(self.timestamp_set)
timestamp_list.sort()
# print(timestamp_list)
# timestamp_length = len(timestamp_list)
if timestamp_list[-1] == timestamp_list[0]:
time_before = timestamp_list[-1].strip('\n').strip()
else:
time_last = timestamp_list[-1].split(' ')[0].strip('\n').strip()
# print(time_last)
# print(timestamp_list)
time_last_time = datetime.strptime(time_last, "%Y-%m-%d").date()
# print(str(time_last_time))
time_before = (time_last_time - timedelta(days=1))
time_before = time_last_time-timedelta(days=1)
# print('time_before' + str(time_before))
# print(time_before)
if 'before' in search_key:
print(search_key)
search_key = search_key.split('&& before')[0]
search_key = search_key.strip(' ')
search_key = search_key + ' && ' + 'before="' + str(time_before) + '"'
Expand Down
22 changes: 1 addition & 21 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,4 @@
data=[1,2,3,4,5,6,7,8,9]
result=[]



for i in data:

for j in data:
for k in data:
for l in data:
for m in data:
for n in data:
num1=i*10+j
num2=k
num3=l*10+m
num4=n
if num1-num2==num3-num4:
templist=[i,j,k,l,m,n]
if templist.count(2)<2 and templist.count(3)<2 and templist.count(4)<2 and templist.count(5)<2 and templist.count(6)<2 and templist.count(7)<2 and templist.count(8)<2 and templist.count(9)<2:

print("{}-{}={}-{}".format(num1,num2,num3,num4))
result.append([num1,num2,num3,num4])

print(len(result))
key='"thinkphp" && before="2023-03-14"'

0 comments on commit 1c9c558

Please sign in to comment.