Commit Graph

1223 Commits

Author SHA1 Message Date
Oleksii Shevchuk 4444508f12 Pass peer info to wrapped transports 2017-03-11 09:16:43 +02:00
Oleksii Shevchuk 5f28337515 Add config command line option 2017-03-11 09:16:43 +02:00
Oleksii Shevchuk fda4717041 Add workdir/config as potential config file storage 2017-03-11 09:16:43 +02:00
n1nj4sec 8e60bf9726 fix interactive_shell program argument 2017-03-10 20:55:50 +01:00
n1nj4sec 29c1f6a6e2 add changeme dependencies 2017-03-10 20:15:17 +01:00
n1nj4sec a2fe3d868b add user/hostname in session notification 2017-03-10 20:06:06 +01:00
Dc3 89a76032d4 Update ps1_oneliner.py 2017-03-11 02:57:46 +08:00
Dc3 21977bdd27 show client address after done
e.g:[+] 10.1.1.96:You should have a pupy shell in few seconds from this host...
2017-03-11 02:57:06 +08:00
n1nj4sec e994450db3 Merge branch 'lazagne' of https://github.com/AlessandroZ/pupy into unstable 2017-03-10 19:54:00 +01:00
n1nj4sec ce549d661e Merge branch 'changeme' of https://github.com/AlessandroZ/pupy into unstable 2017-03-10 19:51:52 +01:00
n1nj4sec d444f83d4c Merge branch 'PupyPackagesDependencies' of https://github.com/AlessandroZ/pupy into unstable 2017-03-10 19:50:32 +01:00
Dc3 8a7297c08e Default use HTTPS,add compare 2017-03-11 02:46:55 +08:00
Dc3 98565a75ae Fixed something,Add powershell exec using -Enc 2017-03-11 02:43:04 +08:00
n1nj4sec eae2a25e4c at least give a warning if your conf broadcast your LAN that you use pupysh.py :-) 2017-03-10 19:38:52 +01:00
Dc3 d8591a9263 Use threading to hanlder HTTPServer
Set every http request to a thread so that it can serve multiple clients at same time
2017-03-11 02:28:21 +08:00
n1nj4sec 3ac19564a1 fix pure python payloads, ... that regex sucks 2017-03-10 19:20:59 +01:00
Oleksii Shevchuk 19740bef7f Rework dockerfile 2017-03-10 18:08:38 +02:00
Oleksii Shevchuk 00b949113b Add support for ephemeral HTTP server mixin 2017-03-10 17:30:01 +02:00
Oleksii Shevchuk 9aa71e602e Always return absolute paths 2017-03-10 17:29:18 +02:00
Oleksii Shevchuk 3dadb5a18b Raise EOFError() from close() if stream.close() if not available 2017-03-10 17:05:06 +02:00
Oleksii Shevchuk d202882ed5 Why old code works? Who knows.. 2017-03-10 16:12:46 +02:00
Oleksii Shevchuk 475a301480 First working pupysh docker image. More work needed 2017-03-10 00:23:19 +02:00
Oleksii Shevchuk 3aec3bf641 Add option to disable automatic IGD mapping 2017-03-10 00:05:31 +02:00
Oleksii Shevchuk ff17852d66 Add missing dnslib dependency 2017-03-09 23:52:36 +02:00
Oleksii Shevchuk 5365e752be Add Dockerfile, doesn't work for now 2017-03-09 19:41:18 +02:00
Oleksii Shevchuk 94492a338e Honor prefer_workdir for credentials 2017-03-09 19:00:29 +02:00
Oleksii Shevchuk 3297c1188d Move pupysh related requirements.txt to pupy folder 2017-03-09 16:11:27 +02:00
Oleksii Shevchuk a8ea7a4824 Rework scanner to scan by constant sized chunks 2017-03-09 10:50:45 +02:00
Oleksii Shevchuk 04937b3b74 Create continious stream for scanning 2017-03-09 09:38:11 +02:00
Oleksii Shevchuk 47acc1e763 Rework credentials decryptor initialization 2017-03-09 09:12:52 +02:00
Oleksii Shevchuk 78c9f89f21 Encrypt credentials by default 2017-03-09 00:15:29 +02:00
Oleksii Shevchuk a1ca6f1f34 Fix port_scan on windows 2017-03-08 21:14:16 +02:00
Oleksii Shevchuk b9cc1dcdca Add on_checkconnect stub without impl 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk a41bc90c46 Close socket on strange errors and that's it 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 09b8ca0ac6 Fix various migration related issues 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 65fdef62c5 Pass first 3072 bytes from RC4 stream, as CIA suggests to us 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 722369239c Handle case when pupy starts from memfd 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 640526c91e Fix config generation for bypassuac 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 99b202af59 Fix memexec/interactive 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 1a0f0fefd7 Fix id manipulation during migration 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 72f6a314c2 Fix payload generation in other dependencies 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 7f9ea8c576 Fix arch setting 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