This file contains hidden or 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/bash | |
rm -rf /home/yen3/ubuntu.qcow2 | |
qemu-img create -f qcow2 /home/yen3/ubuntu.qcow2 10G | |
virsh undefine ubuntu1604arm64 --nvram | |
install_from_localtion() { | |
virt-install -n ubuntu1604arm64 --memory 1024 --arch aarch64 --vcpus 1 \ | |
--disk /home/yen3/ubuntu.qcow2,device=disk,bus=virtio \ |
This file contains hidden or 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 pwn import * | |
local = False | |
binary = ELF("./main", checksec = False) | |
libc = ELF("./libc-2.27.so", checksec = False) | |
def menu(n): | |
io.recvuntil("> ") | |
io.sendline(str(n)) |
This file contains hidden or 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
/* | |
* | |
* Author: @javierprtd | |
* Date : 21-05-2023 | |
* Kernel: 4.9.220 | |
* | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> |
This file contains hidden or 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
/* | |
* | |
* Author: @javierprtd | |
* Date : 22-06-2023 | |
* Kernel: 5.10.77 | |
* Bug : https://lkml.org/lkml/2019/12/5/814 | |
* Review: This bug has never been in the official kernel | |
* Post : https://soez.github.io/posts/no-cve-for-this.-It-has-never-been-in-the-official-kernel | |
* | |
*/ |
This file contains hidden or 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
/* | |
* | |
* Author: @javierprtd | |
* Date : 28-09-2023 | |
* Kernel: 6.2.0 | |
* | |
*/ | |
#define _GNU_SOURCE | |
#include <stdio.h> |
This file contains hidden or 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
#define MEMSTART 0x80000000UL | |
#define VIRTUAL_KERNEL_START 0xffffffc008000000UL | |
#define LINEAR_MAP_START 0xffffff8000000000UL | |
bool is_lm_addr(uint64_t kaddr) | |
{ | |
return (kaddr & (VIRTUAL_KERNEL_START - (0x8 << (6 * 4)))) == LINEAR_MAP_START; | |
} | |
uint64_t virt_to_phys(uint64_t kaddr) |
This file contains hidden or 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
.section .text | |
.global _start | |
_start: | |
// prologo | |
sub sp, sp, #0xc0 | |
stp x29, x30, [sp, #0x60] | |
stp x28, x27, [sp, #0x70] | |
stp x26, x25, [sp, #0x80] | |
stp x24, x23, [sp, #0x90] |
This file contains hidden or 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
/* | |
* | |
* Author: @javierprtd | |
* Date : 01-08-2024 | |
* Kernel: 5.10.177 | |
* Samsung A25 NPU: CVE-2022-22265 (bug patched - reintroduced) | |
* | |
*/ | |
// echo 1 > /sys/module/memlogger/holders/npu/drivers/platform:exynos-npu/npu_exynos/npu_err_in_dmesg |
OlderNewer