From 87e1fa48e70ff7b69d9cd96f060d028d12d13f05 Mon Sep 17 00:00:00 2001 From: Kevin F Date: Mon, 5 Dec 2022 20:13:19 +0000 Subject: [PATCH] Change API urls, add README, and increase user ID entropy --- README.md | 7 +++++++ appconfig.py | 15 ++++++++------- monero-sms.py | 2 +- 3 files changed, 16 insertions(+), 8 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..18d62a6 --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# MoneroSMS.com CLI + +This is a command line interface for MoneroSMS.com. + +Requires python3.10+ and the requests library. + +See monerosms.com for more info. Contact me privately at admin@monerosms.com to report security bugs or for account support. \ No newline at end of file diff --git a/appconfig.py b/appconfig.py index 625c8a6..161299b 100644 --- a/appconfig.py +++ b/appconfig.py @@ -2,16 +2,17 @@ import os import sys from base64 import urlsafe_b64encode -VERSION = '0.2.0' +VERSION = '1.0.0' -base_url = "https://api.sms.voidnet.tech/" +base_url = "https://api.monerosms.com/" proxies = {} if os.getenv("MONERO_SMS_TOR", None): - base_url = "http://qgwz46kabdhwv6l7zhfihhe7h5ep2nbo4mvhw74lcnsxk2mkhh5lpyqd.onion/" - proxies = { - 'http': f'socks4a://127.0.0.1:{os.getenv("MONERO_SMS_TOR")}', - 'https': f'socks4a://127.0.0.1:{os.getenv("MONERO_SMS_TOR")}' - } + base_url = "http://api.xmr4smsoncunkfgfjr6xmxl57afsmuu6rg2bwuysbgg4wdtoawamwxad.onion/" + if not os.getenv("MONERO_SMS_TRANSPARENT_TOR", None): + proxies = { + 'http': f'socks4a://127.0.0.1:{os.getenv("MONERO_SMS_TOR")}', + 'https': f'socks4a://127.0.0.1:{os.getenv("MONERO_SMS_TOR")}' + } user = os.getenv('MONERO_SMS_TOKEN') diff --git a/monero-sms.py b/monero-sms.py index c1d3e11..8828b44 100755 --- a/monero-sms.py +++ b/monero-sms.py @@ -59,7 +59,7 @@ def menu(): print("You are not permitted to use the service unless you agree.") return None with open(auth_file, 'wb') as f: - f.write(urlsafe_b64encode(os.urandom(16)).removesuffix(b'==')) + f.write(urlsafe_b64encode(os.urandom(32)).replace('=', '')) print(f'Account number generated {auth_file}') print('Back it up to keep access to your account') return None