Micah Lee
87761c6fce
Remove HSDirError exception, because it is no longer thrown
2016-09-05 11:32:30 -07:00
Micah Lee
360fb6cfcc
Refactor onionshare CLI to use await_publication=True when using ephemeral onion services, instead of relying on wait_for_hs function
2016-09-05 11:29:12 -07:00
Micah Lee
1372239ed7
Renamed hs to onion
2016-09-05 11:16:54 -07:00
Micah Lee
db9d81ba90
Migrate from PyInstaller to cx_Freeze for OSX
2016-09-04 19:21:09 -07:00
Micah Lee
bba46e088f
Merge branch 'master' into cx_Freeze
2016-09-04 17:23:27 -07:00
Micah Lee
dbf4af02ac
Pass helpers into strings.load_strings instead of importing it, so fix issue with cx_Freeze in Windows
2016-09-04 20:09:18 -07:00
Micah Lee
7e8b3e1750
Oops, use spaces instead of tabs
2016-09-04 20:08:36 -07:00
Micah Lee
8e8ea9c357
Added resources to cx_Freeze setup, and make those resources findable by the app
2016-09-04 19:54:45 -07:00
Micah Lee
310d861ce0
Stop saying 'hidden service', start saying 'onion service'
2016-09-04 17:23:06 -07:00
Srinivas Devaki
c570d7ea77
added progress bar for zipping files
2016-08-24 01:43:21 +05:30
Micah Lee
62e7035d3d
Tweaked Spanish locale and typo in comment, thanks to kant ( #269 , #270 )
2016-06-10 17:24:44 -07:00
Micah Lee
7f438052c6
Merge pull request #288 from mscherer/fix_cve
...
Fix CVE-2016-5026
2016-06-10 17:18:36 -07:00
Micah Lee
185006d662
Merge pull request #280 from jvoisin/pep8
...
Improve pep8 conformance
2016-06-10 17:14:11 -07:00
Michael Scherer
70c55511b1
Fix CVE-2016-5026
...
See http://www.openwall.com/lists/oss-security/2016/05/23/5 for details
on a potential convoluted attack. Basically, /tmp/onionshare is
a predictable name, which mean that a local attacker
could precreate it on a shared server and later mess with the hidden
service operations in various way.
2016-05-23 20:45:07 +02:00
jvoisin
17e389b800
Improve pep8 conformance
2016-04-18 01:40:17 +02:00
jvoisin
3d13c1aa27
Simplify get_resource_path
2016-04-18 01:12:59 +02:00
Micah Lee
db1ed7c6de
Fix issue with shutting down Flask server when not using --local-only ( #238 )
2016-04-12 17:04:19 -07:00
Micah Lee
d35b5a9acd
Added rate-limiting to GUI. After 20 404 errors, server automatically stops ( #238 )
2016-04-12 16:49:46 -07:00
Micah Lee
b47ef630d5
Replace onionshare slug with 2-words from securedrop diceware list ( #238 )
2016-04-12 16:29:11 -07:00
Micah Lee
c07f4e5f83
If "Stop sharing automatically" is selected, only allow one download at a time ( fixes #248 )
2016-04-12 15:59:49 -07:00
Micah Lee
0b588e543a
Fix PyInstaller to point to new resources directory, for OSX and Windows
2016-04-12 15:21:47 -07:00
Micah Lee
e81f809882
Move all resources (locale, images, html, version.txt) into central resources dir, and clean up logic to find absolute paths to resources
2016-04-12 15:14:02 -07:00
Micah Lee
e8ce6b1c54
Make helpers.get_pyinstaller_resource_path work when package is not frozen, and make tests report real platform to get accurate paths
2016-04-12 10:43:28 -07:00
Micah Lee
ef5665b050
Switched from py2app to PyInstaller for Windows. Renamed version to version.txt, to avoid Windows namespace collision with version.dll.
2016-04-11 23:25:40 -07:00
Micah Lee
7b8e9e1e6f
Closing the GUI window causes any current download to stop immediately ( fixes #262 )
2016-04-10 17:43:37 -07:00
Micah Lee
00d1e29333
Switch from py2app to PyInstaller
2016-04-10 14:20:18 -07:00
Micah Lee
3ed1f964cb
Choose ports in range 17600-17650, so Tails can whitelist them ( #220 )
2016-02-27 18:03:42 +01:00
Micah Lee
683610e962
Update copyright year to 2016
2016-02-15 22:37:28 -08:00
Micah Lee
deac54db92
Made sure switch to python3 and Qt5 works in OSX ( #261 ). Updated OSX instructions in BUILD.md.
2016-02-12 15:45:26 -08:00
Micah Lee
170811f450
Porting onionshare from python2 to python3 ( #261 ). This commit only ports the CLI version, not the GUI. Has not been tested in Fedora, Windows, or OSX. Removed hack to make unicode filenames work because hack does not work in python3. Replaced constant_time_compare function with a new one that works in python3. Tweaked hidden service checking code because urllib is different in python3.
2016-02-12 14:34:19 -08:00
Micah Lee
b2bda8294a
Create new slug each time onionshare server is started ( #247 ). This required making removing check_slug_candidate as a decorator and calling it inside functions that needed it instead.
2016-02-12 11:56:35 -08:00
Micah Lee
e199946a8d
Display version string automatically in CLI, and in the status bar in GUI ( #251 )
2016-02-12 11:00:35 -08:00
Micah Lee
3c3ea6faf3
Merge branch 'eta' of https://github.com/garrettr/onionshare into garrettr-eta
2016-02-12 08:36:46 -08:00
Garrett Robinson
ea47e80f14
Add estimated time remaining to progress indicator
...
Estimates the time remaining for each download and displays it in the
progress bar. Waits for 10 seconds before showing the progress bar to
allow the download rate to stabilize, which prevents the estimated time
remaining from jumping all over the place at the start of the download
(a.k.a the "Windows copy dialog experience"). If your download takes
less than 10 seconds, you don't really need to see an ETA anyway.
This commit also refactors the Downloads class, splitting out the
download-specific functionality into a new Download class, providing
better encapsulation. As a result, I was able to simplify the call to
`update_download` because it was no longer necessary to pass the
`total_bytes` (which don't change after the download has begun).
Tested on Mac OS 10.9.
2015-12-23 01:05:30 -05:00
Garrett Robinson
9d5ba9b4f6
Revert to using wait_for_hs for ephemeral HS
...
Using `await_publication = True` blocks inside stem until the hidden
service is published, which makes OnionShare appear to hang. This is a
quick fix that reverts to using `wait_for_hs` for ephemeral hidden
services (as well as non-ephemeral hidden services), which avoids
blocking OnionShare.
2015-12-22 23:09:30 -05:00
Micah Lee
e60a82ad22
Fixed crash in Windows, related to HS directory path and slashes
2015-12-07 23:47:13 -08:00
Micah Lee
d67d5010d1
Catch exception that occurs when stopping a web app that has not started ( fixes #237 )
2015-12-07 15:03:53 -08:00
Micah Lee
2ce32e2327
Make hidserv_dir a class variable so it can be cleaned up ( fixes #232 ), and refactor _hsdic2list ( #199 )
2015-12-06 13:51:42 -08:00
Micah Lee
9723270794
Revert "Refactored non-ephemeral hidden services to use get_hidden_service_conf and set_hidden_service_conf rather than get_conf_map and set_options. So much cleaner this way. ( fixes #216 )"
...
I'm reverting this it's causing #232 .
This reverts commit df8e4f6cd4a34af0c5e6a881d377373190445300.
2015-12-06 13:40:35 -08:00
Micah Lee
f4780813d6
Decorator is expecting argument to be named slug_candidate, not shutdown_slug_candidate ( #200 )
2015-12-04 13:17:45 -08:00
Micah Lee
9d1abf668a
Merge branch 'slug_decorator' of https://github.com/pwplus/onionshare into pwplus-slug_decorator
2015-12-04 12:46:51 -08:00
Micah Lee
f2389cc602
Remove all language and localization from download page, to prevent leaking the sender's locale ( fixes #228 )
2015-12-04 12:43:12 -08:00
Micah Lee
e6e323fc9a
Don't access self.hs when using --local-only
2015-12-04 12:37:51 -08:00
Micah Lee
df8e4f6cd4
Refactored non-ephemeral hidden services to use get_hidden_service_conf and set_hidden_service_conf rather than get_conf_map and set_options. So much cleaner this way. ( fixes #216 )
2015-11-20 17:47:42 -08:00
Micah Lee
8f8e38b11d
Refactored _hsdic2list method. It it much easier to understand now. ( fixes #199 )
2015-11-20 14:20:29 -08:00
Micah Lee
76d65c678b
Changed 404 page to just say "404" ( fixes #225 )
2015-11-20 12:50:34 -08:00
Micah Lee
35c1c9cbcb
When looking for a Tor to use, prefer (in this order): Tor Browser, Tor Messenger, system Tor ( fixes #215 )
2015-11-20 12:43:08 -08:00
Will Plusnick
42d7dd4181
Add a decorator to check the slug
...
This commit will add a decorator to the check the slug rather than copy
and pasting the same lines of code at the begining of every route.
2015-11-16 02:09:51 -06:00
Micah Lee
dc58921187
Add docstrings to all classes and methods ( fix #198 )
2015-11-15 19:01:20 -08:00
Micah Lee
a5aff46050
Cleanup ephemeral hidden services
2015-11-15 16:26:44 -08:00