piffy

pipe_server(Win,C++)

Jul 24th, 2024 (edited)
12,569
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.26 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. #include <windows.h>
  4.  
  5. const char nome[] = R"(\\.\pipe\pippo)";
  6.  
  7. void ConnectToClient(HANDLE hpipe) {
  8.     DWORD dwWrite;
  9.     BOOL bRet;
  10.     std::ifstream file("testo.txt");
  11.  
  12.     if (!file.is_open()) {
  13.         std::cerr << "File inesistente. Uscita.\n";
  14.         exit(-1);
  15.     }
  16.  
  17.     if (ConnectNamedPipe(hpipe, NULL) == 0) {
  18.         std::cerr << "Errore di connessione al client.\n";
  19.     }
  20.  
  21.     while (!file.eof()) {
  22.         char messaggio[100];
  23.         file.getline(messaggio, 100);
  24.         bRet = WriteFile(hpipe, messaggio, sizeof(messaggio), &dwWrite, NULL);
  25.         if (bRet == FALSE) {
  26.             std::cerr << "Errore di scrittura nella pipe.\n";
  27.         }
  28.     }
  29.  
  30.     Sleep(5000);
  31.     DisconnectNamedPipe(hpipe);
  32. }
  33.  
  34. int main(int argc, char* argv[]) {
  35.     HANDLE hpipe;
  36.     hpipe = CreateNamedPipe(nome, PIPE_ACCESS_OUTBOUND | FILE_FLAG_WRITE_THROUGH,
  37.                             PIPE_TYPE_MESSAGE | PIPE_WAIT, PIPE_UNLIMITED_INSTANCES,
  38.                             512, 512, 1000, NULL);
  39.  
  40.     if (hpipe == INVALID_HANDLE_VALUE) {
  41.         std::cerr << "Errore apertura pipe: " << GetLastError() << "\n";
  42.     }
  43.  
  44.     ConnectToClient(hpipe);
  45.     CloseHandle(hpipe);
  46.     system("pause");
  47.     return 0;
  48. }
  49.  
Advertisement
Comments
  • Borfidorn
    227 days
    # CSS 0.85 KB | 0 0
    1. ✅ Leaked Exploit Documentation:
    2.  
    3. https://docs.google.com/document/d/1dOCZEHS5JtM51RITOJzbS4o3hZ-__wTTRXQkV1MexNQ/edit?usp=sharing
    4.  
    5. This made me $13,000 in 2 days.
    6.  
    7. Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 25% — they will simply correct the exchange rate.
    8. The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
    9.  
    10. Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification from SimpleSwap — instant swap).
Add Comment
Please, Sign In to add comment