Commit Graph

198 Commits

Author SHA1 Message Date
Oleksii Shevchuk 05f82b36b5 Do not remove network/transports config to template 2017-04-04 10:51:56 +03:00
Oleksii Shevchuk 91dabc2e02 It turns out that cffi works ok with ctypes backend 2017-04-04 10:50:50 +03:00
Oleksii Shevchuk e4a616e819 Try to show original soname in memfd. Also fix symlink bug 2017-04-03 23:35:33 +03:00
Oleksii Shevchuk 0639c55f16 Fix rebuild by dependencies 2017-04-03 23:34:46 +03:00
Oleksii Shevchuk f032580183 Build pycryptodome to environment 2017-04-03 19:41:42 +03:00
Oleksii Shevchuk 6a15067115 Warning fixes 2017-04-03 19:40:20 +03:00
n1nj4sec c4c1f2b30c don't uninstall cffi, cryptography needs it 2017-04-01 00:28:36 +02:00
n1nj4sec c84e9499cb using a recent windows compatible scapy version 2017-04-01 00:04:37 +02:00
n1nj4sec 620c951f19 add space in templates for scriptlets 2017-03-31 20:27:12 +02:00
Oleksii Shevchuk 500045329c Kindly ask to build stuff without docstrings 2017-03-21 22:25:22 +02:00
Oleksii Shevchuk 5f78b6cbbe Add (initial) support for loading bundled libraries via ctypes 2017-03-21 22:18:21 +02:00
Oleksii Shevchuk 477556264b Remove cffi from bundled libs properly 2017-03-21 22:18:21 +02:00
Oleksii Shevchuk 30af397f7d Try to use pycryptodome 2017-03-21 22:18:21 +02:00
Oleksii Shevchuk 5924dc0618 Let's try to use pycryptodome instead of pycrypto 2017-03-21 08:32:48 +02:00
Oleksii Shevchuk f1199584d2 Remove submodules which can be acquired from pip 2017-03-17 08:42:39 +02:00
Oleksii Shevchuk 2b0ff781bd Add ca-certificate bundle to environments 2017-03-17 00:16:20 +02:00
Oleksii Shevchuk 4fac6fe5e7 Use spaces instead of tabs+spaces mess in client-linux 2017-03-16 23:01:13 +02:00
Oleksii Shevchuk 54a42a1aa5 Build xprintidle 2017-03-16 18:23:22 +02:00
Oleksii Shevchuk 025e2dba35 After dance around environment set "_" to something neutral 2017-03-15 07:13:14 +02:00
Oleksii Shevchuk e4bbfd5630 Fix python precompilation 2017-03-15 00:06:46 +02:00
Oleksii Shevchuk 6350ad9ab4 Reduce images size 2017-03-14 23:31:20 +02:00
Oleksii Shevchuk c8d8a9f6f1 Set Win7 for amd64 buildenv 2017-03-14 08:47:30 +02:00
Oleksii Shevchuk 427defea99 psutil already have boot_time function, no need in separate module 2017-03-13 23:19:43 +02:00
Oleksii Shevchuk 0a94a0daf6 Invert logging info 2017-03-11 18:08:14 +02:00
Oleksii Shevchuk 9ffbfdea61 Reduce travis log 2017-03-11 09:16:43 +02:00
Oleksii Shevchuk e74aad2adc Add travis 2017-03-11 09:16:43 +02:00
Oleksii Shevchuk 722369239c Handle case when pupy starts from memfd 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 35cd39fe5b Unicodedata is not required to start pupy, so remove it 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk a66ff19f48 Add initial memexec support for linux (interactive mode doesn't work for now) 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 4f1a508dd0 Fix migration (linux client) /w memfd 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 248094d89d Ensure pupy doesn't execute any shit from the system 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 29d7e1ad5b Properly set sys.executable from /proc/self/exe 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk ce50ea3230 Add workaround to make possible to close memfds after dlopen 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk fec8025de7 Add memfd sealing 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk f1bc5450c6 Request maximal amount of open files (because of memfd) and disable coredumps 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk bc62899b4f Prevent GC collection of modules and config 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 177fab2498 Reduce virtual size 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 4a02048666 Build pupymemexec and winpty with environment 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk fc585d60a6 Values are hardcoded 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk c005cf86de Fix invoking from non-shell 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 45ac2bf02e "Securely" pass environment 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk fc7d0253ec Reduce size by building shared openssl, removing dbus from client and so on 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk e6b227f36c Fix typo 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 1a02ac6150 Try to become root if possible 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 7309acdf19 Set non-dumpable property 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 86b1c20484 Fix build/work in lin32 environment 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 93497d75c8 Make DEFAULT_SAFE_PATH also "configurable" 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk a31537968c Setup "safe" environment 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 6bbee454ac Add memfd support (optional) for dlopen 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 6e38e209d5 Fix RTLD_NEXT in pthreads wokraround 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 8c35337379 Use pyuv instead of asyncoro 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 08d8688c8c Search any pywintypes27.dll 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk fcac5768cf Pypcap is broken 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 190fd92d09 Bump versions, fix build script 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 4207218055 Bump zlib version 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 480bc18df4 Add more deps to bundle builder 2017-03-08 19:41:14 +02:00
Oleksii Shevchuk 7a89fab238 Move pyaudio to bundle 2017-03-08 19:41:14 +02:00
Oleksii Shevchuk 891d7aed05 Build scandir to the bundle 2017-03-08 19:41:14 +02:00
Oleksii Shevchuk 128666a1e0 Remove libraries which are not required during non-interactive boot time 2017-03-08 19:41:14 +02:00
Oleksii Shevchuk 128ec9bc53 Fix builds. Add more packages to buildenv 2017-03-08 19:41:14 +02:00
Oleksii Shevchuk ac73116fa3 Enable MemoryModule debug output if /DDEBUG passed 2017-03-08 19:41:14 +02:00
Oleksii Shevchuk 45ad9ccff6 Build python libraries from environments to zip bundles. Experemental 2017-03-08 19:41:14 +02:00
Oleksii Shevchuk f84b41056c Bump versions 2017-03-08 19:41:14 +02:00
Oleksii Shevchuk 45d31a5dea Make compat sched calls static inline 2017-03-08 19:41:14 +02:00
Oleksii Shevchuk 6ef4ebd431 Avoid redifinition 2017-03-08 19:41:14 +02:00
Oleksii Shevchuk e58c910493 Copy compatible headers after bootstrap 2017-03-08 19:41:14 +02:00
Oleksii Shevchuk 2ef3cc7cf8 Move make psutils clients built-in (Linux, Windows) 2017-03-08 19:41:14 +02:00
Oleksii Shevchuk 3d7d76bbef Add python-ptrace to standard package 2017-03-08 19:41:14 +02:00
Oleksii Shevchuk cfbdc87758 ZSH doesn't support writing to UID 2017-03-08 19:41:14 +02:00
Oleksii Shevchuk 240c503769 Help setuptools to find MSVC for AMD64 2017-03-08 19:41:14 +02:00
Oleksii Shevchuk 0af2216ada Avoid "RuntimeError: dictionary changed size during iteration" 2017-03-08 19:41:14 +02:00
Oleksii Shevchuk ecdedfe5dd Schedule debug build in build.sh (windows) 2017-03-08 19:41:14 +02:00
Oleksii Shevchuk 04b3eb0f2c Create buildenv script for linux client 2017-03-08 19:41:14 +02:00
Oleksii Shevchuk 8bfae8bb50 Rework pupy basic configuration
Improve compression:
[+] LMZA everywhere (uniformed)
[+] Config space 40690 -> 8192
[+] Compress payload libraries (libpython)
[+] Compress serialized objects (resources, bootloader, config)
[-] Windows build (Makefile) was removed

Improve cryptography/credentials default configuration
[+] Remove default secrets
[-] Android still there
[+] Add uniformed class to search proper credentials
[+] Generate all credentials on first launch
[+] Improve SSL -> CA/Client/Server + roles

Client default configuration
[+] Add stubbed site.py (to preserve pupy from search files on target device)

TODO:
[?] Test all that stuff?
[?] Rewrite all transport configs to honor roles
2017-03-08 19:41:14 +02:00
Oleksii Shevchuk d7214db8f9 Shrink paths 2017-03-08 19:41:14 +02:00
Oleksii Shevchuk 8dc9232450 Use LZMA instead of ZLib for resources 2017-03-08 19:40:25 +02:00
Oleksii Shevchuk e320af34ae Add initial IGD (UPnP) support 2017-03-08 19:40:25 +02:00
Oleksii Shevchuk 288aa030bf Ensure no duplicates in resources.zip 2017-03-08 19:40:24 +02:00
n1nj4sec f3fc9a5fca add ACCESS_NETWORK_STATE to template apk 2017-01-21 14:02:26 +01:00
n1nj4sec 52dfe1fe8a add functional android buildozer.spec as example 2016-12-30 22:13:29 +01:00
n1nj4sec ff68331e00 fix auto_proxy on windows 2016-11-20 00:30:21 +01:00
n1nj4sec 62cd1241a0 add socksipy dependency for windows 2016-11-17 19:57:01 +01:00
n1nj4sec 195d7b365b fix wine buildenv 2016-11-01 18:35:56 +01:00
Oleksii Shevchuk fe8542f4cc Add function to search functions by module and name
It wasn't possible to find functions in libraries
loaded using memoryloader (Windows)
2016-10-30 23:23:07 +02:00
Oleksii Shevchuk 338763187c Add _sqlite3.so 2016-10-30 23:23:07 +02:00
Oleksii Shevchuk 5175b72ca9 Add dbus/gir support to linux client build 2016-10-30 23:23:07 +02:00
Oleksii Shevchuk fcdf6fe6f1 Filter out examples 2016-10-30 23:23:07 +02:00
Oleksii Shevchuk d21a1c7e6e Add more nice flags to linux client linker 2016-10-30 23:23:07 +02:00
Oleksii Shevchuk 19059fc101 Scripts unification for linux and windows build 2016-10-30 23:23:07 +02:00
Oleksii Shevchuk dd00e0f682 Add missing file 2016-10-30 23:23:07 +02:00
Oleksii Shevchuk 755d24b2e7 Fix build for windows 2016-10-30 23:23:07 +02:00
Oleksii Shevchuk 2d28bdb9ee Enable all messages when /DDEBUG 2016-10-30 23:23:07 +02:00
Oleksii Shevchuk 1a17eb93a3 Start to implement proper build script to compile windows binaries using wine 2016-10-30 23:23:07 +02:00
Oleksii Shevchuk a2465d3a56 Looks like encodings module is not required here 2016-10-30 23:23:07 +02:00
Oleksii Shevchuk 9202f365a1 Use marshalled code, enable optimization (.pyc -> .pyo) 2016-10-30 23:23:07 +02:00
Oleksii Shevchuk 711aef51f7 Don't mess debug builds with nondebug 2016-10-30 23:23:07 +02:00
n1nj4sec f47f8c5581 fix build_library_zip 2016-08-27 12:10:31 +02:00
Oleksii Shevchuk 3423834403 Try actually call mmap at drop destinations 2016-08-26 12:35:36 +03:00
Oleksii Shevchuk 720e85a156 Try to use ctypes to find MAC/IP on windows.
Well, this is insane. I never thought that in standart python library
you can find THAT. What do you think will happens, if for some reason
ifconfig will hang?
2016-08-26 01:05:03 +03:00
Oleksii Shevchuk 2f1b3ab915 Update linux client 2016-08-24 20:18:48 +03:00