Skip to content

Instantly share code, notes, and snippets.

View kozmic's full-sized avatar
🔑

Ståle Pettersen kozmic

🔑
View GitHub Profile
048849191e77f64b6cdc55e6eba6676d4204e61b6c9531756c7f723407f21eab85d16d01e34741361ac5e96223861b6fd8b7f5fa5844653b21bafe747d0eb9217c
@kozmic
kozmic / all.txt
Created July 18, 2017 19:27 — forked from jhaddix/all.txt
dnsall
This file has been truncated, but you can view the full file.
@
*
0
00
0-0
000
0000
00000
000000
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.HashSet;
import java.util.Set;
// billion-laughs-style DoS for java serialization
public class SerialDOS {
@kozmic
kozmic / index.html
Created October 22, 2013 15:06
AngularJS ngName-ish. The <div> wrapping the input is an issue in Angular 1.2.x
<!doctype html>
<html>
<body>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0-rc.3/angular.min.js" ></script>
<script>
var myApp = angular.module('myApp',[]);
myApp.controller('TestCtrl', function($scope) {
$scope.data = {}
});
@kozmic
kozmic / index.html
Created October 22, 2013 13:24
Angular attribute example
<!doctype html>
<html>
<body>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0-rc.3/angular.min.js" ></script>
<script>
var myApp = angular.module('myApp',[]);
myApp.controller('TestCtrl', function($scope) {
$scope.data = {}
});