Instantly share code, notes, and snippets.

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/*","*://0.0.0.0/*"]
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>
View .gitignore
body.aux
body.bbl
body.bcf
body.blg
body.dvi
body.fdb_latexmk
body.fls
body.log
body.out
body.pdf
View Main.hs
{-# LANGUAGE FlexibleContexts #-}
module Main where
import Control.Monad (replicateM)
import Graphics.Rendering.Chart.Backend.Cairo
import Graphics.Rendering.Chart.Easy hiding ((<.>))
import Graphics.Rendering.Chart.Gtk
import Numeric.GSL.Minimization
import Numeric.LinearAlgebra