sdstatus

command module
v0.0.0-...-40030dd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

README

sdstatus

This is a PoC tool to check the status of SecureDrop instances.

All the addresses are mentioned in the sdonion.txt file, one address each line. I have a copy of the addresses from the SecureDrop directory to test.

System requirement

The tool assumes that Tor is running with a SOCKS proxy at port 9050 in the system.

The dependencies are managed using dep tool.

How to build?

Checkout the git repo in your $GOPATH, and then simple go build will do the work for you.

Output format

[
	{
		"Info": {
			"sd_version": "0.6",
			"gpg_fpr": "3392A1CE68FE779A95FCAF04EDA0FB6F53FA9093"
		},
		"Url": "m4hynbhhctdk27jr.onion",
		"Available": true
	},
	{
		"Info": {
			"sd_version": "0.6",
			"gpg_fpr": "7C24A77EED0D50838E3315BD7A38590B2996F0C2"
		},
		"Url": "ftugftwajmgsmoau.onion",
		"Available": true
	}
]

Currently by default the tool prints JSON output on the STDOUT. It is a list of dictionaries telling if the site is available, and the SecureDrop version and also the journalist GPG key fingerprint.

If you pass --csv flag to the tool, then it will print output in CSV format. First the Onion address, then SecureDrop version, and then the journalist GPG key fingerprint. If only the Onion address is printed along with ,,, it means those instances could not be reached (maybe they down).

Remember that the CSV formatted output will be printed on the STDOUT as the network calls return the results, in an asynchronous manner. For the JSON output format, the tool waits for all of the network calls to return the results, and then prints them on the STDOUT at the end.

License: GPLv3+

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL