Skip to content

Commit

Permalink
v0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
balestek committed Apr 25, 2024
1 parent 5a66c6f commit e5e588c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion medor/__about__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.1b10"
__version__ = "0.0.1"
5 changes: 2 additions & 3 deletions medor/utils/bone.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,6 @@ def ping_back(self, xmlrpc_url: str, post_url: str, webhook_url: str) -> None:
f" It might be protected or offline."
)
exit()

except httpx.HTTPError as e:
spinner.stop_and_persist(
symbol=failure,
Expand Down Expand Up @@ -319,7 +318,7 @@ def get_ip(self, token: str, domain, site_url) -> None:
if not res.json()["ip"]:
spinner.stop_and_persist(
symbol=failure,
text=f" {Fore.RED}No IP retrieved for {domain}.\n"
text=f"{Fore.RED} No IP retrieved for {domain}.\n"
f" Xmlrpc.php might be protected.",
)
exit()
Expand All @@ -328,7 +327,7 @@ def get_ip(self, token: str, domain, site_url) -> None:
except:
spinner.stop_and_persist(
symbol=failure,
text=f" {Fore.RED}No IP retrieved for {domain}.\n"
text=f"{Fore.RED} No IP retrieved for {domain}.\n"
f" Xmlrpc.php might be protected.",
)
exit()
Expand Down
2 changes: 0 additions & 2 deletions medor/utils/net.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
# coding: utf-8
import importlib
import os
from pathlib import Path
from random import choice
from re import match

import httpx
from bs4 import BeautifulSoup as bs
from colorama import Fore
from dotenv import load_dotenv
from validators import url as valid_url, validator

from medor.utils import uas
Expand Down
3 changes: 2 additions & 1 deletion medor/utils/tor.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def tor_setup(self) -> None:
)
tor_path = input(
f"""➡️ Tor binary path or command:\n"""
f""" Linux and OSX : "tor"\n"""
f""" Linux and OSX : "tor" or "/usr/bin/tor" on debian/ubuntu\n"""
f""" Windows: full path to tor.exe. E.g. """
+ r"C:\Tor\tor.exe"
+ "\n"
Expand Down Expand Up @@ -248,6 +248,7 @@ def tor_setup(self) -> None:
)
exit()
test_tor.terminate()
# wait a bit for tor to exit cleanly
time.sleep(1)
# Set tor path in .env file
set_key(Path(__file__).parent.parent.joinpath(".env"), "tor_path", tor_path)
Expand Down
1 change: 1 addition & 0 deletions medor/utils/util.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# coding: utf-8
from colorama import Fore, Style
from halo import Halo

from medor.__about__ import __version__ as version

success = "🦴".encode("utf-8")
Expand Down

0 comments on commit e5e588c

Please sign in to comment.