Search

S1 #118

How many seconds elapsed between the time the brute force password scan identified the correct password and the compromised login?
Answer guidance: 
무차별 대입 암호 검색이 올바른 암호를 식별한 시간과 손상된 로그인 사이에 경과된 시간은 몇 초입니까? 답변 안내: 소수점 둘째 자리에서 반올림합니다.
우리는 성공한 패스워드는 batman인걸 알고 있다.
2개인 것도 알고 있으므로 사실 이렇게 검색해서 빼주는 게 대회상으로는 가장 빠르다.
"imreallynotbatman.com" "passwd=batman" | sort _time | table _time
SQL
복사
그러나 우리의 목적은 지금 멋지게 푸는 것 아니겠는가?
트랜잭션을 통해 pass가 같은 이벤트를 묶어주고 이로 인해 생성된 duration(그룹핑된 처음과 마지막 이벤트 사이의 시간)을 반올림하자
"imreallynotbatman.com" "passwd=batman" | rex field=form_data "passwd=(?<pass>\w+)" | transaction pass | eval duration = round(duration,2) | table duration
SQL
복사