SPATIUM Mobile
주소복사
About Operating System Languages Tools Favorites Notice Visit TEST  
     Android (3)
     Linux (1)
     MacOS (1)
     OS (1)
     Solaris10 (15)
     Windows (1)
     Windows Server (2)
     Windows XP (3)
   ID  
   Password  
  |  
  Location United States
  IP Address 216.73.216.11
2025. 10
1234
567891011
121314
15
161718
19202122232425
262728293031
Category  Languages, ASP
Writer 김태우 Date 2011-10-14 10:44:45 Visit 6843
SQL Injection 처리 함수(프로그램에서 처리)

 

## ASP
function SQL_Injection( get_String )

   get_String = REPLACE( get_String, "'", "''" )
   get_String = REPLACE( get_String, ";", "" )
   get_String = REPLACE( get_String, "--", "" )
   get_String = REPLACE( get_String, "select", "", 1, -1, 1 )
   get_String = REPLACE( get_String, "insert", "", 1, -1, 1 )
   get_String = REPLACE( get_String, "update", "", 1, -1, 1 )
   get_String = REPLACE( get_String, "delete", "", 1, -1, 1 )
   get_String = REPLACE( get_String, "drop", "", 1, -1, 1 )
   get_String = REPLACE( get_String, "union", "", 1, -1, 1 )
   get_String = REPLACE( get_String, "and", "", 1, -1, 1 )
   get_String = REPLACE( get_String, "or", "", 1, -1, 1 )
   get_String = REPLACE( get_String, "1=1", "", 1, -1, 1 )

   get_String = REPLACE( get_String, "sp_", "", 1, -1, 1 )
   get_String = REPLACE( get_String, "xp_", "", 1, -1, 1 )
   get_String = REPLACE( get_String, "@variable", "", 1, -1, 1 )
   get_String = REPLACE( get_String, "@@variable", "", 1, -1, 1 )
   get_String = REPLACE( get_String, "exec", "", 1, -1, 1 )
   get_String = REPLACE( get_String, "sysobject", "", 1, -1, 1 )

   SQL_Injection = get_String

end function

 

 

 

 

Tags  asp, SQL Injection, 처리함수
  Relation Articles
[Languages-ASP] JSON 파일 생성 (2012-06-28 18:22:06)
[Languages-ASP] ASP 폼 Submit 시 input 태그 객체 배열 처리 (2012-06-05 11:36:06)
[Languages-ASP] ASP 날짜함수 (2012-05-31 11:34:19)
[Languages-ASP] SQL Injection 처리 함수(프로그램에서 처리) (2011-10-14 10:44:45)
[Languages-ASP] ASP 기본 연산자 (2011-09-22 14:33:28)
  Your Opinion
Member ID
150 letters
Copyright (C) SPATIUM. All rights reserved.
[SPATIUM]WebMaster Mail