정보보안공부
SQL Injection - DB별 표현식 정리 본문
@@ DB별 user명, user명 길이 조회
** Mysql
- user()
- length(user())
** Mssql
- user
- len(user)
** Oracle
- user
- length(user)
@@ DB별 버전, 데이터베이스명 조회
** Mysql
#> select version() from dual;
#> select database() from dual;
** Mssql
#> select @@version;
#> select db_name();
** Oracle
#> select banner from v$version;
#> select name from v$database;
#> select sys.database_name from dual;
@@ DB별 날짜조회
** Mysql
#> select now();
** Mssql
#> select getdate();
** Oracle
#> select sysdate from dual;
'Web' 카테고리의 다른 글
Error Based Sql Injection - Mssql (0) | 2019.10.27 |
---|---|
Web - 파일업로드(APM 환경) (0) | 2019.10.21 |
SQL Injection - DB별 단일행, 단일열 쿼리 (0) | 2019.09.22 |
SQL Injection - Error-Based Sql Injection (0) | 2019.09.22 |
SQL Injection - Blind Sql Injection (0) | 2019.09.22 |
Comments