Skip to content

Instantly share code, notes, and snippets.

💭
(🌸╹◡╹)ノ

Kenta Sato Tosainu

View GitHub Profile
View main.rs
use std::f32;
use num_complex::Complex;
// http://linas.org/art-gallery/escape/smooth.html
fn smooth_iter(i: u32, z: Complex<f32>) -> f32 {
i as f32 - z.norm().ln().ln() / 2.0f32.ln()
}
// https://github.com/Nuke928/mandelbrot-opengl/blob/039fe9213c01992584f7b391da49bdeeb8d259e2/shader.glsl#L10-L16
View 98-systemd-boot.hook
[Trigger]
Type = Package
Operation = Upgrade
Target = systemd
[Action]
Description = Updating systemd-boot
When = PostTransaction
Exec = /usr/bin/sh -c '/usr/bin/bootctl update && for f in $(/usr/bin/bootctl -p)/EFI/{BOOT/BOOTX64.EFI,systemd/systemd-bootx64.efi}; do /usr/bin/sbsign --key /root/secure-boot/db.key --cert /root/secure-boot/db.crt --output "$f" "$f"; done'
View Kbuild
EXTRA_CFLAGS = -Wall -g
obj-m = hello.o
View exploit.hs
{-# LANGUAGE OverloadedStrings #-}
-- Google CTF 2018 Quals: sftp
import Control.Monad
import Control.Monad.IO.Class (liftIO)
import Data.Bits
import qualified Data.ByteString.Char8 as BS
import Data.List
import Data.Maybe
View .cvimrc
let blacklists = ["https://inbox.google.com/*","https://tweetdeck.twitter.com/*","https://*.slack.com/*","http://0.0.0.0/*","http://[::]/*"]
View exploit.hs
{-# LANGUAGE OverloadedStrings #-}
-- ASIS CTF Quals 2018: FCascasde
import Control.Monad
import Control.Monad.IO.Class (liftIO)
import Data.Bits
import qualified Data.ByteString.Char8 as BS
import Data.Maybe
import Data.Monoid ((<>))
View exploit.hs
{-# LANGUAGE OverloadedStrings #-}
-- ASIS CTF Quals 2018: Cat
import Control.Monad
import Control.Monad.IO.Class (liftIO)
import Data.Bits
import qualified Data.ByteString.Char8 as BS
import Data.Maybe
import Data.Monoid ((<>))
View exploit.hs
{-# LANGUAGE OverloadedStrings #-}
-- CSAW CTF Qualification Round 2012: 聊天
-- http://shell-storm.org/repo/CTF/CSAW-2012/Exploitation/300/
import Control.Monad
import Data.Bits
import qualified Data.ByteString.Char8 as BS
import Data.Maybe
import Data.Monoid ((<>))
View PKGBUILD
# Maintainer: Tosainu <tosainu.maple@gmail.com>
## Mozc compile option
_buildtype=Release
#_buildtype=Debug
_mozcrev=afb03ddfe72dde4cf2409863a3bfea160f7a66d8
_mozcver=2.23.2815.102
_utdicver=20171008
_zipcoderel=201805
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>にゃーん</title>
</head>
<body>
<p id="message-box"></p>
You can’t perform that action at this time.