fixed housekeeping being broken
This commit is contained in:
parent
c0def6fb7e
commit
665cb0c732
12 changed files with 62 additions and 29 deletions
|
@ -11,7 +11,7 @@ from onionrutils import basicrequests
|
|||
def random_tor_generator():
|
||||
return base64.b32encode(secrets.token_bytes(35)).decode().replace("=", "").lower() + ".onion"
|
||||
|
||||
node = input("Enter node to attack. Note that you must legally use your own, and even that might lead to issues")
|
||||
node = input("Enter node to attack. Note that you legally must use your own, and even that might lead to technical or legal issues")
|
||||
assert stringvalidators.validate_transport(node)
|
||||
|
||||
count = int(input("Attack amount: "))
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
# Please don't run this script on the real Onionr network. You wouldn't do anything but be annoying
|
||||
|
||||
print("Please don't run this script on the real Onionr network. You wouldn't do anything but be annoying, and possibly violate law")
|
||||
print("Please don't run this script on Onionr networks that include more than you. You wouldn't do anything but be annoying, and probably violate law")
|
||||
|
||||
import sys
|
||||
import os
|
||||
|
@ -14,8 +14,17 @@ import onionrblocks
|
|||
|
||||
|
||||
amount = int(input("Number of blocks:"))
|
||||
expire = input("Expire in seconds:")
|
||||
|
||||
if not expire:
|
||||
expire = ""
|
||||
else:
|
||||
expire = int(expire)
|
||||
|
||||
for i in range(amount):
|
||||
onionrblocks.insert(data=os.urandom(32))
|
||||
if expire:
|
||||
print(onionrblocks.insert(data=os.urandom(32), expire=expire))
|
||||
else:
|
||||
print(onionrblocks.insert(data=os.urandom(32)))
|
||||
print(i, "done")
|
||||
|
||||
|
|
|
@ -18,6 +18,7 @@ conf['general']['display_header'] = True
|
|||
conf['onboarding']['done'] = False
|
||||
conf['general']['minimum_block_pow'] = 5
|
||||
conf['general']['minimum_send_pow'] = 5
|
||||
conf['general']['max_block_age'] = 2678400
|
||||
conf['log']['file']['remove_on_exit'] = True
|
||||
|
||||
json.dump(conf, open('static-data/default_config.json', 'w'), sort_keys=True, indent=4)
|
||||
|
|
|
@ -6,6 +6,8 @@ import json
|
|||
|
||||
conf = json.load(open('static-data/default_config.json', 'r'))
|
||||
|
||||
block_pow = int(input("Block POW level:"))
|
||||
|
||||
if input("Reuse Tor? y/n:").lower() == 'y':
|
||||
conf['tor']['use_existing_tor'] = True
|
||||
conf['tor']['existing_control_port'] = int(input("Enter existing control port:"))
|
||||
|
@ -16,8 +18,8 @@ conf['general']['dev_mode'] = True
|
|||
conf['general']['insert_deniable_blocks'] = False
|
||||
conf['general']['random_bind_ip'] = False
|
||||
conf['onboarding']['done'] = True
|
||||
conf['general']['minimum_block_pow'] = 4
|
||||
conf['general']['minimum_send_pow'] = 4
|
||||
conf['general']['minimum_block_pow'] = block_pow
|
||||
conf['general']['minimum_send_pow'] = block_pow
|
||||
conf['log']['file']['remove_on_exit'] = False
|
||||
|
||||
json.dump(conf, open('static-data/default_config.json', 'w'), sort_keys=True, indent=4)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue