Commit Graph

429 Commits (master)

Author SHA1 Message Date
tim.carrington 846d9bb7c6 check if username contains domain element 2020-04-21 15:59:08 +01:00
tim.carrington b7ef0e49cc Added working code for MSSQL Channel. Tested end to end with Cobalt strike using a dockerised mssql server: https://hub.docker.com/_/microsoft-mssql-server 2020-04-21 15:13:25 +01:00
Grzegorz Rychlik 7562963f8f Update WinHttp (Add docs) 2020-04-10 15:09:55 +02:00
Grzegorz Rychlik 64917a5411 Remove unused variables 2020-04-09 17:56:47 +02:00
Grzegorz Rychlik 899d541731 Add missing winhttp.lib to dependencies 2020-04-09 17:56:17 +02:00
Grzegorz Rychlik 397f5e3942 [Slack] Replace cpprestsdk with WinHttp 2020-04-09 15:10:57 +02:00
Pawel Kurowski 849eecb27e Merge branch 'SlackRepliesFix' into 'master'
Replace deprecated slack replies api

See merge request C3/C3!178
2020-04-09 13:12:10 +01:00
Grzegorz Rychlik c984b51bda Upload WinHttp wrapper 2020-04-09 13:18:03 +02:00
Pawel Kurowski ca54a19190 Use StringConversions.h in SlackApi.h 2020-04-08 18:07:41 +02:00
Grzegorz Rychlik 8bfbb52538 Merge branch 'DeleteRoutes' into 'master'
Remove routes when their outgoing channel is closed

See merge request C3/C3!177
2020-04-08 16:58:52 +01:00
Pawel Kurowski 7cd0417ea3 Replace deprecated slack replies api 2020-04-08 17:53:11 +02:00
Grzegorz Rychlik 120aa36504 Remove routes when their outgoing channel is closed 2020-04-07 16:04:05 +02:00
Pawel Kurowski aaac7eeda5 O365 decrypt password before the call 2020-04-06 13:22:41 +02:00
Pawel Kurowski a92154fc6f Merge remote-tracking branch 'origin/SimplifyOfficeChannels' into test 2020-04-06 10:29:08 +02:00
grzryc c137d0c700
Add build badges to Readme 2020-04-03 17:54:12 +02:00
grzryc 47f84644fc
Add github workflows (#11)
Add github workflows
2020-04-03 17:42:16 +02:00
Pawel Kurowski 12cf67a5b8 Merge branch 'OsVersion' into 'master'
Os version

Closes #2

See merge request C3/C3!175
2020-03-23 08:55:05 +00:00
Grzegorz Rychlik 079835c362 Workaorund the async callback after-free 2020-03-20 14:37:11 +01:00
Grzegorz Rychlik 3baed23752 Remove default ctor for HostInfo - force to call static method for gatering info 2020-03-20 11:20:20 +01:00
Grzegorz Rychlik 9e3811450d Remove os version manifest 2020-03-19 18:22:29 +01:00
Grzegorz Rychlik f11fee9304 Replace static GetVersion with dynamically resolved RtlGetVersion 2020-03-19 18:21:28 +01:00
Grzegorz Rychlik 183fa6465b Remove error-inducing ostream& operator <<
HostInfo can be implicitly constructed from ByteView and can be output to ostream so
`ostream << ByteView{};` results in runtime crash'
2020-03-19 18:13:16 +01:00
Grzegorz Rychlik 73b6f12a4e Merge branch 'ByteVectorUpgrade' into 'master'
Byte vector upgrade

See merge request C3/C3!174
2020-03-19 17:07:30 +00:00
Grzegorz Rychlik bb55932227 Merge branch 'SimpifySlack' into 'master'
Slightly simplify slack code

Closes #6

See merge request C3/C3!160
2020-03-19 17:06:25 +00:00
Grzegorz Rychlik e543664c6d [Slack] Replace deprecated web API methods
Resolves #6
2020-03-19 16:53:00 +01:00
Grzegorz Rychlik 09f431c981 [Slack] Flatten ReadReplies method, remove WriteReplyLarge from header 2020-03-19 16:45:27 +01:00
Grzegorz Rychlik ba11be9fe0 [Slack] Minor optimization to GetMessagesByDirection 2020-03-19 14:58:53 +01:00
Grzegorz Rychlik 2c153ef3e1 [Slack] return only timestamp and text from ReadReplies 2020-03-19 14:44:39 +01:00
Grzegorz Rychlik de4cbd3376 [Slack] Return multiple packtest from OnReceiveFromChannel 2020-03-19 11:25:32 +01:00
Pawel Kurowski 73a9aba7db ByteConverter specialization can write to provided buffer 2020-03-18 13:37:29 +01:00
Pawel Kurowski 83478fa403 Do not send szCSDVersion and wSuiteMask in OSVERSIONINFOEXA 2020-03-17 11:58:04 +01:00
Pawel Kurowski e5a2d3e541 Fix broken Write exceptions handling 2020-03-16 18:06:52 +01:00
Grzegorz Rychlik b6db1d0cd3 Workaround shellcode crash on relay exit 2020-03-16 11:20:52 +01:00
Pawel Kurowski 4a7870d0e3 Better exception safety during Read/Write 2020-03-13 18:26:25 +01:00
Grzegorz Rychlik 3d2d44a24c Update versioning header and build script 2020-03-13 15:59:55 +01:00
Pawel Kurowski 16c7753e7c Fix clang build failure 2020-03-13 15:44:27 +01:00
Pawel Kurowski fc53b803ae Upgrade ByteVector to new version. 2020-03-13 14:13:19 +01:00
Grzegorz Rychlik 74a9b053f2 [Slack Channel] Use built in chunking 2020-03-12 16:39:24 +01:00
Grzegorz Rychlik 98b171b06d Slightly simplify slack code 2020-03-12 16:39:24 +01:00
Grzegorz Rychlik a54ba7cf76 Merge branch 'NullptrStringView' into 'master'
Fix gateway crash on nullptr std::string_view

See merge request C3/C3!173
2020-03-12 07:57:17 +00:00
Pawel Kurowski 37e357fc21 Fix gateway crash on nullptr std::string_view 2020-03-11 17:00:48 +01:00
Pawel Kurowski 148f62a03d Remove HasConstructor.h 2020-03-11 16:00:11 +01:00
Grzegorz Rychlik 6953a6e9e0 Merge branch 'Clang' 2020-03-10 14:47:17 +01:00
Grzegorz Rychlik 6b3c6ba46a Add Clang build configurations 2020-03-10 14:26:30 +01:00
Grzegorz Rychlik 5cdeebf7c7 Add dotnet restore packages to build script 2020-03-09 10:36:07 +01:00
Grzegorz Rychlik 0065374c98 Fix post-merge problems for clang-cl 2020-03-06 16:37:14 +01:00
Grzegorz Rychlik ce232a9af6 Merge branch 'ClangMsvcCompat' 2020-03-06 15:23:57 +01:00
Grzegorz Rychlik 304866ca32 Merge branch 'Obfuscation' 2020-03-06 14:38:55 +01:00
Grzegorz Rychlik 567066cd83 Merge branch 'ObfuscationProposal' into 'Obfuscation'
OBF will support both char and wchar_t

See merge request C3/C3!172
2020-03-06 13:30:46 +00:00
Pawel Kurowski 1a894ef5a4 namespace Obfuscator 2020-03-06 13:52:09 +01:00