- Enter bios/uefi setup, enter secure boot setup
- Enable microsoft CAs
- Enable custom key management
- Delete existing database
- Boot and Root disk setup
fdisk /dev/sda g # efi partition
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
#!env python3 | |
# -*- coding: utf-8 -*- | |
import sys | |
import string | |
import logging | |
from random import randint | |
from pprint import pprint | |
def get_random(val, max): |
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
build: | |
gcc -o bin main.c pipe.c patch.c | |
clean: | |
rm -f bin |
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
#![feature(asm)] | |
fn calc() -> usize { | |
let mut a: usize = 0; | |
unsafe { | |
asm!(/* Instructions: for(i=10; 0<i; i--){ a+=i } */ | |
"mov rcx, 10\n\t" /* rcx = 10 - i - counter */ | |
"xor rax, rax\n\t" /* rax = 0 - a - storage */ | |
"loop:\n\t" /* label */ | |
"add rax, rcx\n\t" /* rax+=rcx */ |
Basic setup taken from The Path to Rust on the Web
- Installing managed tools src src2
rustup target add wasm32-unknown-emscripten
brew install emscripten
brew install clang nodejs git
- for llvm
- Running
cargo build --target=wasm32-unknown-emscripten
claims to work but no wasm or js are createdemcc -v
complains about system llvm not having wasm target
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
import socket | |
class my_sock(): | |
def __init__(self): | |
self.host = "" # hostname\IP | |
self.port = 0 # port | |
self.af_inet = socket.AF_INET # sock type | |
self.proto = socket.SOCK_STREAM # sock proto |
I hereby claim:
- I am 40byteCTF on github.
- I am 40bytectf (https://keybase.io/40bytectf) on keybase.
- I have a public key whose fingerprint is 425B B1C1 1FCD D272 C54C 526A 6AB5 74BA 68A8 2A54
To claim this, I am signing this object:
I hereby claim:
- I am commiebstrd on github.
- I am commiebstrd (https://keybase.io/commiebstrd) on keybase.
- I have a public key whose fingerprint is CB35 C786 56F1 71B7 7CEB 8D24 6E2F 7CA1 6E1C 8F68
To claim this, I am signing this object: