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
test.cpp
Package: ASProtectV2.4.rar [view]
Upload User: graphite
Upload Date: 2020-09-09
Package Size: 2587k
Code Size: 1k
Category:
Crack_Hack
Development Platform:
Others
- // test.cpp : Defines the entry point for the application.
- //
- #include "stdafx.h"
- #include "resource.h"
- #include <io.h>
- #include "include/aspr_api.h"
- #include "include/asprotect.h"
- #pragma comment(lib,"include/aspr_ide.lib")
- int APIENTRY WinMain(HINSTANCE hInstance,
- HINSTANCE hPrevInstance,
- LPSTR lpCmdLine,
- int nCmdShow)
- {
- int f = -1;
- int fsize;
- unsigned char *fbuffer = NULL;
- char *message = "Unregistered version !";
- if ((f = open("test.bin", 0)) != -1)
- {
- // Read a file with a constant for decryption
- fsize = filelength(f);
- fbuffer = (unsigned char*)malloc(fsize);
- read(f, fbuffer, fsize);
- // Set a constatnt to ASProtect
- if (SetUserKey( (char*)fbuffer, (DWORD)fsize ) == TRUE)
- {
- // This is an example of fragments decryption/encryption
- if (f != -1) close(f);
- REG_CRYPT_BEGIN2
- message = "Registered version !";
- REG_CRYPT_END2
- if (fbuffer != NULL) free(fbuffer);
- }
- }
- MessageBox(0,message,"",0);
- return 0;
- }