Skip to content

Instantly share code, notes, and snippets.

View seanmarpo's full-sized avatar

Sean Marpo seanmarpo

View GitHub Profile
https://example.com/user/sign-up/next?email=<base href="https://poc.smarpo.com">
@seanmarpo
seanmarpo / base.html
Created January 9, 2020 07:01
Description of how the <base> tag works
<img src="/img/logo.png">
<script src="/js/main.js></script>
<!--
With the addition of a <base> tag the src attributes above will look like:
https://evil.com/img/logo.png
https://evil.com/js/main.js
-->
<base href="https://evil.com">
@seanmarpo
seanmarpo / tester.js
Created July 10, 2018 20:01
Slack Does Not Respect Parse Value for Incoming Webhooks
// Incoming Webhook Example
// Slack ignores the "parse" value entirely in this case
const { IncomingWebhook } = require('@slack/client');
const url = 'WEBHOOKURL';
const webhook = new IncomingWebhook(url);
var text = '<https://google.com|Click Me Please!> https://google.com'
const message = {

Keybase proof

I hereby claim:

  • I am seanmarpo on github.
  • I am seanmarpo (https://keybase.io/seanmarpo) on keybase.
  • I have a public key ASA-7jaG1tucVe9k9bv8IheaF1W0r9OqbTZOQm9lV6T1KQo

To claim this, I am signing this object:

@seanmarpo
seanmarpo / DevAudit.out
Created April 28, 2017 21:47
DevAudit Output
PS C:\Users\seanm\Desktop\test\Templates-master\Source\MVC5\Boilerplate.Web.Mvc5.Sample> devaudit.exe nuget .
_____ _______ __ __ __
| \ .-----..--.--.| _ |.--.--..--| ||__|| |_
| -- || -__|| | || || | || _ || || _|
|_____/ |_____| \___/ |___|___||_____||_____||__||____|
v2.0.3.52
21:46:21<01> [AUDIT] [STATUS] Scanning NuGet packages.
Scanning NuGet packages...
@seanmarpo
seanmarpo / Add-Path.ps1
Created April 28, 2017 21:41
Powershell Path Addition
$env:Path += ";<full-path-to-devaudit-folder-here>"
<script type="text/javascript">
if (val) {
alert("The amount <%= Request.Form("itmAmount") %> is not valid");
}
</script>
<form action="post.asp" method="post">
<input type="text" name="title" value=<%= Request.Form("title") %>>
<textarea> <%= Request.Form("post") %> </textarea>
</form>
<form action="login.asp?<%= Request.Querystring("redirect") %>" method="post">
<input type="text" name="username">
<input type="password" name="password">
</form>