Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Anti-censorship
emma
Commits
8b3ab260
Unverified
Commit
8b3ab260
authored
Apr 24, 2020
by
Philipp Winter
Browse files
Test a handful of guard and exit relays.
parent
a23c0219
Changes
2
Hide whitespace changes
Inline
Side-by-side
emma.go
View file @
8b3ab260
...
...
@@ -41,6 +41,15 @@ func testDirAuths() {
}
}
func
testRelays
()
{
l
.
Println
(
"Testing relays."
)
for
_
,
addrTuple
:=
range
relays
{
r
:=
IsTCPPortReachable
(
addrTuple
)
l
.
Print
(
r
.
String
())
}
}
func
main
()
{
log
.
Println
(
"Starting analysis."
)
...
...
@@ -63,6 +72,7 @@ func main() {
testDefaultBridges
()
testWebsites
()
testDirAuths
()
testRelays
()
if
_
,
err
:=
f
.
WriteString
(
buf
.
String
());
err
!=
nil
{
os
.
Remove
(
f
.
Name
())
...
...
resources.go
View file @
8b3ab260
...
...
@@ -42,6 +42,17 @@ var dirAuths = []string{
"204.13.164.118:80"
,
// bastet
}
// Guard and exit relays. See
// <https://nusenu.github.io/OrNetStats/> to pick some.
var
relays
=
[]
string
{
"193.11.166.196:443"
,
// Karlstad1 (Guard)
"81.7.18.7:9001"
,
// Freebird32 (Guard)
"91.143.80.147:995"
,
// Ichotolot63 (Guard)
"162.247.74.7:443"
,
// CalyxInstitute01 (Exit)
"62.102.148.68:443"
,
// weizenbaum (Exit)
"185.220.100.253:9000"
,
// F3Netze (Exit)
}
var
domains
=
map
[
string
]
map
[
string
]
bool
{
"www.torproject.org"
:
map
[
string
]
bool
{
"116.202.120.166"
:
true
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment