Skip to content

Commit

Permalink
b60
Browse files Browse the repository at this point in the history
Windows obfs proxy,
RedHat obfs proxy
  • Loading branch information
andrey144 committed Jul 14, 2016
1 parent 4cc2ebf commit 3279063
Show file tree
Hide file tree
Showing 36 changed files with 68 additions and 7 deletions.
35 changes: 29 additions & 6 deletions safejumper/osspecific.cpp
Expand Up @@ -1185,9 +1185,20 @@ void OsSpecific::RunObfs(const QString & srv, const QString & port, const QStrin
#ifndef Q_OS_WIN
// "/usr/local/bin/obfsproxy obfs2 socks 127.0.0.1:1050"

#ifndef Q_OS_REDHAT
"/usr/local/bin/obfsproxy "
// "--log-min-severity debug --no-safe-logging"
" --data-dir /tmp "
#else
"/usr/bin/obfsproxy "
#endif
#else // Win
"cmd /k c:\\python27\\Scripts\\obfsproxy.exe "
// "c:\\python27\\Scripts\\obfsproxy.exe "
#endif
// "--log-min-severity debug --no-safe-logging "
#ifndef Q_OS_WIN
"--data-dir /tmp "
#else
#endif
"obfs2 "
"--dest "
// "185.47.202.158"
Expand All @@ -1198,9 +1209,6 @@ void OsSpecific::RunObfs(const QString & srv, const QString & port, const QStrin
"127.0.0.1:"
+ local_port
// "1050"
#else // Win
""
#endif
;

if (!IsObfsRunning())
Expand All @@ -1216,9 +1224,18 @@ void OsSpecific::InstallObfs()
{
log::logt("InstallObfs() in");
#ifdef Q_OS_LINUX

#ifndef Q_OS_REDHAT
// debian/ubuntu
ExecAsRoot("apt-get", QStringList() << "update");
ExecAsRoot("apt-get", QStringList() << "install" << "-y"<<"--force-yes" <<"libdpkg-perl=1.17.5ubuntu5");
ExecAsRoot("apt-get", QStringList() << "install" << "-y" << "python2.7" <<"python-pip" << "python-dev" << "build-essential");
#else
// CentOS
ExecAsRoot("yum", QStringList() << "-y" << "install" << "python-devel");
ExecAsRoot("/usr/bin/curl", QStringList() << "https://bootstrap.pypa.io/get-pip.py" << "-o" << "/tmp/get-pip.py");
ExecAsRoot("python", QStringList() << "/tmp/get-pip.py");
#endif
ExecAsRoot("pip", QStringList() << "install" << "obfsproxy");
#else
#ifdef Q_OS_MAC
Expand Down Expand Up @@ -1268,12 +1285,18 @@ bool OsSpecific::IsObfsInstalled()
bool OsSpecific::IsObfsRunning()
{
bool b = false;
// if (_obfs.get() != NULL)
#ifdef Q_OS_WIN
if (_obfs.get() != NULL)
{
b = true; // TODO: -1 actual check
}
#else
{
QString s1 = RunFastCmd("ps ax");
bool b1 = s1.contains("/obfsproxy");
b |= b1;
}
#endif
return b;
}

Expand Down
1 change: 1 addition & 0 deletions safejumper/safejumper.pro
Expand Up @@ -24,6 +24,7 @@ macx: {
}

# DEFINES += MONITOR_TOOL
# DEFINES += Q_OS_REDHAT

win32: {
WINSDK_DIR = C:/Program Files/Microsoft SDKs/Windows/v7.1A
Expand Down
2 changes: 1 addition & 1 deletion safejumper/version.h
@@ -1,7 +1,7 @@
#ifndef VERSION_H
#define VERSION_H

#define SJ_BUILD_NUM 56
#define SJ_BUILD_NUM 60
#define SJ_VERSION "3.0 alpha"

#endif // VERSION_H
Expand Down
Binary file added win-files/32/Qt5Core.dll
Binary file not shown.
Binary file added win-files/32/Qt5Gui.dll
Binary file not shown.
Binary file added win-files/32/Qt5Network.dll
Binary file not shown.
Binary file added win-files/32/Qt5Svg.dll
Binary file not shown.
Binary file added win-files/32/Qt5Widgets.dll
Binary file not shown.
Binary file added win-files/32/Qt5Xml.dll
Binary file not shown.
Binary file added win-files/32/libeay32.dll
Binary file not shown.
Binary file added win-files/32/msvcp120.dll
Binary file not shown.
Binary file added win-files/32/msvcr120.dll
Binary file not shown.
Binary file added win-files/32/platforms/qwindows.dll
Binary file not shown.
37 changes: 37 additions & 0 deletions win-files/32/proxysh.crt
@@ -0,0 +1,37 @@
-----BEGIN CERTIFICATE-----
MIIGaDCCBFCgAwIBAgIJAND7im/kkgtyMA0GCSqGSIb3DQEBBQUAMH8xCzAJBgNV
BAYTAlNDMQswCQYDVQQIEwJWQTERMA8GA1UEBxMIVmljdG9yaWExETAPBgNVBAoT
CFByb3h5Ln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BR20DqwFm/reSSYZ2sEp1j1
GFgYjjCBswYDVR0jBIGrMIGogBR20DqwFm/reSSYZ2sEp1j1GFgYjqGBhKSBgTB/
MQswCQYDVQQGEwJTQzELMAkGA1UECBMCVkExETAPBgNVBAcTCFZpY3RvcmlhMREw
DwYDVQQKEwhQcm94eS5zaDERMA8GA1UEAxMIcHJveHkuc2gxCzAJBgNVBCkTAklU
MR0wGwYJKoZIhvcNAQkBFg5hZG1pbkBwcm94eS5zaIIJAND7im/kkgtyMAwGA1Ud
EwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADggIBAB5VEXyMqs8DLi3aVa2whsSRsx63
IAeroZqGrjUePnE0nSNoieM5tNYn2pLI0UJfaEWwu3IUJlALQfcbcmXPYARf0uxi
1rPoz0U6vIWdzv4YtEJUD0vCt9Z9XIUsFSmpruTbNAU1WUpCNun7p3ZckNqEmEzI
f0cMWFaS0v8rxow5JDFB2WwCreNMsmk+RlKGrgKrIoi29Z8WZIBlYzltaKhEXUXm
Q1PrP47LD5xi5K7VVKTSqYRZeKlpkGmUXVRPq0zkewB/dUy8m3qsogScUBpB2YOt
Rpc4p3bSZsoMfet/iQSDf53HvztFsPVkEz4c0QGYFVnVQpXycQ8rqjrGOG0Vp3A+
v+Sj17YIGUJL8yM40vVFm3KDOZ0+HlRNwEY9AWjHdRH4bBysZAbmBq1ixrfA+MmD
l2Kvb5jA156JW32MZd0xDqZHv+5UJE5HbnfqNf+6F//9orDGJh9ff4K8ENlTfXZ9
vl27rX46//fXpjwoS/pWtZxfBl5OVl8e13oz2wzvvcIEOH+R3oU1AimvPo6p0Eew
d3uICbB8hvAnJrZJGL7POu/cvdxdY282PGpYQOsmnSyidiftbdbtTpxIfS8sHaJE
6pUsKleoGA04GoM1W+Zd4MVi8ns+vr7qI/Kijc+/PwNsmKOE+NHMUGfjbXYCyvMm
TSMSym4Np+AmT7OX
-----END CERTIFICATE-----
Binary file added win-files/32/ssleay32.dll
Binary file not shown.
Binary file added win-files/32exe/safejumper.exe
Binary file not shown.
Binary file added win-files/32obfsproxy/python-2.7.11.msi
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added win-files/32openvpn-last/libeay32.dll
Binary file not shown.
Binary file added win-files/32openvpn-last/liblzo2-2.dll
Binary file not shown.
Binary file added win-files/32openvpn-last/libpkcs11-helper-1.dll
Binary file not shown.
Binary file added win-files/32openvpn-last/openssl.exe
Binary file not shown.
Binary file added win-files/32openvpn-last/openvpn-gui.exe
Binary file not shown.
Binary file added win-files/32openvpn-last/openvpn.exe
Binary file not shown.
Binary file added win-files/32openvpn-last/openvpnserv.exe
Binary file not shown.
Binary file added win-files/32openvpn-last/ssleay32.dll
Binary file not shown.
Binary file added win-files/32openvpn/openvpn-proxysh.exe
Binary file not shown.
Binary file added win-files/32openvpn_plugin/fix-dns-leak-32.lnk
Binary file not shown.

0 comments on commit 3279063

Please sign in to comment.