This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public ActionResult Register(){ | |
string user_name = Request.Form["regname"]; | |
string user_pwd = Request.Form["regpass"]; | |
string user_repwd = Request.Form["reregpass"]; | |
if (user_name.Trim() == "" || user_pwd.Trim() == "") | |
{ | |
return Redirect("/"); | |
} | |
if(user_pwd != user_repwd) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
namespace ChildChat.Models | |
{ | |
public class Conversation | |
{ | |
public Conversation() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using System.Data.Entity; | |
namespace ChildChat.Models | |
{ | |
public class ChatContext:DbContext | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--Vulnerbility注入点 <label><h4> </h4></label> --> | |
<!--input输入 alert(1) --> | |
<label><h4>alert(1)</h4></label> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--Vulnerbility注入点:<label><h4><input type="text" name="test" value="1"> --> | |
<!--Inject输入: 1" onfocus="alert(1)" autofocus="true" --> | |
<label><h4><input type="text" name="test" value="1" onfocus="alert(1)" autofocus="true"></h4></label> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--Vulnerbility漏洞: <label><h4><a href="javascript:2333\" onfocus=\"alert(1)\" autofocus=\"true">不能闭合引号</a></h4></label> --> | |
<!--Injection输入:alert(1)--> | |
<label><h4><a href="javascript:alert(1)">不能闭合引号</a></h4></label> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--Vulnerbility注入点: <label><h4><input type="text" name="test" value="" 2333" > </h4></label> --> | |
<!--Inject输入: onfocus="alert(1)" autofocus="true" --> | |
<label><h4><input type="text" name="test" value="" onfocus="alert(1)" autofocus="true" > </h4></label> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--Vulnerbility注入点: | |
<label><h4> | |
<script type="text/javascript"> | |
var you = 'iloveyou'; | |
document.write('2333''+','+you); | |
</script> | |
</h4></label> | |
--> | |
<!--Inject输入: 233');alert(1);//'+','+you); --> | |
<label><h4> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--Vulnerbility注入点: 输入的是2333"alert(1) | |
<label><h4 id="twoH4"> | |
<script type="text/javascript"> | |
var two = document.getElementById('twoH4'); | |
var two_value = "2333alert(1)"; | |
two.innerHTML=two_value; | |
</script> | |
</h4></label> | |
--> | |
<!--Inject输入: </script> <script>alert(1)</script>--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <algorithm> | |
bool Cmp(string A, string B){ | |
return A+B<B+A; | |
} | |
int main(){ | |
…… | |
sort(str,str+len,Cmp); | |
…… |