Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove prints #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions BOF/PetitPotam/SOURCE/PetitPotam.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
PetitPotam exploit by Cneelis @Outflank
Based on original code by @topotam77
*/

#include <windows.h>

#include "PetitPotam.h"
Expand Down Expand Up @@ -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) {
Expand Down
7 changes: 5 additions & 2 deletions Other/PetitPotam/SOURCE/PetitPotam/ReflectiveDll.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
PetitPotam exploit by Cneelis @Outflank
Based on original code by @topotam77
*/

#undef _UNICODE
#define _UNICODE
#undef UNICODE
Expand Down Expand Up @@ -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;
Expand Down