Exploit database

GH-2bd581c0b0c43b5368c3d361b9c6ce91

filosottile/heartbleed

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2014-0160

106 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files2

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

server/_third_party/github.com/smugmug/godynamo/types/itemcollectionmetrics/itemcollectionmetrics_test.go

Go · 599 bytes
package itemcollectionmetrics

import (
	"encoding/json"
	"fmt"
	"testing"
)

func TestExpectedMarshal(t *testing.T) {
	s := []string{
		`{"ItemCollectionKey":{"AttributeValue":{"S":"a string"}},"SizeEstimateRangeGB":[0,10]}`,
	}
	for _, v := range s {
		var a ItemCollectionMetrics
		um_err := json.Unmarshal([]byte(v), &a)
		if um_err != nil {
			_ = fmt.Sprintf("%v\n", um_err)
			t.Errorf("cannot unmarshal\n")
		}

		json, jerr := json.Marshal(a)
		if jerr != nil {
			_ = fmt.Sprintf("%v\n", jerr)
			t.Errorf("cannot marshal\n")
		}
		_ = fmt.Sprintf("IN:%v, OUT:%v\n", v, string(json))
	}
}