moved tests to parent directory
parent
ab49e3eaf6
commit
4f6f83f383
|
@ -20,7 +20,7 @@ core
|
||||||
venv/*
|
venv/*
|
||||||
onionr/fs*
|
onionr/fs*
|
||||||
onionr/tmp/*
|
onionr/tmp/*
|
||||||
|
testdata/*
|
||||||
*.dll
|
*.dll
|
||||||
*.exe
|
*.exe
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ The following exploits are of particular interest:
|
||||||
* Discovering true server IPs when behind Tor/I2P (aside from Tor/i2p-level attacks)
|
* Discovering true server IPs when behind Tor/I2P (aside from Tor/i2p-level attacks)
|
||||||
* Easily discovering which nodes are the block creator
|
* Easily discovering which nodes are the block creator
|
||||||
* XSS, CSRF, clickjacking, DNS rebinding
|
* XSS, CSRF, clickjacking, DNS rebinding
|
||||||
* Timing attacks against the local http server ([see blog post](https://www.chaoswebs.net/blog/timebleed-breaking-privacy-with-a-simple-timing-attack.html))
|
* Timing attacks against the local http server that are exploitable from a browser ([see blog post](https://www.chaoswebs.net/blog/timebleed-breaking-privacy-with-a-simple-timing-attack.html))
|
||||||
* Discovering direct connection servers as a non participant.
|
* Discovering direct connection servers as a non participant.
|
||||||
* Cryptography/protocol issues
|
* Cryptography/protocol issues
|
||||||
* Denying nodes access to the network by segmenting them out with Sybil nodes
|
* Denying nodes access to the network by segmenting them out with Sybil nodes
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd onionr;
|
|
||||||
rm -rf testdata;
|
rm -rf testdata;
|
||||||
mkdir testdata;
|
mkdir testdata;
|
||||||
ran=0
|
ran=0
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import sys, os
|
import sys, os
|
||||||
sys.path.append(".")
|
sys.path.append(".")
|
||||||
|
sys.path.append("onionr/")
|
||||||
import unittest, uuid, hashlib
|
import unittest, uuid, hashlib
|
||||||
|
|
||||||
import onionrblocks
|
import onionrblocks
|
|
@ -1,6 +1,7 @@
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
import sys, os
|
import sys, os
|
||||||
sys.path.append(".")
|
sys.path.append(".")
|
||||||
|
sys.path.append("onionr/")
|
||||||
import unittest, uuid
|
import unittest, uuid
|
||||||
TEST_DIR = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'
|
TEST_DIR = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'
|
||||||
print("Test directory:", TEST_DIR)
|
print("Test directory:", TEST_DIR)
|
|
@ -1,6 +1,7 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import sys, os
|
import sys, os
|
||||||
sys.path.append(".")
|
sys.path.append(".")
|
||||||
|
sys.path.append("onionr/")
|
||||||
import unittest, uuid, sqlite3
|
import unittest, uuid, sqlite3
|
||||||
TEST_DIR = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'
|
TEST_DIR = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'
|
||||||
print("Test directory:", TEST_DIR)
|
print("Test directory:", TEST_DIR)
|
|
@ -1,5 +1,6 @@
|
||||||
import sys, os
|
import sys, os
|
||||||
sys.path.append(".")
|
sys.path.append(".")
|
||||||
|
sys.path.append("onionr/")
|
||||||
import unittest, uuid, json
|
import unittest, uuid, json
|
||||||
TEST_DIR = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'
|
TEST_DIR = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'
|
||||||
print("Test directory:", TEST_DIR)
|
print("Test directory:", TEST_DIR)
|
|
@ -1,6 +1,7 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import sys, os, random
|
import sys, os, random
|
||||||
sys.path.append(".")
|
sys.path.append(".")
|
||||||
|
sys.path.append("onionr/")
|
||||||
import unittest, uuid
|
import unittest, uuid
|
||||||
TEST_DIR_1 = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'
|
TEST_DIR_1 = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'
|
||||||
TEST_DIR_2 = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'
|
TEST_DIR_2 = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'
|
|
@ -1,6 +1,7 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import sys, os
|
import sys, os
|
||||||
sys.path.append(".")
|
sys.path.append(".")
|
||||||
|
sys.path.append("onionr/")
|
||||||
import unittest, uuid
|
import unittest, uuid
|
||||||
|
|
||||||
TEST_DIR = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'
|
TEST_DIR = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'
|
|
@ -1,6 +1,7 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import sys, os
|
import sys, os
|
||||||
sys.path.append(".")
|
sys.path.append(".")
|
||||||
|
sys.path.append("onionr/")
|
||||||
import unittest, uuid, hashlib, base64
|
import unittest, uuid, hashlib, base64
|
||||||
import nacl.exceptions
|
import nacl.exceptions
|
||||||
import nacl.signing, nacl.hash, nacl.encoding
|
import nacl.signing, nacl.hash, nacl.encoding
|
|
@ -1,6 +1,7 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import sys, os
|
import sys, os
|
||||||
sys.path.append(".")
|
sys.path.append(".")
|
||||||
|
sys.path.append("onionr/")
|
||||||
import unittest, uuid
|
import unittest, uuid
|
||||||
from utils import identifyhome
|
from utils import identifyhome
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import sys, os
|
import sys, os
|
||||||
sys.path.append(".")
|
sys.path.append(".")
|
||||||
|
sys.path.append("onionr/")
|
||||||
import unittest, uuid
|
import unittest, uuid
|
||||||
|
|
||||||
TEST_DIR = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'
|
TEST_DIR = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'
|
|
@ -1,6 +1,7 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import sys, os
|
import sys, os
|
||||||
sys.path.append(".")
|
sys.path.append(".")
|
||||||
|
sys.path.append("onionr/")
|
||||||
import unittest, uuid
|
import unittest, uuid
|
||||||
|
|
||||||
TEST_DIR = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'
|
TEST_DIR = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'
|
|
@ -1,6 +1,7 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import sys, os
|
import sys, os
|
||||||
sys.path.append(".")
|
sys.path.append(".")
|
||||||
|
sys.path.append("onionr/")
|
||||||
import unittest, uuid
|
import unittest, uuid
|
||||||
import json
|
import json
|
||||||
TEST_DIR = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'
|
TEST_DIR = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'
|
|
@ -1,5 +1,6 @@
|
||||||
import sys, os
|
import sys, os
|
||||||
sys.path.append(".")
|
sys.path.append(".")
|
||||||
|
sys.path.append("onionr/")
|
||||||
import unittest, uuid
|
import unittest, uuid
|
||||||
|
|
||||||
TEST_DIR = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'
|
TEST_DIR = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'
|
|
@ -1,6 +1,7 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import sys, os
|
import sys, os
|
||||||
sys.path.append(".")
|
sys.path.append(".")
|
||||||
|
sys.path.append("onionr/")
|
||||||
import unittest, uuid
|
import unittest, uuid
|
||||||
TEST_DIR = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'
|
TEST_DIR = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'
|
||||||
print("Test directory:", TEST_DIR)
|
print("Test directory:", TEST_DIR)
|
|
@ -1,6 +1,7 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import unittest, sys
|
import unittest, sys
|
||||||
sys.path.append(".")
|
sys.path.append(".")
|
||||||
|
sys.path.append("onionr/")
|
||||||
|
|
||||||
from utils import reconstructhash
|
from utils import reconstructhash
|
||||||
|
|
Loading…
Reference in New Issue