Change API urls, add README, and increase user ID entropy
This commit is contained in:
parent
dd3c280965
commit
87e1fa48e7
7
README.md
Normal file
7
README.md
Normal file
@ -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.
|
15
appconfig.py
15
appconfig.py
@ -2,16 +2,17 @@ import os
|
|||||||
import sys
|
import sys
|
||||||
from base64 import urlsafe_b64encode
|
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 = {}
|
proxies = {}
|
||||||
if os.getenv("MONERO_SMS_TOR", None):
|
if os.getenv("MONERO_SMS_TOR", None):
|
||||||
base_url = "http://qgwz46kabdhwv6l7zhfihhe7h5ep2nbo4mvhw74lcnsxk2mkhh5lpyqd.onion/"
|
base_url = "http://api.xmr4smsoncunkfgfjr6xmxl57afsmuu6rg2bwuysbgg4wdtoawamwxad.onion/"
|
||||||
proxies = {
|
if not os.getenv("MONERO_SMS_TRANSPARENT_TOR", None):
|
||||||
'http': f'socks4a://127.0.0.1:{os.getenv("MONERO_SMS_TOR")}',
|
proxies = {
|
||||||
'https': f'socks4a://127.0.0.1:{os.getenv("MONERO_SMS_TOR")}'
|
'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')
|
user = os.getenv('MONERO_SMS_TOKEN')
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@ def menu():
|
|||||||
print("You are not permitted to use the service unless you agree.")
|
print("You are not permitted to use the service unless you agree.")
|
||||||
return None
|
return None
|
||||||
with open(auth_file, 'wb') as f:
|
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(f'Account number generated {auth_file}')
|
||||||
print('Back it up to keep access to your account')
|
print('Back it up to keep access to your account')
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user