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
namespace OWASP.Models.Xss.ReflectedXss | |
{ | |
public class RXSS_S3_LoginRequest | |
{ | |
public string RXSS_S3_LoginRequest_Email { get; set; } | |
public string RXSS_S3_LoginRequest_Password { get; set; } | |
} | |
} |
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 static string path = Directory.GetParent(Directory.GetCurrentDirectory()).Parent.FullName; | |
[TestMethod] | |
public void CreateContextWormConfig() | |
{ | |
WORM_Config_Creator.SaveWormConfig<University>(path, "Server = .; Trusted_Connection = True;", DBType_Enum.MSSQL, "bhdryrdm"); | |
} |
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
<?xml version="1.0" encoding="utf-8"?> | |
<Databases> | |
<MYSQL_University id="MYSQL_University"> | |
<ConnectionString value="Server = localhost; Port = 3306; Uid=root; Pwd = 123qwe;" /> | |
<Provider value="MySql.Data.MySqlClient" /> | |
<UpdatedAuthor value="bhdryrdm" /> | |
<Version value="1" /> | |
</MYSQL_University> | |
<University id="University"> | |
<ConnectionString value="Server = .; Trusted_Connection = True;" /> |
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
[TestMethod] | |
public void Insert() | |
{ | |
University university = new University(); | |
university.Department.Insert(new Department { DepartmentName = "Computer Engineering" }); | |
university.PushToDB(); | |
} |
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
[TestMethod] | |
public void Update() | |
{ | |
University university = new University(); | |
Department willBeUpdatingDepartment = university.Department.FirstOrDefault(x => x.DepartmentID == 1); | |
willBeUpdatingDepartment.DepartmentName = "UpdatingDepartment"; | |
university.Department.Update(willBeUpdatingDepartment); | |
university.PushToDB(); | |
} |
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
[TestMethod] | |
public void Delete() | |
{ | |
University university = new University(); | |
Department willBeDeletedDepartment = university.Department.FirstOrDefault(x => x.DepartmentID == 1); | |
university.Department.Delete(willBeDeletedDepartment); | |
university.PushToDB(); | |
} |
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
[TestMethod] | |
public void ToList() | |
{ | |
University university = new University(); | |
List<Department> departmentList = university.Department.ToList(); | |
} |
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
[TestMethod] | |
public void ToPaginateList() | |
{ | |
University university = new University(); | |
List<Department> departmentList = university.Department.ToPaginateList(null, "DepartmentID", 8, 23); | |
} |
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
/* | |
* Bu trigger kullanıcı tablosuna 5 kayıttan sonra 5 kayıt arasındaki 3.kullanıcıyı silmektedir. | |
* Yeni eklenen kullanıcı 5. kayıt olarak eklenmektedir. | |
*/ | |
IF (SELECT Count(UserID) FROM XSS_User) > 5 | |
Delete FROM XSS_User | |
Where UserID IN ( | |
SELECT TOP 1 UserID | |
FROM ( | |
SELECT UserID, ROW_NUMBER() |
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 DevF_LABS.Business.BusinessServices; | |
using DevF_LABS.Helper; | |
using DevF_LABS.RequestResponse; | |
using DevF_LABS.RequestResponse.XSS.ReflectedXSS; | |
using DevF_LABS.RequestResponse.XSS.StoredXSS; | |
using System; | |
using System.Linq; | |
using System.Web; | |
using System.Web.Mvc; | |
using System.Web.Security; |
OlderNewer