From 95132621fe27e075401be0f80793ed54bc073fdb Mon Sep 17 00:00:00 2001 From: mark Date: Wed, 1 Jun 2022 11:40:10 +0200 Subject: [PATCH] remove prints I've moved prints (that would execute on the CPU of target) to comments in top of file. Alternative would be to embed 'banner like' lines in scripting. --- BOF/PetitPotam/SOURCE/PetitPotam.c | 8 +++++--- Other/PetitPotam/SOURCE/PetitPotam/ReflectiveDll.c | 7 +++++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/BOF/PetitPotam/SOURCE/PetitPotam.c b/BOF/PetitPotam/SOURCE/PetitPotam.c index 92f95c6..0aa333b 100755 --- a/BOF/PetitPotam/SOURCE/PetitPotam.c +++ b/BOF/PetitPotam/SOURCE/PetitPotam.c @@ -1,3 +1,8 @@ +/* +PetitPotam exploit by Cneelis @Outflank +Based on original code by @topotam77 +*/ + #include #include "PetitPotam.h" @@ -154,9 +159,6 @@ VOID go(IN PCHAR Args, IN ULONG Length) { return; } - BeaconPrintToStreamW(L"[>] PetitPotam exploit by Cneelis @Outflank\n"); - BeaconPrintToStreamW(L"[>] Based on original code by @topotam77\n\n"); - MSVCRT$wcscat_s(wcRPCTarget, _countof(wcRPCTarget), lpwTarget); rStatus = CreateBindingHandle(wcRPCTarget, &bHandle); if (rStatus != RPC_S_OK) { diff --git a/Other/PetitPotam/SOURCE/PetitPotam/ReflectiveDll.c b/Other/PetitPotam/SOURCE/PetitPotam/ReflectiveDll.c index 234d1fa..a93792d 100755 --- a/Other/PetitPotam/SOURCE/PetitPotam/ReflectiveDll.c +++ b/Other/PetitPotam/SOURCE/PetitPotam/ReflectiveDll.c @@ -1,3 +1,8 @@ +/* +PetitPotam exploit by Cneelis @Outflank +Based on original code by @topotam77 +*/ + #undef _UNICODE #define _UNICODE #undef UNICODE @@ -118,8 +123,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD dwReason, LPVOID lpReserved) { } szArglist = CommandLineToArgvW(lpwParams, &nArgs); - wprintf(L"[>] PetitPotam exploit by Cneelis @Outflank\n"); - wprintf(L"[>] Based on original code by @topotam77\n\n"); if (nArgs < 2) { Usage(L"PetitPotam"); goto CleanUp;