Skip to content

Instantly share code, notes, and snippets.

View mattconsto's full-sized avatar
👋

Matthew Consterdine mattconsto

👋
View GitHub Profile
Shader "Trolltunga/LowPolyCollisionRadialWaves 2.0" {
Properties {
_MainTex("Diffuse (RGB)", 2D) = "white" {}
_Color("Color", Color) = (1,0,0,1)
_SpecColor("Specular Material Color", Color) = (1,1,1,1)
_Shininess("Shininess", Float) = 1.0
_WaveLength("Wave length", Float) = 0.5
_WaveHeight("Wave height", Float) = 0.5
_WaveSpeed("Wave speed", Float) = 1.0
_RandomHeight("Random height", Float) = 0.5
<?php
// php-reverse-shell - A Reverse Shell implementation in PHP
// Copyright (C) 2007 pentestmonkey@pentestmonkey.net
//
// This tool may be used for legal purposes only. Users take full responsibility
// for any actions performed using this tool. The author accepts no liability
// for damage caused by this tool. If these terms are not acceptable to you, then
// do not use this tool.
//
// In all other respects the GPL version 2 applies:
// http://www.geeksforgeeks.org/check-if-two-given-line-segments-intersect/
// Given three colinear points p, q, r, the function checks if
// point q lies on line segment 'pr'
function onSegment(p, q, r) {
return q.x <= Math.max(p.x, r.x) && q.x >= Math.min(p.x, r.x) && q.y <= Math.max(p.y, r.y) && q.y >= Math.min(p.y, r.y);
}
// To find orientation of ordered triplet (p, q, r).
// The function returns following values
@mattconsto
mattconsto / findpassword.java
Created October 19, 2016 00:36
Rob the SQL Injection
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLEncoder;
import javax.net.ssl.HttpsURLConnection;
public class FindPassword {
public static void main(String[] args) {
import java.math.BigInteger;
/**
* Triangle Square Finder:
* https://www.youtube.com/watch?v=Gh8h8MJFFdI
*
* Example Output:
* 0=□0=△0
* 1=□1=△1
* 36=□6=△8