资源简介
VNC远程控制源码。
源码里面包含了:客户端和服务端。
屏幕监控研究必备
代码片段和文件信息
/*
* This is D3DES (V5.09) by Richard Outerbridge with the double and
* triple-length support removed for use in VNC. Also the bytebit[] array
* has been reversed so that the most significant bit in each byte of the
* key is ignored not the least significant.
*
* These changes are
* Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved.
*
* This software is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
/* D3DES (V5.09) -
*
* A portable public domain version of the Data Encryption Standard.
*
* Written with Symantec‘s THINK (Lightspeed) C by Richard Outerbridge.
* Thanks to: Dan Hoey for his excellent Initial and Inverse permutation
* code; Jim Gillogly & Phil Karn for the DES key schedule code; Dennis
* Ferguson Eric Young and Dana How for comparing notes; and Ray Lau
* for humouring me on.
*
* Copyright (c) 19881989199019911992 by Richard Outerbridge.
* (GEnie : OUTER; CIS : [71755204]) Graven Imagery 1992.
*/
#include “d3des.h“
static void scrunch(unsigned char * unsigned long *);
static void unscrun(unsigned long * unsigned char *);
static void desfunc(unsigned long * unsigned long *);
static void cookey(unsigned long *);
static unsigned long KnL[32] = { 0L };
static unsigned long KnR[32] = { 0L };
static unsigned long Kn3[32] = { 0L };
static unsigned char Df_Key[24] = {
0x010x230x450x670x890xab0xcd0xef
0xfe0xdc0xba0x980x760x540x320x10
0x890xab0xcd0xef0x010x230x450x67 };
static unsigned short bytebit[8] = {
01 02 04 010 020 040 0100 0200 };
static unsigned long bigbyte[24] = {
0x800000L 0x400000L 0x200000L 0x100000L
0x80000L 0x40000L 0x20000L 0x10000L
0x8000L 0x4000L 0x2000L 0x1000L
0x800L 0x400L 0x200L 0x100L
0x80L 0x40L 0x20L 0x10L
0x8L 0x4L 0x2L 0x1L };
/* Use the key schedule specified in the Standard (ANSI X3.92-1981). */
static unsigned char pc1[56] = {
56 48 40 32 24 16 8 0 57 49 41 33 25 17
9 1 58 50 42 34 26 18 10 2 59 51 43 35
62 54 46 38 30 22 14 6 61 53 45 37 29 21
13 5 60 52 44 36 28 20 12 4 27 19 11 3 };
static unsigned char totrot[16] = {
124681012141517192123252728 };
static unsigned char pc2[48] = {
13 16 10 23 0 4 2 27 14 5 20 9
22 18 11 3 25 7 15 6 26 19 12 1
40 51 30 36 46 54 29 39 50 44 32 47
43 48 38 55 33 52 45 41 49 35 28 31 };
void deskey(key edf) /* Thanks to James Gillogly & Phil Karn! */
unsigned char *key;
int edf;
{
register int i j l m n;
unsigned char pc1m[56] pcr[56];
unsigned long kn[32];
for ( j = 0; j < 56; j++ ) {
l = pc1[j];
m = l & 07;
pc1m[j] = (key[l >> 3] & bytebit[m]) ? 1 : 0;
}
for( i = 0; i < 16;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
...D..R 0 2005-01-09 16:16 VNC\vncServer\AlphaDbg_No_CORBA
文件 1565 2001-09-18 11:31 VNC\vncServer\BUILDING.txt
文件 15925 2001-09-18 11:31 VNC\vncServer\d3des.c
文件 1754 2001-09-18 11:31 VNC\vncServer\d3des.h
文件 28385 2001-09-18 11:31 VNC\vncServer\History.txt
文件 4005 2001-09-18 11:31 VNC\vncServer\keysymdef.h
文件 3258 2001-09-18 14:26 VNC\vncServer\Log.cpp
文件 2205 2001-09-18 11:31 VNC\vncServer\Log.h
文件 1369 2001-09-18 11:31 VNC\vncServer\MinMax.cpp
文件 1394 2001-09-18 11:31 VNC\vncServer\MinMax.h
文件 176 2001-09-18 14:26 VNC\vncServer\mssccprj.scc
...D..R 0 2005-01-09 16:16 VNC\vncServer\omnithread\Debug
文件 20799 2000-05-26 18:46 VNC\vncServer\omnithread\omnithread\nt.cpp
文件 2062 2000-05-26 18:46 VNC\vncServer\omnithread\omnithread\nt.h
...D..R 0 2005-01-09 16:16 VNC\vncServer\omnithread\omnithread
文件 12887 2000-05-26 18:46 VNC\vncServer\omnithread\omnithread.dsp
文件 14999 2001-08-23 13:54 VNC\vncServer\omnithread\omnithread.h
文件 736 2002-06-12 10:29 VNC\vncServer\omnithread\omnithread.log
文件 1374 2003-05-21 22:25 VNC\vncServer\omnithread\omnithread.plg
...D..R 0 2005-01-09 16:16 VNC\vncServer\omnithread
文件 1689 2001-09-18 11:31 VNC\vncServer\RectList.cpp
文件 1463 2001-09-18 11:31 VNC\vncServer\RectList.h
文件 1329 2001-09-18 11:31 VNC\vncServer\res\animatedMemoryImageSource.class
文件 2068 2001-09-18 11:31 VNC\vncServer\res\authenticationPanel.class
文件 1761 2001-09-18 11:31 VNC\vncServer\res\clipboardfr
文件 7143 2001-09-18 11:31 VNC\vncServer\res\DesCipher.class
文件 3310 2001-09-18 11:31 VNC\vncServer\res\icon1.ico
文件 3489 2001-09-18 11:31 VNC\vncServer\res\optionsfr
文件 8309 2001-09-18 11:31 VNC\vncServer\res\rfbProto.class
文件 13228 2001-09-18 11:31 VNC\vncServer\res\vnc.bmp
............此处省略166个文件信息
- 上一篇:mbus测试软件
- 下一篇:夜神模拟器tcpdump抓包教程
相关资源
- 贝壳登陆器
- QT 源码 圆形时钟
- uiautomator源码
- 基于TensorFlow的DenseNet学习源码
- NLP分词算法,源码
- webgl编程指南源码
- DSP28335 AD7606源码.rar
- boa源码支持HTTPS
- J2ME中国象棋源码,决对可以正常运行
- 奇迹MU内存辅助源码
- Qt 推箱子游戏及最短路径 源码
- TinyHTTPd for Windows源码
- DNS解析,gethostbyname的C源码
- labwindows的串口源码
- ADS8328驱动程序源码
- STM8S 模拟I2C程序 源码
- libxl注册机源码支持window和linux
- sz rz 编译安装源码
- x3d源码-奖杯
- 383C开发大全(提高卷)源码.rar
- 百度翻译API源码
- sar的rd成像算法源码
- 易语言做快递单/入库单/汇总表等单据
- stm32 光控灯源码
- VNC-viewer客户端 for win32,绿色版
- Zbar库好不容易找到的有configure的源码
- 梦幻西游挤线器源码
- SYN Flooder 攻击源码
- 接金币flash游戏源码
- fpga实现CAN总线源码
评论
共有 条评论