This repository has been archived by the owner on Aug 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial release
- Loading branch information
Showing
88 changed files
with
10,779 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
-------------------- | ||
php_screw | ||
(C) 2007, Kunimasa Noda/PM9.com, Inc. <http://www.pm9.com, [email protected]> | ||
see file LICENSE for license details | ||
-------------------- | ||
2015-11, bab2 ported php_screw to MS-Windows. <http://enjoytools.net, [email protected]> | ||
-------------------- | ||
|
||
������ | ||
* php extension �ҽ� | ||
* encrypt/decrypt �ҽ� | ||
* �������� �ҽ� ({VC�ַ�� ��Ʈ}/z_linux) | ||
Ű ����: {VC�ַ�� ��Ʈ}/z_key_manage/my_screw.h | ||
|
||
|
||
������ ȯ�� | ||
|
||
OS / PHP ���� | ||
������: MS-Windows 8.1 / PHP 5.6.15, 7.0.0RC7 | ||
������: CentOS 6.3 / PHP 5.3.3 | ||
|
||
�����Ϸ� | ||
������: Microsoft VisualStudio 2012 Express / Visual C 2012 (VC11) | ||
(PHP7RC7 - Visual C 2015 (VC14)) | ||
������: gcc 4.4.7 | ||
|
||
|
||
�߰� �غ� | ||
|
||
PHP | ||
* �ҽ�(���� �Ʒ� ���� �غ�) | ||
- ext, main, TSRM, win32, Zend | ||
-> ext������ standard�� ������ �ǰ�, ������ {src_root}/standard/tests ������ ������ ������ | ||
- ���� ����: {src_root}/win32/build/config.w32.h.in -> {src_root}/main/config.w32.h | ||
* ���̳ʸ�(dev/php5ts.lib �� ������ ��) | ||
- {VC �ַ�� ��Ʈ}/include_php_dev/php5ts.lib | ||
|
||
[end of this file] |
Empty file.
Empty file.
27 changes: 27 additions & 0 deletions
27
php_screw_decode_vc11/Debug/php_screw_decode_vc11.Build.CppClean.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
C:\USERS\SWSHIN\DESKTOP\PHP_SCREW-BAB2_FINAL\PHP_SCREW_DECODE_VC11\DEBUG\PHP_SCREW_DECODE_VC11.PCH | ||
C:\USERS\SWSHIN\DESKTOP\PHP_SCREW-BAB2_FINAL\PHP_SCREW_DECODE_VC11\DEBUG\STDAFX.OBJ | ||
C:\USERS\SWSHIN\DESKTOP\PHP_SCREW-BAB2_FINAL\PHP_SCREW_DECODE_VC11\DEBUG\VC110.PDB | ||
C:\USERS\SWSHIN\DESKTOP\PHP_SCREW-BAB2_FINAL\PHP_SCREW_DECODE_VC11\DEBUG\ZENCODE.OBJ | ||
C:\USERS\SWSHIN\DESKTOP\PHP_SCREW-BAB2_FINAL\PHP_SCREW_DECODE_VC11\DEBUG\PHP_SCREW_DECODE_VC11.OBJ | ||
C:\USERS\SWSHIN\DESKTOP\PHP_SCREW-BAB2_FINAL\DEBUG\PHP_SCREW_DECODE_VC11.ILK | ||
C:\USERS\SWSHIN\DESKTOP\PHP_SCREW-BAB2_FINAL\DEBUG\PHP_SCREW_DECODE_VC11.EXE | ||
C:\USERS\SWSHIN\DESKTOP\PHP_SCREW-BAB2_FINAL\DEBUG\PHP_SCREW_DECODE_VC11.PDB | ||
C:\Users\swshin\Desktop\php_screw-bab2_final\php_screw_decode_vc11\Debug\php_screw_decode_vc11.obj | ||
C:\Users\swshin\Desktop\php_screw-bab2_final\php_screw_decode_vc11\Debug\stdafx.obj | ||
C:\Users\swshin\Desktop\php_screw-bab2_final\php_screw_decode_vc11\Debug\zencode.obj | ||
C:\Users\swshin\Desktop\php_screw-bab2_final\php_screw_decode_vc11\Debug\cl.command.1.tlog | ||
C:\Users\swshin\Desktop\php_screw-bab2_final\php_screw_decode_vc11\Debug\CL.read.1.tlog | ||
C:\Users\swshin\Desktop\php_screw-bab2_final\php_screw_decode_vc11\Debug\CL.write.1.tlog | ||
C:\Users\swshin\Desktop\php_screw-bab2_final\php_screw_decode_vc11\Debug\link-cvtres.read.1.tlog | ||
C:\Users\swshin\Desktop\php_screw-bab2_final\php_screw_decode_vc11\Debug\link-cvtres.write.1.tlog | ||
C:\Users\swshin\Desktop\php_screw-bab2_final\php_screw_decode_vc11\Debug\link-rc.read.1.tlog | ||
C:\Users\swshin\Desktop\php_screw-bab2_final\php_screw_decode_vc11\Debug\link-rc.write.1.tlog | ||
C:\Users\swshin\Desktop\php_screw-bab2_final\php_screw_decode_vc11\Debug\link.command.1.tlog | ||
C:\Users\swshin\Desktop\php_screw-bab2_final\php_screw_decode_vc11\Debug\link.read.1.tlog | ||
C:\Users\swshin\Desktop\php_screw-bab2_final\php_screw_decode_vc11\Debug\link.write.1.tlog | ||
C:\Users\swshin\Desktop\php_screw-bab2_final\php_screw_decode_vc11\Debug\php_screw_decode_vc11.pch | ||
C:\Users\swshin\Desktop\php_screw-bab2_final\php_screw_decode_vc11\Debug\vc110.idb | ||
C:\Users\swshin\Desktop\php_screw-bab2_final\php_screw_decode_vc11\Debug\vc110.pdb | ||
C:\Users\swshin\Desktop\php_screw-bab2_final\Debug\php_screw_decode_vc11.pdb | ||
C:\Users\swshin\Desktop\php_screw-bab2_final\Debug\php_screw_decode_vc11.exe | ||
C:\Users\swshin\Desktop\php_screw-bab2_final\Debug\php_screw_decode_vc11.ilk |
2 changes: 2 additions & 0 deletions
2
php_screw_decode_vc11/Debug/zencode_test_read_vc11.lastbuildstate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#v4.0:v110:false | ||
Debug|Win32|C:\php_ext_compile\zencode_test_read_vc11\| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
빌드 시작: 2015-11-19 PM 10:27:48 | ||
|
||
빌드했습니다. | ||
|
||
경과 시간: 00:00:00.01 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
콘솔 상에서 실행하는 디코더 | ||
|
||
======================================================================== | ||
콘솔 응용 프로그램 : zencode_test_read_vc11 프로젝트 개요 | ||
======================================================================== | ||
|
||
응용 프로그램 마법사에서 이 zencode_test_read_vc11 응용 프로그램을 만들었습니다. | ||
|
||
zencode_test_read_vc11 응용 프로그램을 구성하는 각 파일에 대한 | ||
요약 설명이 포함되어 있습니다. | ||
|
||
|
||
zencode_test_read_vc11.vcxproj | ||
응용 프로그램 마법사를 사용하여 생성한 VC++ 프로젝트의 기본 프로젝트 파일입니다. 파일을 생성한 Visual C++ 버전에 대한 정보와 응용 프로그램 마법사를 사용하여 선택한 플랫폼, 구성 및 프로젝트 기능에 대한 정보가 포함되어 있습니다. | ||
|
||
zencode_test_read_vc11.vcxproj.filters | ||
응용 프로그램 마법사를 사용하여 생성된 VC++ 프로젝트의 필터 파일입니다. 이 파일에는 프로젝트의 파일과 필터 간의 연결 정보가 들어 있습니다. 이러한 연결은 특정 노드에서 유사한 확장명으로 그룹화된 파일을 표시하기 위해 IDE에서 사용됩니다. 예를 들어 ".cpp" 파일은 "소스 파일" 필터와 연결되어 있습니다. | ||
|
||
zencode_test_read_vc11.cpp | ||
기본 응용 프로그램 소스 파일입니다. | ||
|
||
///////////////////////////////////////////////////////////////////////////// | ||
기타 표준 파일: | ||
|
||
StdAfx.h, StdAfx.cpp | ||
이 파일은 미리 컴파일된 헤더(PCH) 파일 zencode_test_read_vc11.pch와 미리 컴파일된 형식(PCT) 파일 StdAfx.obj를 빌드하는 데 사용됩니다. | ||
|
||
///////////////////////////////////////////////////////////////////////////// | ||
기타 참고: | ||
|
||
응용 프로그램 마법사에서 사용하는 "TODO:" 주석은 사용자가 추가하거나 사용자 지정해야 하는 소스 코드 부분을 나타냅니다. | ||
|
||
///////////////////////////////////////////////////////////////////////////// |
24 changes: 24 additions & 0 deletions
24
php_screw_decode_vc11/Release/php_screw_decode_vc11.Build.CppClean.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
C:\USERS\SWSHIN\DESKTOP\PHP_SCREW-BAB2_FINAL\PHP_SCREW_DECODE_VC11\RELEASE\PHP_SCREW_DECODE_VC11.PCH | ||
C:\USERS\SWSHIN\DESKTOP\PHP_SCREW-BAB2_FINAL\PHP_SCREW_DECODE_VC11\RELEASE\STDAFX.OBJ | ||
C:\USERS\SWSHIN\DESKTOP\PHP_SCREW-BAB2_FINAL\PHP_SCREW_DECODE_VC11\RELEASE\VC110.PDB | ||
C:\USERS\SWSHIN\DESKTOP\PHP_SCREW-BAB2_FINAL\PHP_SCREW_DECODE_VC11\RELEASE\PHP_SCREW_DECODE_VC11.OBJ | ||
C:\USERS\SWSHIN\DESKTOP\PHP_SCREW-BAB2_FINAL\PHP_SCREW_DECODE_VC11\RELEASE\ZENCODE.OBJ | ||
C:\USERS\SWSHIN\DESKTOP\PHP_SCREW-BAB2_FINAL\RELEASE\PHP_SCREW_DECODE_VC11.EXE | ||
C:\USERS\SWSHIN\DESKTOP\PHP_SCREW-BAB2_FINAL\RELEASE\PHP_SCREW_DECODE_VC11.PDB | ||
C:\Users\swshin\Desktop\php_screw-bab2_final\php_screw_decode_vc11\Release\php_screw_decode_vc11.obj | ||
C:\Users\swshin\Desktop\php_screw-bab2_final\php_screw_decode_vc11\Release\stdafx.obj | ||
C:\Users\swshin\Desktop\php_screw-bab2_final\php_screw_decode_vc11\Release\zencode.obj | ||
C:\Users\swshin\Desktop\php_screw-bab2_final\php_screw_decode_vc11\Release\cl.command.1.tlog | ||
C:\Users\swshin\Desktop\php_screw-bab2_final\php_screw_decode_vc11\Release\CL.read.1.tlog | ||
C:\Users\swshin\Desktop\php_screw-bab2_final\php_screw_decode_vc11\Release\CL.write.1.tlog | ||
C:\Users\swshin\Desktop\php_screw-bab2_final\php_screw_decode_vc11\Release\link-cvtres.read.1.tlog | ||
C:\Users\swshin\Desktop\php_screw-bab2_final\php_screw_decode_vc11\Release\link-cvtres.write.1.tlog | ||
C:\Users\swshin\Desktop\php_screw-bab2_final\php_screw_decode_vc11\Release\link-rc.read.1.tlog | ||
C:\Users\swshin\Desktop\php_screw-bab2_final\php_screw_decode_vc11\Release\link-rc.write.1.tlog | ||
C:\Users\swshin\Desktop\php_screw-bab2_final\php_screw_decode_vc11\Release\link.command.1.tlog | ||
C:\Users\swshin\Desktop\php_screw-bab2_final\php_screw_decode_vc11\Release\link.read.1.tlog | ||
C:\Users\swshin\Desktop\php_screw-bab2_final\php_screw_decode_vc11\Release\link.write.1.tlog | ||
C:\Users\swshin\Desktop\php_screw-bab2_final\php_screw_decode_vc11\Release\php_screw_decode_vc11.pch | ||
C:\Users\swshin\Desktop\php_screw-bab2_final\php_screw_decode_vc11\Release\vc110.pdb | ||
C:\Users\swshin\Desktop\php_screw-bab2_final\Release\php_screw_decode_vc11.pdb | ||
C:\Users\swshin\Desktop\php_screw-bab2_final\Release\php_screw_decode_vc11.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
빌드 시작: 2015-11-19 PM 10:27:58 | ||
|
||
빌드했습니다. | ||
|
||
경과 시간: 00:00:00.01 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
// zencode_test_read_vc11.cpp : 콘솔 응용 프로그램에 대한 진입점을 정의합니다. | ||
// | ||
|
||
#include "stdafx.h" | ||
|
||
#include <string.h> | ||
#include <sys/stat.h> | ||
|
||
#include "php_screw.h" | ||
#include "my_screw.h" | ||
|
||
//int main(int argc, _TCHAR* argv[]) | ||
int main(int argc, char* argv[]) | ||
{ | ||
FILE *fp; | ||
char buf[PM9SCREW_LEN + 1]; | ||
struct stat stat_buf; | ||
char *screw_datap, *descrew_datap; | ||
int screw_datalen, descrew_datalen; | ||
int cryptkey_len = sizeof pm9screw_mycryptkey / 2; | ||
char descrew_filename[256]; | ||
int i; | ||
|
||
// 암호화데이터 준비 | ||
if (argc != 2) { | ||
fprintf(stderr, "Usage: filename.\n"); | ||
exit(0); | ||
} | ||
|
||
fp = fopen((char *)argv[1], "rb"); | ||
if (fp == NULL) { | ||
fprintf(stderr, "File not found(%s)\n", argv[1]); | ||
exit(0); | ||
} | ||
|
||
fread(buf, PM9SCREW_LEN, 1, fp); | ||
if (memcmp(buf, PM9SCREW, PM9SCREW_LEN) != 0) { | ||
fprintf(stderr, "Not a crypted file.\n"); | ||
fclose(fp); | ||
exit(0); | ||
} | ||
|
||
#ifdef WIN32 | ||
fstat(_fileno(fp), &stat_buf); | ||
#else | ||
fstat(fileno(fp), &stat_buf); | ||
#endif | ||
|
||
screw_datalen = stat_buf.st_size - PM9SCREW_LEN; | ||
screw_datap = (char*)malloc(screw_datalen); | ||
memset(screw_datap, 0, screw_datalen); | ||
fread(screw_datap, screw_datalen, 1, fp); | ||
fclose(fp); | ||
|
||
// 복호화시에는 strlen 필요 없음 | ||
//screw_datalen = strlen(screw_datap); // 암호화시 Filesize가 실제 길이와 달라서 strlen으로 길이 재계산. | ||
|
||
// 복호화데이터 처리 | ||
for(i = 0; i < screw_datalen; i++) { | ||
screw_datap[i] = (char)pm9screw_mycryptkey[(screw_datalen - i) % cryptkey_len] ^ (~(screw_datap[i])); | ||
} | ||
descrew_datap = zdecode(screw_datap, screw_datalen, &descrew_datalen); | ||
|
||
sprintf(descrew_filename, "%s.descrewed", argv[1]); | ||
|
||
fp = fopen(descrew_filename, "w"); | ||
fwrite(descrew_datap, descrew_datalen, 1, fp); | ||
fclose(fp); | ||
|
||
return 0; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// stdafx.cpp : 표준 포함 파일만 들어 있는 소스 파일입니다. | ||
// zencode_test_read_vc11.pch는 미리 컴파일된 헤더가 됩니다. | ||
// stdafx.obj에는 미리 컴파일된 형식 정보가 포함됩니다. | ||
|
||
#include "stdafx.h" | ||
|
||
// TODO: 필요한 추가 헤더는 | ||
// 이 파일이 아닌 STDAFX.H에서 참조합니다. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// stdafx.h : 자주 사용하지만 자주 변경되지는 않는 | ||
// 표준 시스템 포함 파일 및 프로젝트 관련 포함 파일이 | ||
// 들어 있는 포함 파일입니다. | ||
// | ||
|
||
#pragma once | ||
|
||
#include <stdio.h> | ||
#include <stdlib.h> | ||
//#include "unistd.h" | ||
|
||
// TODO: 프로그램에 필요한 추가 헤더는 여기에서 참조합니다. |
Oops, something went wrong.