Skip to content

Commit 26b8890

Browse files
fix: remove windows support as it does not work from CLI
1 parent ca22a38 commit 26b8890

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

src/modules/onionshare.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@ def receive(config_file=None, auto_stop_seconds=None):
6262
args.append("--disable-text")
6363

6464
if receiving != "t":
65-
data_dir = input("Where would you like the files to be saved to? ")
66-
args.append(f"--data-dir {data_dir}")
65+
data_dir = input("Where would you like the files to be saved to? (blank for default)")
66+
if data_dir != "" and data_dir is not None:
67+
args.append(f"--data-dir {data_dir}")
6768

6869
filtered: list[str] = list(filter(lambda x: x is not None, args))
6970
print("Filtered: ", filtered)
@@ -97,6 +98,14 @@ def chat(config_file=None, auto_stop_seconds=None):
9798

9899

99100
def onionshare(advanced=False):
101+
if PLATFORM == "win32":
102+
print_alert("Using Onionshare from the commandline is not supported on Windows. Please use the GUI which you can download from:")
103+
print("\t- https://onionshare.org/#download")
104+
print_alert("You'll also need Tor installed, which you can download from:")
105+
print("\t- winget install --id=TorProject.TorBrowser -e")
106+
print("\t- Or visit https://www.torproject.org/download/ to download directly.")
107+
return
108+
100109
if not has_dependencies_installed():
101110
print("You need to have Tor installed to utilise this feature.")
102111

@@ -111,8 +120,6 @@ def onionshare(advanced=False):
111120
sudo dnf install tor
112121
"""
113122
)
114-
case "win32":
115-
print("winget install --id=TorProject.TorBrowser -e")
116123
case "darwin":
117124
print(
118125
"""

src/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def print_hero():
8989
command(Fore.YELLOW, "Fallenflare | Bypass cloudflare.")
9090
command(Fore.GREEN,"Recpull | Pulls a tracert, whois, dns, mx history & namp, custom-formatted.")
9191
command(Fore.RED,"Anonfile | Up/download from Anonfiles.")
92-
command(Fore.GREEN,"Onionshare | Up/download from Onionshare.")
92+
command(Fore.YELLOW,"Onionshare | Up/download from Onionshare.")
9393
section("OSINT")
9494
command(Fore.GREEN,"Shodan | Pull Shodan information from API.")
9595
command(Fore.GREEN,"WiGle | Use an API for SSID/BSSIDs stat, locations, & Bluetooth data.")

0 commit comments

Comments
 (0)