597 Commits

Author SHA1 Message Date
Micah Lee
940b6c647e Refactor Settings object so it does not load from file by default. Make it so you can pass a Settings into Onion, to test settings 2016-12-29 08:02:32 -08:00
Micah Lee
e9df6e6c81 Clicking Save in the settings dialog saves settings 2016-12-28 20:03:32 -08:00
Micah Lee
024ad7fc20 Remove wrong comment 2016-12-28 19:53:02 -08:00
Micah Lee
38845b39cb Created a Settings object, which loads and saves settings to file, and made the Settings dialog use the settings from this object 2016-12-28 19:52:21 -08:00
Sigma
0061f00f49 Support stem versions older than 1.5.0 again. Fix for issue #332 2016-12-25 22:27:47 -08:00
Micah Lee
5241d756bf Properly handle errors for using stealth onion services in the GUI, instead of crashing in the background (#144) 2016-12-23 19:08:18 -08:00
Micah Lee
447b9739f6 Catch all exceptions when checking for stealth support, not just TypeError, to successfully identity old versions of stem 2016-12-22 17:07:01 -08:00
Micah Lee
8432e1ef3d Add support for stealth onion services in CLI version 2016-12-22 16:56:39 -08:00
Micah Lee
ad0a618702 Added dev scripts for launching onionshare and onionshare-gui from the source code tree, without having to install it 2016-12-22 16:19:54 -08:00
Micah Lee
8fbb7c067f Merge branch 'master' of https://github.com/eightnoteight/onionshare into eightnoteight-master
Conflicts:
	onionshare/web.py
	onionshare_gui/onionshare_gui.py
	resources/locale/cs.json
	resources/locale/eo.json
	resources/locale/nl.json

This merge required quite a bit of refactoring because.
2016-12-22 16:00:06 -08:00
Micah Lee
6459498da4 Add support for Tor control port authentication 2016-12-22 13:39:32 -08:00
Micah Lee
b0108ecbbd Merge branch 'shutdowncrashfix' of https://github.com/b3sigma/onionshare into b3sigma-shutdowncrashfix 2016-12-21 23:08:33 -08:00
Micah Lee
a24b4a7762 Replaced sanitize_html() function that was based on regex with python3's html.escape() 2016-12-21 22:56:15 -08:00
Sigma
d3b22e34d9 Fix crash when tor is closed first and then onionshare is closed and a stem.SocketClosed exception is raised. 2016-12-20 01:44:20 -08:00
Emmanuel Morales
b95828973c Added a function to remove HTML from file and directory names 2016-12-18 21:07:38 -08:00
xSmurf
baba640894 Only check if we are in the sys prefix but not the actual executable name as this could be renamed or wrapped 2016-09-28 17:24:28 +00:00
anonym
0314acede6 Try to get the Tor ControlPort from the environment.
... via the TOR_CONTROL_PORT variable. If set, onionshare will only
try this port.
2016-09-22 14:10:24 +02:00
Micah Lee
26212f852c Move imports to module level 2016-09-06 13:17:55 -07:00
Micah Lee
c53d4f5e24 Enable stdout in Windows, OSX CLI versions (#305) 2016-09-06 12:09:10 -07:00
Micah Lee
94e29d1ddf Disable writing to stdout in Windows (fixes #304) 2016-09-06 18:44:35 -07:00
Micah Lee
558e428508 Prevent canceling download from being confused with rate limit attacker 2016-09-06 10:18:50 -07:00
Micah Lee
5b19d9eaf0 Remove HSDirError exception, because it is no longer thrown 2016-09-05 11:32:30 -07:00
Micah Lee
f7882c6a74 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
eb4c8df105 Renamed hs to onion 2016-09-05 11:16:54 -07:00
Micah Lee
6bb312216b Migrate from PyInstaller to cx_Freeze for OSX 2016-09-04 19:21:09 -07:00
Micah Lee
e461ba4b59 Merge branch 'master' into cx_Freeze 2016-09-04 17:23:27 -07:00
Micah Lee
4cb90dc96d 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
b033c5ea74 Oops, use spaces instead of tabs 2016-09-04 20:08:36 -07:00
Micah Lee
d0e4e1653e Added resources to cx_Freeze setup, and make those resources findable by the app 2016-09-04 19:54:45 -07:00
Micah Lee
8140dbeefb Stop saying 'hidden service', start saying 'onion service' 2016-09-04 17:23:06 -07:00
Srinivas Devaki
12591c2cab added progress bar for zipping files 2016-08-24 01:43:21 +05:30
Micah Lee
82617f0b83 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