Skip to content

Instantly share code, notes, and snippets.

View megumish's full-sized avatar
🐕
inu~

megumish megumish

🐕
inu~
View GitHub Profile
bs = "0101010001010111010101010001110101010011110101010101000101010001010101000001011110101010000101101001010000101010101010101010100001111110101010100010101010100010111000011110100000101000101000100001010100001101010101011101010111110101110100100000001010101110100100100101010000101010"
cs = ''.join([chr(int(bs[i*8:(i+1)*8], 2)) for i in range(len(bs) // 8)])
print(cs)
@megumish
megumish / example_exploit.rs
Created October 20, 2019 08:30
SECCON 2019 Online MAL partial writeup
extern crate mal;
fn nyan() -> Box<[u64; 20]>{
std::thread::sleep_ms(1);
Box::new([0x0u64; 20])
}
fn nyan2(_: Box<[u64; 16]>){
std::thread::sleep_ms(1);
}
from pwn import *
import re
# coding=utf-8
context.log_level = "error"
i = 6380
flag = ""
#conn = process("./wareki")
conn = remote("wareki-o-reiwa.seccon.jp", 36294)
@megumish
megumish / Cargo.toml
Created December 21, 2018 15:49
memcpy in rust
[package]
name = "memcpy"
version = "0.1.0"
authors = ["Keishi Kawada <megumish@exploitouri.st>"]
edition = "2018"
[dependencies]
failure = "0.1.3"
@megumish
megumish / keybase
Created October 30, 2018 03:33
keybase
### Keybase proof
I hereby claim:
* I am megumish on github.
* I am megumish (https://keybase.io/megumish) on keybase.
* I have a public key ASBzyaNTcjHcP0dC3Pl1eHgWFEKBnPWOa-Nrv3LeEfvw8wo
To claim this, I am signing this object:
@megumish
megumish / simple_client.rs
Created March 13, 2018 17:18
tokio muzui
#![deny(missing_docs)]
use tokio;
use tokio::prelude::*;
use tokio::net::{TcpStream, ConnectFuture};
use std::net::ToSocketAddrs;
use std::{thread, time};
use futures::prelude::*;
use futures::future::FutureResult;
<html>
<head>
<meta charset="utf-8"/>
</head>
<body>
<h1> I'm the Exploitourist. </h1>
<p>My awes0me websites</p>
<ul>
<li>
<a href="http://diary.megumi.sh" />
@megumish
megumish / Source.cpp
Created May 29, 2016 15:27
Generate bmp image with C.
//中京と書いてあるbmp画像を生成するプログラムです。
#include<stdio.h>
#include"bmpsetting.h"
int main(void){
FILE *BMPfp;
errno_t error;
if (error = fopen_s(&BMPfp, "test.bmp", "wb") != 0)