Skip to content

Instantly share code, notes, and snippets.

section .text
global _start
_start:
jmp truco
inicio:
pop ESI
xor EAX, EAX
mov [ESI + 7], AL
mov AL, 0Bh
.code32
.section .text
.globl _start
_start:
jmp truco
inicio:
pop %esi
xorl %eax, %eax
movb %al, 0x07(%esi)
@RdlP
RdlP / name.c
Created October 19, 2016 17:40
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
void func(char *arg)
{
char name[32];
strcpy(name, arg);
printf("Bienvenido %s\n", name);
}
@RdlP
RdlP / mult3x3
Last active July 10, 2016 19:11
3E 00 06 03 0E 03 80 0D C2 06 01 06 00 00 00 00
57 01 00 02 3E 45 02 03 3E 6C 02 03 3E 20 02 03
3E 72 02 03 3E 65 02 03 3E 73 02 03 3E 75 02 03
3E 6C 02 03 3E 74 02 03 3E 61 02 03 3E 64 02 03
3E 6F 02 03 3E 20 02 03 3E 65 02 03 3E 73 02 03
3E 3A 02 03 3E 20 02 03 7A C6 30 02 C5 D1
memory[0] = 0x06;
memory[1] = 0x00;
memory[2] = 0x0E;
memory[3] = 0x00;
memory[4] = 0x16;
memory[5] = 0x00;
memory[6] = 0x1E;
memory[7] = 0x00;
memory[8] = 0x26;
memory[9] = 0x00;
void CPU::step()
{
BYTE instruction = fetch();
registers.pc++;
decode(instruction);
}
BYTE CPU::fetch()
{
BYTE instruction = memory->readByte(registers.pc);
package es.angelluis.test.volley;
import com.android.volley.toolbox.HurlStack;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.security.KeyManagementException;
import java.security.KeyStore;
public static String BASE_URI = "https://192.168.1.109/Test/public/index.php/";
//public static String BASE_URI = "http://192.168.1.109/Test/public/index.php/";
public static String API_LOGIN = BASE_URI + "api/v1/login";
public static String GET_RESOURCES = BASE_URI + "resources";
public static String GET_RESOURCE = BASE_URI + "resources/?";
public static String GET_SUB_RESOURCES = BASE_URI + "resources/?/subresources";
public static String GET_SUB_RESOURCE = BASE_URI + "resources/?/subresources/?";
<?php
Route::get("/test", function(){
return "...";
});
?>
<Ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/json
</Ifmodule>