Skip to content

Commit

Permalink
Update Scandir.py
Browse files Browse the repository at this point in the history
fix bug
  • Loading branch information
SiJiDo authored Dec 7, 2021
1 parent ec90fa2 commit b3244ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/scan/lib/Scandir.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def save_result(target, target_id, result, cursor, conn, current_user):
continue

#去掉可能相同页面
sql = "SELECT * from Dirb WHERE dir_http='%s' AND dir_length='%s'"
sql = "SELECT * from Dirb WHERE dir_http=%s AND dir_length=%s"
if(cursor.execute(sql,(target[0], result['content-length']))):
#如果资产存在则标记已扫描
print("判断过滤:" + result['host'] + result['path'])
Expand Down Expand Up @@ -177,4 +177,4 @@ def save_result(target, target_id, result, cursor, conn, current_user):
conn.commit()
except Exception as e:
print(e)


0 comments on commit b3244ad

Please sign in to comment.