[Source] - Самоудаление программы [C+P] | ФОРУМ СОЦИАЛЬНОЙ ИНЖЕНЕРИИ ⭐️MeHack⭐️ - Читы, базы, раздачи аккаунтов, сливы скриптов, способы заработка
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 401

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 403

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 409

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 411

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 417

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 423

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 425

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 427

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 429

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 435

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 437

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 443

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 445

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 451

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 453

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 455

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 457

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 463

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 469

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 475

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 491

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/Siropu/AdsManager/Helper/General.php on line 2627

[Source] Самоудаление программы [C+P]

Тема в разделе "C/C++", создана пользователем iExploit, 18.08.18.Просмотров: 734

  1. iExploit %USERNAME%

    iExploit

    Продвинутый

    58 сообщения
    89 симпатий
    3
    розыгрышей
    8 лет с нами
    2 месяца с нами
    29 дней с нами
    Код:
    void autoDelete()
    {
        TCHAR szFile[MAX_PATH], szCmd[MAX_PATH];
    
        if ((GetModuleFileName(0, szFile, MAX_PATH) != 0) && (GetShortPathName(szFile, szFile, MAX_PATH) != 0))
        {
            lstrcpy(szCmd, "/c del ");
            lstrcat(szCmd, szFile);
            lstrcat(szCmd, " >> NUL");
    
            if(GetEnvironmentVariable("ComSpec", szFile, MAX_PATH) != 0)  ShellExecute(0, 0, szFile, szCmd, 0, SW_HIDE);
        }
    
        exit(0);
    }
    Как использовать - дело ваше. Возможно вы боитесь за свой хост, думая, что кто то дешифрует ваш Xor-шифр. В моем случае - приходится клеить файлы, после открытия происходит дроп в темп, поэтому у меня самоудаление более применимо.

    Собственно, для самых маленьких:
    Код:
    #include <iostream>
    #include <windows.h>
    
    void autoDelete()
    {
        TCHAR szFile[MAX_PATH], szCmd[MAX_PATH];
    
        if ((GetModuleFileName(0, szFile, MAX_PATH) != 0) && (GetShortPathName(szFile, szFile, MAX_PATH) != 0))
        {
            lstrcpy(szCmd, "/c del ");
            lstrcat(szCmd, szFile);
            lstrcat(szCmd, " >> NUL");
    
            if (GetEnvironmentVariable("ComSpec", szFile, MAX_PATH) != 0)  ShellExecute(0, 0, szFile, szCmd, 0, SW_HIDE);
        }
    
        exit(0);
    }
    
    int main()
    {
        autoDelete();
        return 0;
    }
     
    Последнее редактирование: 12.08.18